Skip to content

Commit c73cf92

Browse files
committed
fix header hover and active links and style downloads page
1 parent 06ec249 commit c73cf92

2 files changed

Lines changed: 19 additions & 25 deletions

File tree

assets/sass/layout/_header.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@use "sass:color";
12
@use "../base/mixins";
23
@use "../base/variables";
34

@@ -20,7 +21,7 @@
2021
}
2122

2223
a.active {
23-
color: #fff;
24+
color: color.adjust(variables.$purple, $lightness: -15%, $space: hsl);
2425
}
2526
}
2627

@@ -88,14 +89,15 @@
8889
.site-navigation {
8990
flex: 2 1 0;
9091
padding: 0 0 10px 0;
91-
font-size: 18px;
92+
font-size: 20px;
93+
font-weight: 500;
9294

9395
a {
9496
margin-right: 30px;
9597
color: #63338f;
9698

9799
&:hover {
98-
color: #fff;
100+
color: color.adjust(variables.$purple, $lightness: -15%, $space: hsl);
99101
}
100102
}
101103
}

assets/sass/pages/_downloads.scss

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@use "../base/variables";
44

55
#downloads-page {
6-
padding: 50px 0 200px 0;
6+
padding: 20px 0 200px 0;
77
display: grid;
88
grid-template-columns:
99
[full-start] minmax(1em, 1fr)
@@ -52,7 +52,7 @@
5252
width: 100%;
5353
height: 50px;
5454
padding: 15px;
55-
border-radius: 5px;
55+
border-radius: 10px;
5656
border: 3px solid variables.$purple;
5757
box-sizing: border-box;
5858
}
@@ -66,7 +66,7 @@
6666
color: #fff;
6767
background-color: variables.$purple;
6868
float: left;
69-
border-radius: 5px;
69+
border-radius: 10px;
7070
border: none;
7171
cursor: pointer;
7272

@@ -180,21 +180,21 @@
180180

181181
.download {
182182
height: 100%;
183+
border-radius: 10px;
183184

184185
.img-responsive-4by3 {
185186
height: 0;
186-
overflow: hidden;
187-
padding-top: 75%;
187+
padding-bottom: 100%;
188188
position: relative;
189-
width: 100%;
190189

191190
img {
192191
position: absolute;
193-
top: 50%;
194-
left: 50%;
195-
max-width: 100%;
196-
max-height: 100%;
197-
transform: translate(-50%, -50%);
192+
top: 0;
193+
left: 0;
194+
width: 100%;
195+
height: 100%;
196+
object-fit: cover;
197+
object-position: center;
198198
}
199199
}
200200

@@ -204,20 +204,12 @@
204204
justify-content: space-between;
205205
height: 100%;
206206
background-color: #fff;
207-
padding: 5px 5px 0px 5px;
208207
color: #000;
209-
border: 1px solid variables.$gray-border;
210-
margin: 1px;
211-
border-radius: 5px;
212-
213-
&:hover {
214-
border-radius: 5px;
215-
margin: 0px;
216-
border: 2px solid #e90e8b;
217-
}
208+
border-radius: 25px;
209+
overflow: hidden;
218210

219211
.details {
220-
margin-left: 3px;
212+
padding: 10px 20px 0px 20px;
221213
}
222214

223215
.features {

0 commit comments

Comments
 (0)