]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/header/header.component.scss
Gracefully downsize search bar for mobile devices
[github/Chocobozzz/PeerTube.git] / client / src / app / header / header.component.scss
CommitLineData
63c4db6d
C
1@import '_variables';
2@import '_mixins';
3
f409f0c3
RK
4my-search-typeahead {
5 margin-right: 15px;
6}
7
26c6ee80 8#search-video {
c30745f3 9 @include peertube-input-text($search-input-width);
2d9fea16 10 padding-left: 10px;
f6eebcb3 11 padding-right: 40px; // For the search icon
17bb716b 12 font-size: 14px;
26c6ee80
C
13
14 &::placeholder {
9a0fc840 15 color: var(--inputPlaceholderColor);
26c6ee80
C
16 }
17}
18
19.icon.icon-search {
0727cab0 20 @include icon(25px);
26c6ee80 21 height: 21px;
0727cab0 22
9a0fc840
RK
23 background-color: var(--mainForegroundColor);
24 mask: url('../../assets/images/header/search.svg') no-repeat 50% 50%;
0727cab0 25
26c6ee80
C
26 // yolo
27 position: absolute;
f409f0c3 28 margin-left: -35px;
26c6ee80
C
29 margin-top: 5px;
30}
31
32.upload-button {
c30745f3 33 @include peertube-button-link;
7b272fd7 34 @include orange-button;
457bb213 35 @include button-with-icon(22px, 3px, -1px);
26c6ee80 36
000eb0e4 37 color: var(--mainBackgroundColor) !important;
c30745f3 38 margin-right: 25px;
26c6ee80 39
07fa4c97 40 @media screen and (max-width: 600px) {
3daf4002
C
41 margin-right: 10px;
42 padding: 0 10px;
43
44 .icon.icon-upload {
45 margin-right: 0;
46 }
47
48 .upload-button-label {
49 display: none;
50 }
51 }
26c6ee80 52}