-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo1.css
100 lines (83 loc) · 1.5 KB
/
demo1.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Buttons */
.btn {
margin: 0;
padding: 0;
cursor: pointer;
border: none;
background: none;
}
.btn:focus {
outline: none;
}
.btn--search {
font-size: 1em;
float: right;
display: inline-block;
}
.btn--hidden {
pointer-events: none;
opacity: 0;
}
/* Reset Search Input */
.search__input {
border: 0;
background: transparent;
border-radius: 0;
-webkit-appearance: none;
}
.search__input:focus {
outline: none;
}
/* Links */
a,
.btn {
text-decoration: none;
color: #000;
outline: none;
}
.hidden {
position: absolute;
overflow: hidden;
width: 0;
height: 0;
pointer-events: none;
}
/* Icons */
.icon {
display: block;
width: 1.5em;
height: 1.5em;
margin: 0 auto;
fill: currentColor;
}
/* Header */
.codrops-header {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
width: 100%;
padding: 2.5em;
text-align: left;
}
.search-wrap {
margin: 0 0 0 auto;
}
/* Resposible Web Design (RWD) */
@media screen and (max-width: 40em) {
.codrops-header {
display: block;
padding: 4em 1em 0;
text-align: center;
}
.search-wrap {
position: absolute;
font-size: 0.85em;
top: 2.15em;
right: 2em;
}
}