]>
Commit | Line | Data |
---|---|---|
1 | @import '_variables'; | |
2 | @import '_mixins'; | |
3 | @import '~bootstrap/scss/functions'; | |
4 | @import '~bootstrap/scss/variables'; | |
5 | ||
6 | .peertube-container { | |
7 | padding-bottom: 20px; | |
8 | } | |
9 | ||
10 | .main-row { | |
11 | min-height: calc(100vh - #{$header-height} - #{$footer-height} - #{$footer-margin}); | |
12 | } | |
13 | ||
14 | .sub-header-container { | |
15 | margin-top: $header-height; | |
16 | background-color: pvar(--mainBackgroundColor); | |
17 | width: 100%; | |
18 | } | |
19 | ||
20 | .header { | |
21 | height: $header-height; | |
22 | position: fixed; | |
23 | top: 0; | |
24 | width: 100%; | |
25 | background-color: pvar(--mainBackgroundColor); | |
26 | z-index: z(header); | |
27 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16); | |
28 | display: flex; | |
29 | ||
30 | .top-left-block { | |
31 | z-index: 1; | |
32 | height: $header-height; | |
33 | display: flex; | |
34 | align-items: center; | |
35 | min-width: 0; | |
36 | ||
37 | .icon { | |
38 | @include icon(24px); | |
39 | ||
40 | &.icon-menu { | |
41 | background-color: pvar(--mainForegroundColor); | |
42 | mask-image: url('../assets/images/header/menu.svg'); | |
43 | margin: 0 18px 0 20px; | |
44 | } | |
45 | } | |
46 | ||
47 | .peertube-title { | |
48 | @include disable-default-a-behaviour; | |
49 | ||
50 | font-size: 20px; | |
51 | font-weight: $font-bold; | |
52 | color: inherit !important; | |
53 | display: flex; | |
54 | align-items: center; | |
55 | overflow: hidden; | |
56 | ||
57 | .instance-name { | |
58 | @include ellipsis; | |
59 | ||
60 | width: 100%; | |
61 | } | |
62 | ||
63 | .icon.icon-logo { | |
64 | display: inline-block; | |
65 | background: url('../assets/images/logo.svg') no-repeat; | |
66 | width: 23px; | |
67 | height: 24px; | |
68 | margin-right: .5rem; | |
69 | } | |
70 | } | |
71 | ||
72 | @media screen and (max-width: $mobile-view) { | |
73 | width: 70px; | |
74 | ||
75 | .peertube-title { | |
76 | display: none; | |
77 | } | |
78 | } | |
79 | ||
80 | @media screen and (max-width: 350px) { | |
81 | flex: auto; | |
82 | } | |
83 | } | |
84 | ||
85 | .header-right { | |
86 | height: $header-height; | |
87 | display: flex; | |
88 | align-items: center; | |
89 | justify-content: flex-end; | |
90 | white-space: nowrap; | |
91 | flex: 1; | |
92 | } | |
93 | } | |
94 | ||
95 | .broadcast-message { | |
96 | min-height: 50px; | |
97 | text-align: center; | |
98 | margin-bottom: 0; | |
99 | border-radius: 0; | |
100 | display: grid; | |
101 | grid-template-columns: 1fr 30px; | |
102 | column-gap: 10px; | |
103 | ||
104 | my-global-icon { | |
105 | justify-self: center; | |
106 | align-self: center; | |
107 | cursor: pointer; | |
108 | ||
109 | width: 20px; | |
110 | } | |
111 | ||
112 | @each $color, $value in $theme-colors { | |
113 | &.alert-#{$color} { | |
114 | my-global-icon { | |
115 | @include apply-svg-color(theme-color-level($color, $alert-color-level)); | |
116 | } | |
117 | } | |
118 | } | |
119 | ||
120 | ::ng-deep { | |
121 | p { | |
122 | font-size: 16px; | |
123 | } | |
124 | ||
125 | p:last-child { | |
126 | margin-bottom: 0; | |
127 | } | |
128 | } | |
129 | } |