Skip to content

Commit 5cdbdac

Browse files
committed
_scss: remove unneeded vendor-prefixes, and combine some styles
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 2bef56e commit 5cdbdac

File tree

3 files changed

+10
-39
lines changed

3 files changed

+10
-39
lines changed

_scss/_global-header.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
*/
44

55
.hero-text {
6-
-ms-flex-align: center;
76
align-items: center;
87
display: -ms-flexbox;
98
display: flex;
109
-webkit-box-align: center;
1110
-webkit-align-items: center;
1211
min-height: 20em;
1312
min-width: 400px;
13+
-ms-flex-align: center;
1414
-ms-flex-pack: center;
1515
justify-content: center;
1616
& h1 {

_scss/_overrides.scss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
6666

6767
.btn-group.open .dropdown-toggle {
6868
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
69-
//box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
7069
background: transparent;
7170
color: #fff;
7271
box-shadow: none;
@@ -152,8 +151,6 @@ img.with-border {
152151
.cse input.gsc-search-button:focus,
153152
input.gsc-search-button:focus {
154153
box-shadow:inset 0 0 0 1px rgba(255,255,255,0.5);
155-
-webkit-box-shadow:inset 0 0 0 1px rgba(255,255,255,0.5);
156-
-moz-box-shadow:inset 0 0 0 1px rgba(255,255,255,0.5);
157154
}
158155

159156
.cse .gsc-search-button input.gsc-search-button-v2,

_scss/_utilities.scss

Lines changed: 9 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -91,20 +91,23 @@ img.inline {
9191
}
9292
}
9393

94-
.nav-secondary-tabs .search-form input[type=search] {
94+
.nav-secondary-tabs .search-form input[type=search],
95+
.nav-secondary input[type=search]
96+
{
9597
background: rgba(0, 0, 0, 0.17) url("/images/search.png") no-repeat 10px 9px;
9698
border: 0;
9799
box-shadow: none;
98100
color: #fff;
99101
border-radius: 0;
100-
-webkit-transition: all 0.2s ease;
101-
-moz-transition: all 0.2s ease;
102-
-o-transition: all 0.2s ease;
103102
transition: all 0.2s ease;
104103
padding: 0 0 0 35px;
105104
width: 100%;
106105
}
107106

107+
.nav-secondary-tabs .search-form input[type=search] {
108+
width: 100%;
109+
}
110+
108111
.search-form input[type=text]:focus {
109112
background: #fff;
110113
box-shadow: 0;
@@ -129,41 +132,12 @@ input[type=text] {
129132
transition: all 0.2s ease;
130133
}
131134

132-
.nav-secondary input[type=search] {
133-
background: rgba(0, 0, 0, 0.17) url("/images/search.png") no-repeat 10px 9px;
134-
border: 0;
135-
box-shadow: none;
136-
color: #fff;
137-
border-radius: 0;
138-
-webkit-transition: all 0.2s ease;
139-
-moz-transition: all 0.2s ease;
140-
-o-transition: all 0.2s ease;
141-
transition: all 0.2s ease;
142-
padding: 0 0 0 35px;
143-
}
144-
145135
.nav-secondary .search-form input[type=search]:focus {
146136
background: rgba(255, 255, 255, 0.17) url(/images/search.png) no-repeat 10px 9px;
147137
}
148138

149-
.search-form input[type=search]::-webkit-input-placeholder {
150-
color: #fff;
151-
opacity: 1;
152-
}
153-
154-
.search-form input[type=search]:-moz-placeholder {
155-
/* Firefox 18- */
156-
color: #fff;
157-
opacity: 1;
158-
}
159-
160-
.search-form input[type=search]::-moz-placeholder {
161-
/* Firefox 19+ */
162-
color: #fff;
163-
opacity: 1;
164-
}
165-
166-
.search-form input[type=search]:-ms-input-placeholder {
139+
.search-form input[type=search]::placeholder
140+
{
167141
color: #fff;
168142
opacity: 1;
169143
}

0 commit comments

Comments
 (0)