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