mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-25 09:17:03 +00:00
Add CSS for added classes
This commit is contained in:
parent
66f285c2b1
commit
ea119a28ed
1 changed files with 20 additions and 0 deletions
20
resources/assets/sass/custom.scss
vendored
20
resources/assets/sass/custom.scss
vendored
|
@ -153,3 +153,23 @@ body, button, input, textarea {
|
||||||
.font-weight-ultralight {
|
.font-weight-ultralight {
|
||||||
font-weight: 200 !important;
|
font-weight: 200 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.square {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.square::after {
|
||||||
|
content: "";
|
||||||
|
display: block;
|
||||||
|
padding-bottom: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.square-content {
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: cover;
|
||||||
|
background-position: 50%;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue