]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/app.component.scss
Merge branch 'release/3.1.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / app.component.scss
CommitLineData
63c4db6d
C
1@import '_variables';
2@import '_mixins';
72c33e71
C
3@import '~bootstrap/scss/functions';
4@import '~bootstrap/scss/variables';
63c4db6d 5
583eb04b
C
6$assets-path: '../assets';
7
fad0759c
C
8.peertube-container {
9 padding-bottom: 20px;
10}
11
67167390
C
12.main-row {
13 min-height: calc(100vh - #{$header-height} - #{$footer-height} - #{$footer-margin});
14}
15
b33f657c
C
16.sub-header-container {
17 margin-top: $header-height;
e66883b3 18 background-color: pvar(--mainBackgroundColor);
c4741804 19 width: 100%;
b33f657c
C
20}
21
67167390
C
22.header {
23 height: $header-height;
b33f657c 24 position: fixed;
26c6ee80 25 top: 0;
b33f657c 26 width: 100%;
e66883b3 27 background-color: pvar(--mainBackgroundColor);
36f2981f 28 z-index: z(header);
b33f657c
C
29 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
30 display: flex;
ea9f487b 31
67167390 32 .top-left-block {
555fdc8c 33 z-index: 1;
0d7d2ad9 34 height: $header-height;
d7c152a4 35 display: flex;
26c6ee80 36 align-items: center;
8a44f835 37 min-width: 0;
26c6ee80
C
38
39 .icon {
7797350a 40 @include icon(24px);
26c6ee80
C
41
42 &.icon-menu {
e66883b3 43 background-color: pvar(--mainForegroundColor);
583eb04b 44 mask-image: url('#{$assets-path}/images/misc/menu.svg');
1f788f20 45 margin: 0 18px 0 20px;
97c116ed 46
47 @media screen and (max-width: $mobile-view) {
48 margin: 0 10px;
49 }
67167390
C
50 }
51 }
52
f0c5e8b6 53 .peertube-title {
8a44f835 54 @include disable-default-a-behaviour;
f0c5e8b6 55
26c6ee80
C
56 font-size: 20px;
57 font-weight: $font-bold;
58 color: inherit !important;
59 display: flex;
60 align-items: center;
8a44f835 61 overflow: hidden;
26c6ee80 62
8a44f835 63 .instance-name {
ef80c66c
C
64 @include ellipsis;
65
8a44f835
C
66 width: 100%;
67 }
26c6ee80
C
68
69 .icon.icon-logo {
70 display: inline-block;
0727cab0 71 width: 23px;
b33f657c 72 height: 24px;
e66883b3 73 margin-right: .5rem;
ea9f487b
C
74 }
75 }
3eeeb87f 76
ece3029b 77 @media screen and (max-width: $mobile-view) {
3daf4002 78
f0c5e8b6 79 .peertube-title {
3eeeb87f
C
80 display: none;
81 }
3eeeb87f 82 }
ea9f487b 83 }
ea9f487b 84
b33f657c 85 .header-right {
b33f657c 86 height: $header-height;
26c6ee80
C
87 display: flex;
88 align-items: center;
26c6ee80 89 justify-content: flex-end;
8a44f835 90 white-space: nowrap;
5dfb7c1d 91 flex: 1;
67167390 92 }
897ec54d 93}
72c33e71
C
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}