]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/header/search-typeahead.component.scss
switch from softies to feathericons
[github/Chocobozzz/PeerTube.git] / client / src / app / header / search-typeahead.component.scss
CommitLineData
f409f0c3 1@import '_mixins';
9677fca7
RK
2@import '_variables';
3@import '_bootstrap-variables';
4@import '~bootstrap/scss/mixins/_breakpoints';
f409f0c3 5
9b8a7aa8
RK
6#search-video {
7 @include peertube-input-text($search-input-width);
8 padding-left: 10px;
9 padding-right: 40px; // For the search icon
10 font-size: 14px;
11
12 &::placeholder {
e66883b3 13 color: pvar(--inputPlaceholderColor);
9b8a7aa8
RK
14 }
15}
16
17.icon.icon-search {
18 @include icon(25px);
c41c0e28 19 height: 18px;
9b8a7aa8
RK
20
21 // yolo
22 position: absolute;
23 margin-left: -35px;
c41c0e28
RK
24 margin-top: 3.5px;
25 right: 10px;
9b8a7aa8
RK
26}
27
f409f0c3
RK
28.jump-to-suggestions {
29 top: 100%;
30 left: 0;
555fdc8c 31 z-index: z(typeahead);
f409f0c3
RK
32 width: 100%;
33}
34
6af662a5 35#typeahead-help,
f409f0c3 36#typeahead-instructions,
5fb2e288 37li.suggestion {
e66883b3 38 border: 1px solid pvar(--mainBackgroundColor);
e66883b3 39 background: pvar(--mainBackgroundColor);
f409f0c3
RK
40 transition: .3s ease;
41 transition-property: box-shadow;
71489890 42 cursor: pointer;
6567e5a7
RK
43
44 // soft border-radius for the last suggestion and the link inside
45 &:last-of-type {
46 &, & ::ng-deep a {
47 border-bottom-right-radius: 3px;
48 border-bottom-left-radius: 3px;
49 }
50 }
f409f0c3
RK
51}
52
6af662a5 53#typeahead-help,
f409f0c3
RK
54#typeahead-instructions {
55 margin-top: 10px;
56 width: 100%;
57 padding: .5rem 1rem;
6af662a5 58 white-space: normal;
f409f0c3
RK
59
60 ul {
61 list-style: none;
62 padding: 0;
63 margin-bottom: .5rem;
64
65 em {
66 font-weight: 600;
67 margin-right: 0.2rem;
68 font-style: normal;
69 }
70 }
71}
72
73#typeahead-container {
9b8a7aa8 74 input {
e66883b3 75 border: 1px solid pvar(--mainBackgroundColor) !important;
f409f0c3
RK
76 box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 20px 0px;
77 flex-grow: 1;
78 transition: box-shadow .3s ease, width .2s ease;
79 }
80
9677fca7 81 @media screen and (min-width: $mobile-view) {
52cc0d54
RK
82 margin-left: 10px;
83 }
84
9677fca7 85 @media screen and (max-width: $small-view) {
52cc0d54
RK
86 flex: 1;
87
9b8a7aa8 88 input {
52cc0d54
RK
89 width: unset;
90 }
91 }
92
9b8a7aa8 93 span {
f409f0c3
RK
94 right: 10px;
95 }
96
97 & > div:last-child {
5fb2e288 98 // we have to switch the display and not the opacity,
f409f0c3
RK
99 // to avoid clashing with the rest of the interface.
100 display: none;
101 }
102
103 &:focus,
104 ::ng-deep &:focus-within {
105 & > div:last-child {
9677fca7 106 @media screen and (min-width: $mobile-view) {
52cc0d54
RK
107 display: initial !important;
108 }
5fb2e288 109
6af662a5 110 #typeahead-help,
f409f0c3 111 #typeahead-instructions,
5fb2e288 112 li.suggestion {
f409f0c3
RK
113 box-shadow: rgba(0, 0, 0, 0.2) 0px 10px 20px -5px;
114 }
115 }
116
117 ::ng-deep input {
118 box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 20px 0px;
119 border-end-start-radius: 0;
120 border-end-end-radius: 0;
121
9677fca7 122 @include media-breakpoint-up(lg) {
f409f0c3
RK
123 width: 500px;
124 }
125 }
126 }
127}
128
f409f0c3
RK
129.glyphicon {
130 top: 3px;
131}
132
133.advanced-search-status {
6af662a5
RK
134 height: max-content;
135 cursor: default;
136
137 &.c-help {
138 cursor: help;
139 }
f409f0c3
RK
140}
141
142.small-title {
143 @include in-content-small-title;
144
145 margin-bottom: .5rem;
146}
147
6af662a5
RK
148::ng-deep my-suggestion {
149 width: 100%;
f409f0c3 150}