Skip to content

Commit 49d079f

Browse files
author
christopheschwyzer
committed
rename catchphrase class, adjust media-queries
1 parent 7957dc9 commit 49d079f

File tree

3 files changed

+26
-16
lines changed

3 files changed

+26
-16
lines changed

_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@
303303
<header id="header">
304304
<div class="logo-wrapper">
305305
<span class="logo" title="Made in Basel"></span>
306-
<q class="catchphrase">Beautiful code from a beautiful city!</q>
306+
<p class="slogan">Beautiful code from a beautiful city!</p>
307307
</div>
308308
<div class="bg">
309309
<svg viewBox="0 0 1600 900" preserveAspectRatio="xMidYMax slice" height="100%" width="100%">

css/main.css

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ strong {
149149
height: 90%;
150150
}
151151
}
152-
@media (min-aspect-ratio: 12/6) {
152+
@media (min-aspect-ratio: 12/7) {
153153
#header {
154154
height: 100%;
155155
}
@@ -167,22 +167,26 @@ strong {
167167
height: 100%;
168168
background: url(/img/logo.svg) no-repeat center;
169169
}
170-
#header .logo-wrapper .catchphrase {
170+
#header .logo-wrapper .slogan {
171171
display: block;
172172
font-style: italic;
173173
text-shadow: 1px 1px #f5f5f5;
174174
}
175+
#header .logo-wrapper .slogan:before {
176+
content: '<';
177+
}
178+
#header .logo-wrapper .slogan:after {
179+
content: '>';
180+
}
175181
@media (min-width: 700px) {
176-
#header .logo-wrapper .catchphrase {
177-
font-size: 1.5rem;
182+
#header .logo-wrapper .slogan {
183+
font-size: 1.3rem;
178184
}
179185
}
180-
@media (min-aspect-ratio: 12/8) {
181-
#header .logo-wrapper .catchphrase {
186+
@media (min-aspect-ratio: 12/6) {
187+
#header .logo-wrapper .slogan {
182188
display: none;
183189
}
184-
}
185-
@media (min-aspect-ratio: 12/7) {
186190
#header .logo-wrapper .logo {
187191
width: 220px;
188192
}

css/main.less

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ strong {
176176
height: 90%;
177177
}
178178

179-
@media (min-aspect-ratio: 12/6) {
179+
@media (min-aspect-ratio: 12/7) {
180180
height: 100%;
181181
}
182182

@@ -198,23 +198,29 @@ strong {
198198
background: url(/img/logo.svg) no-repeat center;
199199
}
200200

201-
.catchphrase {
201+
.slogan {
202202
display: block;
203203
font-style: italic;
204204
text-shadow: 1px 1px @colorBg;
205205

206+
&:before {
207+
content: '<';
208+
}
209+
210+
&:after {
211+
content: '>';
212+
}
213+
206214
@media (min-width: @breakpointMedium) {
207-
font-size: 1.5rem;
215+
font-size: 1.3rem;
208216
}
209217
}
210218

211-
@media (min-aspect-ratio: 12/8) {
212-
.catchphrase {
219+
@media (min-aspect-ratio: 12/6) {
220+
.slogan {
213221
display: none;
214222
}
215-
}
216223

217-
@media (min-aspect-ratio: 12/7) {
218224
.logo {
219225
width: 220px;
220226
}

0 commit comments

Comments
 (0)