]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/app.component.scss
Support broadcast messages
[github/Chocobozzz/PeerTube.git] / client / src / app / app.component.scss
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: var(--mainBackgroundColor);
17 width: 100%;
18 }
19
20 .header {
21 height: $header-height;
22 position: fixed;
23 top: 0;
24 width: 100%;
25 background-color: var(--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: var(--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 }
69 }
70
71 @media screen and (max-width: $mobile-view) {
72 width: 70px;
73
74 .peertube-title {
75 display: none;
76 }
77 }
78
79 @media screen and (max-width: 350px) {
80 flex: auto;
81 }
82 }
83
84 .header-right {
85 height: $header-height;
86 display: flex;
87 align-items: center;
88 justify-content: flex-end;
89 white-space: nowrap;
90 flex: 1;
91 }
92 }
93
94 .broadcast-message {
95 min-height: 50px;
96 text-align: center;
97 margin-bottom: 0;
98 border-radius: 0;
99 display: grid;
100 grid-template-columns: 1fr 30px;
101 column-gap: 10px;
102
103 my-global-icon {
104 justify-self: center;
105 align-self: center;
106 cursor: pointer;
107
108 width: 20px;
109 }
110
111 @each $color, $value in $theme-colors {
112 &.alert-#{$color} {
113 my-global-icon {
114 @include apply-svg-color(theme-color-level($color, $alert-color-level));
115 }
116 }
117 }
118
119 ::ng-deep {
120 p {
121 font-size: 16px;
122 }
123
124 p:last-child {
125 margin-bottom: 0;
126 }
127 }
128 }