aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/header/search-typeahead.component.scss
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-01-20 15:12:51 +0100
committerRigel Kent <sendmemail@rigelk.eu>2020-02-13 16:32:21 +0100
commitf409f0c3b91d85c66b4841d72ea65b5fbe1483d8 (patch)
tree72c2ab403f6b0708921b64bafae5ef971dfbde3e /client/src/app/header/search-typeahead.component.scss
parent36f2981f7d586cea206e4c143c18cf866a4e3acd (diff)
downloadPeerTube-f409f0c3b91d85c66b4841d72ea65b5fbe1483d8.tar.gz
PeerTube-f409f0c3b91d85c66b4841d72ea65b5fbe1483d8.tar.zst
PeerTube-f409f0c3b91d85c66b4841d72ea65b5fbe1483d8.zip
Search typeahead initial design
Diffstat (limited to 'client/src/app/header/search-typeahead.component.scss')
-rw-r--r--client/src/app/header/search-typeahead.component.scss121
1 files changed, 121 insertions, 0 deletions
diff --git a/client/src/app/header/search-typeahead.component.scss b/client/src/app/header/search-typeahead.component.scss
new file mode 100644
index 000000000..93f021e33
--- /dev/null
+++ b/client/src/app/header/search-typeahead.component.scss
@@ -0,0 +1,121 @@
1@import '_mixins';
2
3.jump-to-suggestions {
4 top: 100%;
5 left: 0;
6 z-index: 35;
7 width: 100%;
8}
9
10#typeahead-instructions,
11#jump-to-results {
12 border: 1px solid var(--mainBackgroundColor);
13 border-bottom-right-radius: 3px;
14 border-bottom-left-radius: 3px;
15 background: var(--mainBackgroundColor);
16 transition: .3s ease;
17 transition-property: box-shadow;
18}
19
20#typeahead-instructions {
21 margin-top: 10px;
22 width: 100%;
23 padding: .5rem 1rem;
24
25 ul {
26 list-style: none;
27 padding: 0;
28 margin-bottom: .5rem;
29
30 em {
31 font-weight: 600;
32 margin-right: 0.2rem;
33 font-style: normal;
34 }
35 }
36}
37
38#typeahead-container {
39 ::ng-deep input {
40 border: 1px solid var(--mainBackgroundColor) !important;
41 box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 20px 0px;
42 flex-grow: 1;
43 transition: box-shadow .3s ease, width .2s ease;
44 }
45
46 ::ng-deep span {
47 right: 10px;
48 }
49
50 & > div:last-child {
51 // we have to switch the display and not the opacity,
52 // to avoid clashing with the rest of the interface.
53 display: none;
54 }
55
56 &:focus,
57 ::ng-deep &:focus-within {
58 & > div:last-child {
59 display: initial !important;
60
61 #typeahead-instructions,
62 #jump-to-results {
63 box-shadow: rgba(0, 0, 0, 0.2) 0px 10px 20px -5px;
64 }
65 }
66
67 ::ng-deep input {
68 box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 20px 0px;
69 border-end-start-radius: 0;
70 border-end-end-radius: 0;
71
72 @media screen and (min-width: 900px) {
73 width: 500px;
74 }
75 }
76 }
77}
78
79a.focus-visible {
80 background-color: var(--mainHoverColor);
81}
82
83a {
84 @include disable-default-a-behaviour;
85 width: 100%;
86
87 &, &:hover {
88 color: var(--mainForegroundColor);
89 }
90}
91
92.bg-gray {
93 background-color: var(--mainBackgroundColor);
94}
95
96.text-gray-light {
97 color: var(--mainForegroundColor);
98}
99
100.glyphicon {
101 top: 3px;
102}
103
104.advanced-search-status {
105 cursor: help;
106}
107
108.small-title {
109 @include in-content-small-title;
110
111 margin-bottom: .5rem;
112}
113
114my-global-icon {
115 width: 17px;
116 position: relative;
117 top: -2px;
118 margin: 5px;
119
120 @include apply-svg-color(var(--mainForegroundColor))
121}