diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-06-09 09:33:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-09 09:33:28 +0200 |
commit | e66883b37ae0796256b3aba550670a2d76cfc98a (patch) | |
tree | 3cce3c78e9f9f327470f0370a1b4065fe7e0009e /client/src/app/app.component.scss | |
parent | 6ad971d5f5e9ea2adfc58bd83ba1790efa4a8d12 (diff) | |
download | PeerTube-e66883b37ae0796256b3aba550670a2d76cfc98a.tar.gz PeerTube-e66883b37ae0796256b3aba550670a2d76cfc98a.tar.zst PeerTube-e66883b37ae0796256b3aba550670a2d76cfc98a.zip |
`fitWidth` for `video-miniature`, fluid grid (#2830)
* Fluid abstract video list
* normalize timestamp display on miniatures
* use grid for abstract-video-list
- refactor scss function var to pvar to avoid overriding css variables
- move fluid-grid margins to adapt-margin-content-width mixin for maintainability
- fix video-miniature-name margin-top on small screen
* move sceenratio function in a mixin
* display no miniature avatar in channel videos view
Diffstat (limited to 'client/src/app/app.component.scss')
-rw-r--r-- | client/src/app/app.component.scss | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/client/src/app/app.component.scss b/client/src/app/app.component.scss index 27fd69c8d..a2180e19d 100644 --- a/client/src/app/app.component.scss +++ b/client/src/app/app.component.scss | |||
@@ -13,7 +13,7 @@ | |||
13 | 13 | ||
14 | .sub-header-container { | 14 | .sub-header-container { |
15 | margin-top: $header-height; | 15 | margin-top: $header-height; |
16 | background-color: var(--mainBackgroundColor); | 16 | background-color: pvar(--mainBackgroundColor); |
17 | width: 100%; | 17 | width: 100%; |
18 | } | 18 | } |
19 | 19 | ||
@@ -22,7 +22,7 @@ | |||
22 | position: fixed; | 22 | position: fixed; |
23 | top: 0; | 23 | top: 0; |
24 | width: 100%; | 24 | width: 100%; |
25 | background-color: var(--mainBackgroundColor); | 25 | background-color: pvar(--mainBackgroundColor); |
26 | z-index: z(header); | 26 | z-index: z(header); |
27 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16); | 27 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16); |
28 | display: flex; | 28 | display: flex; |
@@ -38,7 +38,7 @@ | |||
38 | @include icon(24px); | 38 | @include icon(24px); |
39 | 39 | ||
40 | &.icon-menu { | 40 | &.icon-menu { |
41 | background-color: var(--mainForegroundColor); | 41 | background-color: pvar(--mainForegroundColor); |
42 | mask-image: url('../assets/images/header/menu.svg'); | 42 | mask-image: url('../assets/images/header/menu.svg'); |
43 | margin: 0 18px 0 20px; | 43 | margin: 0 18px 0 20px; |
44 | } | 44 | } |
@@ -65,6 +65,7 @@ | |||
65 | background: url('../assets/images/logo.svg') no-repeat; | 65 | background: url('../assets/images/logo.svg') no-repeat; |
66 | width: 23px; | 66 | width: 23px; |
67 | height: 24px; | 67 | height: 24px; |
68 | margin-right: .5rem; | ||
68 | } | 69 | } |
69 | } | 70 | } |
70 | 71 | ||