Skip to content

Commit a929ae5

Browse files
authored
Merge pull request #158 from mikael-ros/flexible-footer
Flexible footer
2 parents 0ec95a0 + 4ecd4f6 commit a929ae5

File tree

2 files changed

+9
-18
lines changed

2 files changed

+9
-18
lines changed

src/components/Link.css

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
justify-content: center;
55
position: relative;
66

7-
padding: 0 .5em;
7+
--link-padding: .75em;
8+
padding: 0 var(--link-padding);
89

910
text-decoration: none;
1011
color: var(--text-color-negative);
@@ -22,7 +23,11 @@
2223
}
2324

2425
.link p {
25-
padding: 0 .25em;
26+
padding: 0 calc(var(--link-padding) / 2);
27+
}
28+
29+
.link-with-image p {
30+
padding: 0 var(--link-padding);
2631
}
2732

2833
.link img {
@@ -35,15 +40,10 @@
3540
transition-duration: var(--transition-duration-fast);
3641
}
3742

38-
.link-with-image p {
39-
padding: 0 0.5em;
40-
}
4143

4244
.link-container{
4345
position: relative;
4446
border-left: .1em var(--text-color-negative-dull) solid;
45-
46-
4747
}
4848

4949
.link-container[data-clipboard = "false"]:nth-of-type(1){
@@ -52,17 +52,9 @@
5252

5353
@media (max-width:900px) {
5454
.link {
55-
padding: .5em 0;
56-
}
57-
58-
.link p {
59-
padding: 0;
55+
padding: var(--link-padding) 0;
6056
}
6157

62-
.link-with-image p {
63-
padding: 0 0.5em;
64-
}
65-
6658
.link-container{
6759
border: none;
6860
}

src/styles/slumper.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ footer {
112112
justify-content: center;
113113

114114
bottom: 0;
115-
height: 3em;
115+
height: fit-content;
116116
padding: .75em;
117117
width: 100%;
118118

@@ -230,7 +230,6 @@ main{
230230

231231
background-color: rgba(var(--backdrop-color),0.6);
232232

233-
height: fit-content;
234233
--padding: .5em;
235234
padding: var(--padding) var(--padding) calc(2*var(--_interactive-height) + 2*var(--spacing) + var(--_gap) + var(--padding));
236235

0 commit comments

Comments
 (0)