]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - 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
1@import '_mixins';
2@import '_variables';
3@import '_bootstrap-variables';
4@import '~bootstrap/scss/mixins/_breakpoints';
5
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 {
13 color: pvar(--inputPlaceholderColor);
14 }
15}
16
17.icon.icon-search {
18 @include icon(25px);
19 height: 18px;
20
21 // yolo
22 position: absolute;
23 margin-left: -35px;
24 margin-top: 3.5px;
25 right: 10px;
26}
27
28.jump-to-suggestions {
29 top: 100%;
30 left: 0;
31 z-index: z(typeahead);
32 width: 100%;
33}
34
35#typeahead-help,
36#typeahead-instructions,
37li.suggestion {
38 border: 1px solid pvar(--mainBackgroundColor);
39 background: pvar(--mainBackgroundColor);
40 transition: .3s ease;
41 transition-property: box-shadow;
42 cursor: pointer;
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 }
51}
52
53#typeahead-help,
54#typeahead-instructions {
55 margin-top: 10px;
56 width: 100%;
57 padding: .5rem 1rem;
58 white-space: normal;
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 {
74 input {
75 border: 1px solid pvar(--mainBackgroundColor) !important;
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
81 @media screen and (min-width: $mobile-view) {
82 margin-left: 10px;
83 }
84
85 @media screen and (max-width: $small-view) {
86 flex: 1;
87
88 input {
89 width: unset;
90 }
91 }
92
93 span {
94 right: 10px;
95 }
96
97 & > div:last-child {
98 // we have to switch the display and not the opacity,
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 {
106 @media screen and (min-width: $mobile-view) {
107 display: initial !important;
108 }
109
110 #typeahead-help,
111 #typeahead-instructions,
112 li.suggestion {
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
122 @include media-breakpoint-up(lg) {
123 width: 500px;
124 }
125 }
126 }
127}
128
129.glyphicon {
130 top: 3px;
131}
132
133.advanced-search-status {
134 height: max-content;
135 cursor: default;
136
137 &.c-help {
138 cursor: help;
139 }
140}
141
142.small-title {
143 @include in-content-small-title;
144
145 margin-bottom: .5rem;
146}
147
148::ng-deep my-suggestion {
149 width: 100%;
150}