Skip to content

Commit ca021e7

Browse files
feat: modernize CSS with flexbox and smooth transitions
1 parent 58a760b commit ca021e7

1 file changed

Lines changed: 40 additions & 10 deletions

File tree

assets/stylesheets/screen.css

Lines changed: 40 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,21 @@ body.guides .column-header a:hover {
104104
float: right;
105105
}
106106

107+
/* Modern Grid System - Flexbox Fallback for older browsers, but mostly Flex now */
108+
.two-columns,
109+
.three-columns,
110+
.four-columns,
111+
.five-columns,
112+
.golden-ratio {
113+
display: flex;
114+
flex-wrap: wrap;
115+
justify-content: space-between;
116+
}
117+
118+
.column {
119+
box-sizing: border-box;
120+
}
121+
107122
ul, ol {
108123
padding-left: 20px;
109124
}
@@ -142,6 +157,7 @@ body.home {
142157

143158
a {
144159
text-decoration: underline;
160+
transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
145161
}
146162

147163
.column-header a {
@@ -189,6 +205,16 @@ button {
189205
border: none;
190206
padding: 10px;
191207
font-size: 18px;
208+
transition: background-color 0.2s ease, transform 0.1s ease;
209+
cursor: pointer;
210+
}
211+
212+
button:hover {
213+
background-color: #fdb658;
214+
}
215+
216+
button:active {
217+
transform: translateY(1px);
192218
}
193219

194220
th {
@@ -332,9 +358,17 @@ code {
332358
.book {
333359
background-color: #ffffff;
334360
border: 1px solid #f5f5f5;
335-
-webkit-box-shadow: 0 8px 6px -6px #ccc;
336-
-moz-box-shadow: 0 8px 6px -6px #ccc;
337361
box-shadow: 0 8px 6px -6px #ccc;
362+
transition: box-shadow 0.3s ease;
363+
}
364+
365+
.quote:hover,
366+
.post:hover,
367+
.user-group:hover,
368+
.question:hover,
369+
.event:hover,
370+
.book:hover {
371+
box-shadow: 0 10px 12px -6px #bbb;
338372
}
339373

340374
.quote,
@@ -785,8 +819,6 @@ div.search {
785819
padding-left: 28px;
786820
font-size: 18px;
787821
line-height: 28px;
788-
-webkit-box-shadow: 0 8px 6px -6px #ccc;
789-
-moz-box-shadow: 0 8px 6px -6px #ccc;
790822
box-shadow: 0 8px 6px -6px #ccc;
791823
margin-top: 50px;
792824
margin-bottom: 50px;
@@ -1070,8 +1102,6 @@ article.quote h2 {
10701102
display: flex;
10711103
justify-content: center;
10721104
align-items: center;
1073-
-webkit-box-shadow: 1px 4px 4px #ccc;
1074-
-moz-box-shadow: 1px 4px 4px #ccc;
10751105
box-shadow: 1px 4px 4px #ccc;
10761106
margin: 0 auto;
10771107
font-family: 'Archia-Light', 'Roboto-Light', "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
@@ -1348,6 +1378,10 @@ article.quote h2 {
13481378
footer {
13491379
overflow: auto;
13501380
}
1381+
footer .content {
1382+
display: flex;
1383+
justify-content: center;
1384+
}
13511385
.partners-nav li {
13521386
text-align: right;
13531387
}
@@ -1381,8 +1415,6 @@ article.quote h2 {
13811415
background-color: #feb672;
13821416
color: #ffffff;
13831417
border: none !important;
1384-
-webkit-box-shadow: 1px 2px 2px #ccc;
1385-
-moz-box-shadow: 1px 2px 2px #ccc;
13861418
box-shadow: 1px 2px 2px #ccc;
13871419
}
13881420
article.guide {
@@ -1420,8 +1452,6 @@ article.guide aside button.btn-large {
14201452
width: 100%;
14211453
height: 60px;
14221454
margin: 20px 0;
1423-
-webkit-box-shadow: 1px 2px 2px #ccc;
1424-
-moz-box-shadow: 1px 2px 2px #ccc;
14251455
box-shadow: 1px 2px 2px #ccc;
14261456
border: none;
14271457
}

0 commit comments

Comments
 (0)