Skip to content

Commit bd5b1a7

Browse files
author
christopheschwyzer
committed
simplify & improve styles
1 parent bbd5851 commit bd5b1a7

File tree

4 files changed

+47
-41
lines changed

4 files changed

+47
-41
lines changed

_layouts/default.html

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -318,14 +318,12 @@
318318
</section>
319319

320320
<footer id="footer">
321-
<div class="sheet">
322-
<div class="social">
323-
<a href="https://twitter.com/madeinbasel" class="social-link twitter" title="Twitter"></a>
324-
<a href="https://github.com/MadeInBasel/madeinbasel.github.io" class="social-link github" title="Github"></a>
325-
</div>
326-
<a href="mailto:[email protected]" class="mail">[email protected]</a>
327-
<p class="copyright">&copy; {{ site.time | date: '%Y' }} madeinbasel.org</p>
321+
<div class="social">
322+
<a href="https://twitter.com/madeinbasel" class="social-link twitter" title="Twitter"></a>
323+
<a href="https://github.com/MadeInBasel/madeinbasel.github.io" class="social-link github" title="Github"></a>
328324
</div>
325+
<a href="mailto:[email protected]" class="mail">[email protected]</a>
326+
<p class="copyright">&copy; {{ site.time | date: '%Y' }} madeinbasel.org</p>
329327
</footer>
330328
</body>
331329
<script>

css/main.css

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,6 @@ body {
5151
.sheet {
5252
margin: 0 auto;
5353
max-width: 990px;
54-
padding: 0 12px;
55-
}
56-
@media (min-width: 450px) {
57-
.sheet {
58-
padding: 0 20px;
59-
}
60-
}
61-
@media (min-width: 700px) {
62-
.sheet {
63-
padding: 0 40px;
64-
}
6554
}
6655
a {
6756
text-decoration: none;
@@ -86,8 +75,23 @@ h2 {
8675
text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
8776
}
8877
article {
89-
padding: 15px 0;
90-
margin-bottom: 25px;
78+
padding: 15px 12px 35px;
79+
}
80+
@media (min-width: 450px) {
81+
article {
82+
padding: 15px 20px 35px;
83+
}
84+
}
85+
@media (min-width: 700px) {
86+
article {
87+
padding: 15px 40px 35px;
88+
}
89+
}
90+
article:not(:last-of-type) {
91+
border-bottom: 1px dashed #c3c3c3;
92+
}
93+
article:nth-child(even) {
94+
background-color: #fafafa;
9195
}
9296
article p {
9397
text-align: justify;
@@ -272,7 +276,7 @@ strong {
272276
#main {
273277
position: relative;
274278
box-shadow: 0 12px 12px rgba(0, 0, 0, 0.1);
275-
background: #f5f5f5;
279+
background-color: #f5f5f5;
276280
margin-top: -30px;
277281
padding-top: 50px;
278282
padding-bottom: 25px;
@@ -437,7 +441,7 @@ strong {
437441
height: 100px;
438442
margin: 3px;
439443
border: 1px solid rgba(0, 0, 0, 0.07);
440-
background: white;
444+
background-color: #fdfdfd;
441445
}
442446
.partner-list .list-item-link:hover {
443447
background-color: rgba(26, 26, 26, 0.05);
@@ -466,8 +470,8 @@ strong {
466470
.meetup-list .list-item {
467471
margin-bottom: 7px;
468472
padding: 12px;
469-
background-color: rgba(26, 26, 26, 0.08);
470-
background-color: white;
473+
background-color: #f2f2f2;
474+
border-left: 1px solid #c3c3c3;
471475
}
472476
.meetup-list h4 {
473477
margin: 0;

css/main.less

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
@colorBgAlternative: #0099CC;
1010
@colorBgAlternative: #008FA9;
1111
@colorFgShy: lighten(@colorFg, 20);
12-
@colorFgBorder: #b9b9b9;
12+
@colorFgBorder: #c3c3c3;
1313

1414
@fontDefault: 'Open Sans', sans-serif;
1515
@fontSpecial: 'Pacifico', cursive;
@@ -24,7 +24,6 @@
2424
@breakpointMedium: 700px;
2525

2626
@link: rgb(44, 135, 173);
27-
@bgOverlay: rgba(60, 60, 60, .09);
2827

2928
.clearfix {
3029
*zoom: 1;
@@ -103,14 +102,6 @@ body {
103102
.sheet {
104103
margin: 0 auto;
105104
max-width: @siteWidth;
106-
padding: 0 12px;
107-
108-
@media (min-width: @breakpointSmall) {
109-
padding: 0 20px;
110-
}
111-
@media (min-width: @breakpointMedium) {
112-
padding: 0 40px;
113-
}
114105
}
115106

116107
a {
@@ -138,8 +129,22 @@ h2 {
138129
}
139130

140131
article {
141-
padding: 15px 0;
142-
margin-bottom: 25px;
132+
padding: 15px 12px 35px;
133+
134+
@media (min-width: @breakpointSmall) {
135+
padding: 15px 20px 35px;
136+
}
137+
@media (min-width: @breakpointMedium) {
138+
padding: 15px 40px 35px;
139+
}
140+
141+
&:not(:last-of-type) {
142+
border-bottom: 1px dashed @colorFgBorder;
143+
}
144+
145+
&:nth-child(even) {
146+
background-color: lighten(@colorBg, 2);
147+
}
143148

144149
p {
145150
text-align: justify;
@@ -309,7 +314,7 @@ strong {
309314
#main {
310315
position: relative;
311316
box-shadow: 0 12px 12px rgba(0, 0, 0, 0.1);
312-
background: @colorBg;
317+
background-color: @colorBg;
313318
margin-top: -30px;
314319
padding-top: 50px;
315320
padding-bottom: 25px;
@@ -457,7 +462,7 @@ strong {
457462
height: @maxHeight;
458463
margin: 3px;
459464
border: 1px solid hsla(0, 0%, 0%, .07);
460-
background: white;
465+
background-color: lighten(@colorBg, 3);
461466

462467
&:hover {
463468
background-color: hsla(0, 0%, 10%, .05);
@@ -491,8 +496,8 @@ strong {
491496
.list-item {
492497
margin-bottom: 7px;
493498
padding: 12px;
494-
background-color: hsla(0, 0%, 10%, .08);
495-
background-color: white;
499+
background-color: darken(@colorBg, 1);
500+
border-left: 1px solid @colorFgBorder;
496501
}
497502

498503
h4 {

index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ <h2>Who is in</h2>
4141
</a>
4242
</li>
4343
{% endfor %}
44-
4544
<li class="list-item">
4645
<a class="list-item-link empty" href="https://github.com/MadeInBasel/madeinbasel.github.io">
4746
<span>You?!</span>

0 commit comments

Comments
 (0)