From: Rigel Kent Date: Mon, 3 Feb 2020 21:33:28 +0000 (+0100) Subject: Media queries to use variables when possible X-Git-Tag: v2.2.0-rc.1~482 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ece3029bd99a76b3c48a1cc8c58914c5cf61f106;p=oweals%2Fpeertube.git Media queries to use variables when possible --- diff --git a/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.scss b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.scss index 20582e478..db0c7f94f 100644 --- a/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.scss +++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.scss @@ -58,7 +58,7 @@ margin: 20px 0 50px; } -@media screen and (max-width: 800px) { +@media screen and (max-width: $small-view) { .video-channels-header { text-align: center; } diff --git a/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlists.component.scss b/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlists.component.scss index 4e4156b22..aed3302ba 100644 --- a/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlists.component.scss +++ b/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlists.component.scss @@ -43,7 +43,7 @@ } } -@media screen and (max-width: 800px) { +@media screen and (max-width: $small-view) { .video-playlists-header { text-align: center; } diff --git a/client/src/app/+signup/+register/register.component.scss b/client/src/app/+signup/+register/register.component.scss index 2f62dd59d..e135b5cb4 100644 --- a/client/src/app/+signup/+register/register.component.scss +++ b/client/src/app/+signup/+register/register.component.scss @@ -44,7 +44,7 @@ } } - @media screen and (max-width: 500px) { + @media screen and (max-width: $mobile-view) { width: auto; } } diff --git a/client/src/app/app.component.scss b/client/src/app/app.component.scss index 7a6710829..a7be8e1af 100644 --- a/client/src/app/app.component.scss +++ b/client/src/app/app.component.scss @@ -61,7 +61,7 @@ } } - @media screen and (max-width: 500px) { + @media screen and (max-width: $mobile-view) { width: 70px; .peertube-title { diff --git a/client/src/app/core/hotkeys/hotkeys.component.scss b/client/src/app/core/hotkeys/hotkeys.component.scss index 02c8c59aa..a970260c9 100644 --- a/client/src/app/core/hotkeys/hotkeys.component.scss +++ b/client/src/app/core/hotkeys/hotkeys.component.scss @@ -1,3 +1,4 @@ +@import '_variables'; @import '_mixins'; .cfp-hotkeys-container { @@ -93,7 +94,7 @@ cursor: pointer; } -@media all and (max-width: 500px) { +@media all and (max-width: $mobile-view) { .cfp-hotkeys { font-size: 0.8em; } diff --git a/client/src/sass/application.scss b/client/src/sass/application.scss index 4ad14ea5b..6bf345789 100644 --- a/client/src/sass/application.scss +++ b/client/src/sass/application.scss @@ -167,7 +167,7 @@ label { color: var(--mainForegroundColor); } - @media screen and (max-width: 500px) { + @media screen and (max-width: $mobile-view) { margin-right: 15px; } } diff --git a/client/src/sass/include/_miniature.scss b/client/src/sass/include/_miniature.scss index b0e07d61a..c1d1b3c59 100644 --- a/client/src/sass/include/_miniature.scss +++ b/client/src/sass/include/_miniature.scss @@ -240,7 +240,7 @@ $play-overlay-width: 18px; width: $video-miniature-width * 2; } - @media screen and (max-width: 500px) { + @media screen and (max-width: $mobile-view) { width: auto; margin: 0 !important;