Skip to content

Commit

Permalink
Merge pull request #158 from mikael-ros/flexible-footer
Browse files Browse the repository at this point in the history
Flexible footer
  • Loading branch information
mikael-ros authored Oct 31, 2024
2 parents 0ec95a0 + 4ecd4f6 commit a929ae5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 deletions.
24 changes: 8 additions & 16 deletions src/components/Link.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
justify-content: center;
position: relative;

padding: 0 .5em;
--link-padding: .75em;
padding: 0 var(--link-padding);

text-decoration: none;
color: var(--text-color-negative);
Expand All @@ -22,7 +23,11 @@
}

.link p {
padding: 0 .25em;
padding: 0 calc(var(--link-padding) / 2);
}

.link-with-image p {
padding: 0 var(--link-padding);
}

.link img {
Expand All @@ -35,15 +40,10 @@
transition-duration: var(--transition-duration-fast);
}

.link-with-image p {
padding: 0 0.5em;
}

.link-container{
position: relative;
border-left: .1em var(--text-color-negative-dull) solid;


}

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

@media (max-width:900px) {
.link {
padding: .5em 0;
}

.link p {
padding: 0;
padding: var(--link-padding) 0;
}

.link-with-image p {
padding: 0 0.5em;
}

.link-container{
border: none;
}
Expand Down
3 changes: 1 addition & 2 deletions src/styles/slumper.css
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ footer {
justify-content: center;

bottom: 0;
height: 3em;
height: fit-content;
padding: .75em;
width: 100%;

Expand Down Expand Up @@ -230,7 +230,6 @@ main{

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

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

Expand Down

0 comments on commit a929ae5

Please sign in to comment.