mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 19:46:16 +00:00
Switch to Manrope font
Fix inconsistent buttons
Removed default header background
Added info button with version and ❤️
Random fixes
This commit is contained in:
parent
ad8da1ae4e
commit
4e7301b9de
15 changed files with 169 additions and 64 deletions
|
@ -1,11 +1,11 @@
|
|||
.banner
|
||||
width: 100%
|
||||
height: 40vh
|
||||
height: 50vh
|
||||
|
||||
position: relative
|
||||
|
||||
background-color: $black
|
||||
color: $black
|
||||
color: $white
|
||||
|
||||
overflow: hidden
|
||||
transition: opacity 0.3s ease-in-out
|
||||
|
@ -18,7 +18,7 @@
|
|||
width: 100%
|
||||
height: 100%
|
||||
|
||||
background-color: $black
|
||||
background-color: $black2
|
||||
|
||||
object-fit: cover
|
||||
object-position: center center
|
||||
|
@ -46,7 +46,6 @@
|
|||
display: flex
|
||||
flex-direction: column
|
||||
justify-content: flex-end
|
||||
gap: 0.5rem
|
||||
|
||||
z-index: +2
|
||||
|
||||
|
@ -55,22 +54,19 @@
|
|||
padding: 0
|
||||
|
||||
font-size: 6.9rem
|
||||
font-weight: 700
|
||||
line-height: 1
|
||||
font-weight: 800
|
||||
text-align: left
|
||||
|
||||
color: $black
|
||||
color: $primary
|
||||
|
||||
p
|
||||
margin: 0
|
||||
padding: 0
|
||||
|
||||
font-size: 1rem
|
||||
font-weight: 600
|
||||
font-weight: 500
|
||||
line-height: 1
|
||||
text-align: left
|
||||
|
||||
color: $black
|
||||
text-align: left
|
||||
|
||||
@media (max-width: $breakpoint)
|
||||
.banner
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
font-weight: 600
|
||||
text-align: center
|
||||
|
||||
background-color: transparent
|
||||
background-color: rgba($white, 0.1)
|
||||
color: $white
|
||||
border: none
|
||||
border-radius: $rad-inner
|
||||
|
@ -36,10 +36,10 @@
|
|||
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out
|
||||
|
||||
&:hover
|
||||
background-color: $black
|
||||
background-color: rgba($white, 0.3)
|
||||
|
||||
&:focus-visible
|
||||
outline: 2px solid rgba($black, 0.5)
|
||||
outline: 2px solid rgba($white, 0.5)
|
||||
|
||||
&.primary
|
||||
@include btn-block($primary)
|
||||
|
@ -152,6 +152,10 @@
|
|||
opacity: 0
|
||||
cursor: pointer
|
||||
|
||||
&:hover
|
||||
background-color: rgba($white, 0.2)
|
||||
color: $white
|
||||
|
||||
&.active
|
||||
background-color: rgba($primary, 0.2)
|
||||
color: $primary
|
||||
|
|
41
gallery/themes/default/components/buttons/info-button.sass
Normal file
41
gallery/themes/default/components/buttons/info-button.sass
Normal file
|
@ -0,0 +1,41 @@
|
|||
.info-button
|
||||
margin: 0
|
||||
padding: 0
|
||||
|
||||
width: auto
|
||||
height: auto
|
||||
|
||||
position: fixed
|
||||
bottom: 0.75rem
|
||||
right: -3rem
|
||||
|
||||
display: flex
|
||||
justify-content: center
|
||||
align-items: center
|
||||
|
||||
background-color: $black2
|
||||
color: $white
|
||||
border-radius: $rad
|
||||
border: none
|
||||
opacity: 0
|
||||
|
||||
z-index: 20
|
||||
cursor: pointer
|
||||
transition: all 0.2s cubic-bezier(.86, 0, .07, 1)
|
||||
|
||||
&:hover
|
||||
color: $info
|
||||
|
||||
svg
|
||||
margin: 0.5rem
|
||||
|
||||
width: 1.25rem
|
||||
height: 1.25rem
|
||||
|
||||
&.show
|
||||
right: 0.75rem
|
||||
opacity: 1
|
||||
|
||||
@media (max-width: $breakpoint)
|
||||
.info-button
|
||||
bottom: 4.25rem
|
|
@ -1,33 +1,37 @@
|
|||
.top-of-page
|
||||
margin: 0
|
||||
padding: 0.55rem
|
||||
padding: 0
|
||||
|
||||
width: 2.5rem
|
||||
height: 2.5rem
|
||||
width: auto
|
||||
height: auto
|
||||
|
||||
position: fixed
|
||||
bottom: 0.75rem
|
||||
right: -3rem
|
||||
|
||||
display: flex // hidden
|
||||
display: flex
|
||||
justify-content: center
|
||||
align-items: center
|
||||
|
||||
border-radius: 50%
|
||||
background-color: $black
|
||||
background-color: $black2
|
||||
color: $white
|
||||
opacity: 0 // hidden
|
||||
|
||||
z-index: 2
|
||||
border-radius: $rad
|
||||
border: none
|
||||
opacity: 0
|
||||
|
||||
z-index: 20
|
||||
cursor: pointer
|
||||
|
||||
transition: all 0.2s cubic-bezier(.86, 0, .07, 1)
|
||||
|
||||
&:hover
|
||||
background-color: $black
|
||||
color: $primary
|
||||
|
||||
svg
|
||||
margin: 0.5rem
|
||||
|
||||
width: 1.25rem
|
||||
height: 1.25rem
|
||||
|
||||
&.show
|
||||
right: 0.75rem
|
||||
opacity: 1
|
||||
|
|
|
@ -70,9 +70,8 @@
|
|||
top: 0
|
||||
|
||||
font-size: 2.25rem
|
||||
font-weight: 600
|
||||
font-weight: 700
|
||||
text-align: center
|
||||
line-height: 1
|
||||
|
||||
color: $white
|
||||
background-color: $black
|
||||
|
@ -85,10 +84,30 @@
|
|||
font-size: 1rem
|
||||
font-weight: 500
|
||||
text-align: center
|
||||
line-height: 1
|
||||
|
||||
color: $white
|
||||
|
||||
svg
|
||||
width: 1rem
|
||||
height: 1rem
|
||||
|
||||
display: inline-block
|
||||
vertical-align: middle
|
||||
|
||||
a, .link
|
||||
font-size: 1rem
|
||||
font-weight: 500
|
||||
text-align: center
|
||||
line-height: 1
|
||||
|
||||
color: $primary
|
||||
|
||||
cursor: pointer
|
||||
text-decoration: none
|
||||
|
||||
&:hover
|
||||
text-decoration: underline
|
||||
|
||||
img
|
||||
margin: auto
|
||||
padding: 0
|
||||
|
@ -133,18 +152,10 @@
|
|||
.pop-up-wrapper
|
||||
transform: translate(-50%, 50%) scale(1)
|
||||
|
||||
.pop-up__link
|
||||
color: $primary
|
||||
text-decoration: none
|
||||
|
||||
&:hover
|
||||
text-decoration: underline
|
||||
cursor: pointer
|
||||
|
||||
@media (max-width: $breakpoint)
|
||||
.pop-up
|
||||
.pop-up-wrapper
|
||||
width: calc(100% - 1rem)
|
||||
width: calc(100% - 0.75rem)
|
||||
max-height: 95vh
|
||||
|
||||
.pop-up-content
|
||||
|
|
|
@ -18,10 +18,10 @@
|
|||
margin: 0
|
||||
padding: 0
|
||||
|
||||
font-size: 1.5rem
|
||||
font-weight: 600
|
||||
font-size: 1.75rem
|
||||
font-weight: 700
|
||||
|
||||
color: $white
|
||||
color: $primary
|
||||
|
||||
p
|
||||
margin: 0
|
||||
|
|
BIN
gallery/themes/default/fonts/Manrope[wght].ttf
Normal file
BIN
gallery/themes/default/fonts/Manrope[wght].ttf
Normal file
Binary file not shown.
BIN
gallery/themes/default/fonts/Manrope[wght].woff2
Normal file
BIN
gallery/themes/default/fonts/Manrope[wght].woff2
Normal file
Binary file not shown.
|
@ -14,6 +14,7 @@
|
|||
@import "components/gallery"
|
||||
|
||||
@import "components/buttons/top-of-page"
|
||||
@import "components/buttons/info-button"
|
||||
@import "components/buttons/pill"
|
||||
@import "components/buttons/block"
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ $rad-inner: 3px
|
|||
$animation-smooth: cubic-bezier(0.76, 0, 0.17, 1)
|
||||
$animation-bounce: cubic-bezier(.68,-0.55,.27,1.55)
|
||||
|
||||
$font: "Work Sans", sans-serif
|
||||
$font: "Manrope", sans-serif
|
||||
$breakpoint: 800px
|
||||
|
||||
@font-face
|
||||
|
@ -38,4 +38,10 @@ $breakpoint: 800px
|
|||
@font-face
|
||||
font-family: 'Work Sans'
|
||||
src: url('fonts/worksans-black.woff2')
|
||||
font-weight: 900
|
||||
font-weight: 900
|
||||
|
||||
@font-face
|
||||
font-family: 'Manrope'
|
||||
src: url('fonts/Manrope[wght].woff2') format('woff2')
|
||||
font-style: normal;
|
||||
font-display: swap;
|
Loading…
Add table
Add a link
Reference in a new issue