Skip to content

Commit 864b171

Browse files
authored
Merge pull request #18 from creativecommons/fix-styles
fix styles issues
2 parents da61cb2 + e42b36d commit 864b171

File tree

5 files changed

+40
-1
lines changed

5 files changed

+40
-1
lines changed

assets/css/styles.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front/src/styles/base.scss

+13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
.entry-content {
2+
.title {
3+
font-weight: $bold;
4+
}
25
.content {
6+
a {
7+
color: $link;
8+
&:hover {
9+
color: $link;
10+
text-decoration: underline;
11+
}
12+
}
13+
p {
14+
margin-bottom: $space-normal;
15+
}
316
.og-numbers {
417
list-style: none;
518
counter-reset: og-counter;

front/src/styles/layout.scss

+13
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
padding-top: $space-normal;
1616
}
1717
.main-navigation {
18+
width: 100%;
1819
ul {
1920
list-style: none;
2021
.menu-item {
@@ -101,6 +102,18 @@
101102
}
102103
}
103104
}
105+
.home {
106+
.main-content {
107+
padding-left: 0;
108+
padding-right: 0;
109+
.entry-content {
110+
@include touch() {
111+
padding-left: $space-normal;
112+
padding-right: $space-normal;
113+
}
114+
}
115+
}
116+
}
104117
.main-content {
105118
@include touch() {
106119
padding-left: $space-normal;

front/src/styles/modules.scss

+11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
.homepage-header {
22
.top-header-image {
33
position: relative;
4+
height: 170px;
5+
overflow: hidden;
46
a {
57
&:hover {
68
.attribution {
@@ -18,9 +20,15 @@
1820
color: $grey-dark;
1921
font-weight: $bold;
2022
font-size: $size-7;
23+
@include mobile() {
24+
left: 0;
25+
width: 100%;
26+
}
2127
}
2228
img {
2329
width: 100%;
30+
height: 100%;
31+
object-fit: cover;
2432
}
2533
}
2634
}
@@ -30,6 +38,9 @@
3038

3139
.card {
3240
margin-bottom: $space-normal;
41+
&:hover {
42+
text-decoration: none !important;
43+
}
3344
&.number-card {
3445
display: block;
3546
padding: $size-3;

front/src/styles/variables.scss

+2
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@ $brown : #BD7800;
3131
$yellow : #FFF2DF;
3232
$gray-light : #DBDBDB;
3333
$grey-dark : #353535;
34+
$black : #000000;
3435

3536
$primary : $orange;
3637
$success : $light-green;
3738

3839
$link: $orange;
40+
$title-color: $black;
3941

4042

4143
$brand-colors: (

0 commit comments

Comments
 (0)