Skip to content

Commit cb9e8eb

Browse files
committed
prevent links overflowing, switch ems to rems, change hover effect
1 parent d7acd17 commit cb9e8eb

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

_assets/borg.css

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
body {
22
margin: 0;
33
font-family: verdana,arial,helvetica,sans-serif;
4-
padding-bottom: 1em;
4+
padding-bottom: 1rem;
55
}
66

77
header {
88
background-color: black;
9-
padding-top: 1.5em;
10-
padding-bottom: 1em;
9+
padding-top: 1.5rem;
10+
padding-bottom: 1rem;
1111
border-bottom: 2px solid #22D045;
1212
}
1313

@@ -23,7 +23,7 @@ header h1 {
2323

2424
main.content {
2525
max-width: 600px;
26-
padding: 0 1rem 0 1rem;
26+
padding: 0 1rem;
2727
margin: 0 auto;
2828
}
2929

@@ -35,7 +35,7 @@ main #tagline,
3535
main h1.title {
3636
font-size: 220%;
3737
font-weight: normal;
38-
padding-bottom: .7em;
38+
padding-bottom: 1.5rem;
3939
border-bottom: 1px solid #666;
4040
text-align: left;
4141
}
@@ -47,36 +47,34 @@ main h1 {
4747

4848
main ul {
4949
line-height: 1.5em;
50+
padding-bottom: 0.75rem;
5051
}
5152

5253
.main-index h2 {
53-
margin: 0.8125em 0;
54+
margin: 1.5rem 0;
5455
}
5556

5657
#links {
57-
margin-top: 2em;
58+
padding-bottom: 1.5rem;
59+
display: flex;
60+
flex-wrap: wrap;
61+
justify-content: space-around;
5862
}
5963

6064
#links a {
61-
text-decoration: none;
6265
color: #22D045;
6366
}
6467

65-
#links a:hover {
66-
color: #00dd00;
67-
}
68-
6968
#links a:hover .action {
70-
text-decoration: none;
71-
font-weight: bold;
7269
background: white;
70+
text-shadow: 0 0 5px #22D045;
7371
}
7472

7573
#links .link {
76-
float: left;
77-
width: 199px;
78-
height: 120px;
74+
display: flex;
7975
text-align: center;
76+
padding: 0.75rem 1.5rem;
77+
float: left;
8078
}
8179

8280
#links .action {

0 commit comments

Comments
 (0)