1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2024-11-16 21:27:30 +00:00
bibliogram/src/site/sass/main.sass

429 lines
7.4 KiB
Sass
Raw Normal View History

2020-01-12 12:50:21 +00:00
$layout-a-max: 820px
$layout-b-min: 821px
2020-01-29 10:08:52 +00:00
$layout-c-max: 680px;
2020-01-28 10:37:19 +00:00
$layout-home-a-max: 520px
$layout-home-b-min: 521px
2020-01-12 12:50:21 +00:00
body
margin: 0
padding: 0
font-size: 18px
.main-divider
2020-01-27 12:06:44 +00:00
display: flex
flex-direction: column
min-height: 100vh
2020-01-12 12:50:21 +00:00
@media screen and (min-width: $layout-b-min)
display: grid
grid-template-columns: 235px 1fr
.pfp
border-radius: 50%
@mixin link-button
color: hsl(107, 100%, 21.8%)
background: hsl(87, 78.4%, 80%)
padding: 12px
border-radius: 10px
border: 1px solid hsl(106.9, 49.8%, 46.9%)
line-height: 1
text-decoration: none
2020-01-28 10:37:19 +00:00
&.disabled
cursor: default
&:hover:not(.disabled), &:active, &.clicked
2020-01-12 12:50:21 +00:00
color: hsl(106.4, 100%, 12.9%)
background: hsl(102.1, 77.2%, 67.3%)
border-color: hsl(104, 51.4%, 43.5%)
.profile-overview
text-align: center
position: relative
line-height: 1
@media screen and (max-width: $layout-a-max)
border-bottom: 1px solid #333
box-shadow: 0px -2px 4px 4px rgba(0, 0, 0, 0.4)
padding-bottom: 25px
@media screen and (min-width: $layout-b-min)
border-right: 1px solid #333
box-shadow: -2px 0px 4px 4px rgba(0, 0, 0, 0.4)
.profile-sticky
position: sticky
top: 0
2020-01-18 15:38:14 +00:00
height: 100vh
box-sizing: border-box
overflow-y: auto
2020-01-12 12:50:21 +00:00
padding: 10px
white-space: pre-line
overflow-wrap: break-word
2020-01-12 12:50:21 +00:00
2020-01-18 15:38:14 +00:00
@media screen and (max-width: $layout-a-max)
height: unset
2020-01-12 12:50:21 +00:00
2020-01-18 15:38:14 +00:00
.pfp
margin: 25px 0
2020-01-12 12:50:21 +00:00
2020-01-18 15:38:14 +00:00
.full-name
margin: 0 0 8px
font-size: 30px
2020-01-12 12:50:21 +00:00
2020-01-18 15:38:14 +00:00
.username
margin: 0
font-size: 20px
font-weight: normal
2020-01-12 12:50:21 +00:00
2020-01-18 15:38:14 +00:00
.profile-counter
line-height: 1.3
2020-01-12 12:50:21 +00:00
2020-01-18 15:38:14 +00:00
.count
font-weight: bold
.links
margin-top: 20px
display: flex
flex-wrap: wrap
justify-content: center
a
margin: 5px
> *:last-child
margin-bottom: 10px // because padding-bottom on parent doesn't seem to work.
2020-01-14 14:38:33 +00:00
2020-01-12 12:50:21 +00:00
.timeline
--image-size: 260px
$image-size: var(--image-size)
$background: #fff4e8
@media screen and (max-width: $layout-a-max)
2020-01-29 10:08:52 +00:00
--image-size: 150px
2020-01-27 12:06:44 +00:00
flex: 1
2020-01-12 12:50:21 +00:00
2020-01-29 10:08:52 +00:00
@media screen and (max-width: $layout-c-max)
--image-size: calc(33vw - 10px)
2020-01-12 12:50:21 +00:00
background-color: $background
padding: 15px 15px 40px
2020-01-12 12:50:21 +00:00
2020-01-27 12:06:44 +00:00
&.no-posts
display: flex
flex-direction: column
justify-content: center
2020-01-12 12:50:21 +00:00
.page-number
color: #444
line-height: 1
max-width: 600px
margin: 0px auto
padding: 20px 0px // separate margin and padding for better page hash jump locations
text-align: center
position: relative
&::before
position: absolute
display: block
content: ""
left: 0
right: 0
top: 50%
border-top: 1px solid
2020-01-27 12:06:44 +00:00
&:no-posts
.number
position: relative
z-index: 1
padding: 10px
background-color: $background
2020-01-12 12:50:21 +00:00
.next-page-container
margin: 20px 0px
display: flex
justify-content: center
.next-page
@include link-button
font-size: 18px
2020-01-12 15:39:50 +00:00
text-align: center
2020-01-12 12:50:21 +00:00
.timeline-inner
display: flex
justify-content: center
flex-wrap: wrap
margin: 0 auto
2020-01-29 10:08:52 +00:00
@media screen and (max-width: $layout-c-max)
display: grid
grid-template-columns: repeat(3, 1fr)
justify-content: center
justify-items: center
2020-01-18 15:38:14 +00:00
@mixin sized()
width: $image-size
height: $image-size
.sized-link
2020-01-12 12:50:21 +00:00
$margin: 5px
margin: $margin
2020-01-18 15:38:14 +00:00
color: #111
background-color: rgba(40, 40, 40, 0.25)
text-decoration: none
2020-02-02 11:43:56 +00:00
overflow: hidden
2020-01-18 15:38:14 +00:00
@include sized
2020-01-12 12:50:21 +00:00
&:hover
$border-width: 3px
margin: $margin - $border-width
border: $border-width solid #111
2020-01-18 15:38:14 +00:00
2020-01-29 10:08:52 +00:00
@media screen and (max-width: $layout-c-max)
$margin: 2px
margin: $margin
&:hover
$border-width: 2px
margin: $margin - $border-width
border: $border-width solid #111
2020-01-18 15:38:14 +00:00
.sized-image
@include sized
.post-page
background-color: #6a6b71
.post-page-divider
display: grid
grid-template-columns: 360px auto
max-width: 1200px
margin: 0 auto
min-height: 100vh
@media screen and (max-width: $layout-a-max)
display: flex
flex-direction: column
2020-01-18 15:38:14 +00:00
.description-section
display: grid
align-items: start
align-content: normal
background-color: #eee
position: sticky
top: 0
height: 100vh
overflow-y: auto
box-sizing: border-box
@media screen and (max-width: $layout-a-max)
position: inherit
top: inherit
height: inherit
2020-01-18 15:38:14 +00:00
.user-header
display: flex
align-items: center
justify-content: center
background-color: #b3b3b3
padding: 10px
.pfp
$size: 40px
width: $size
height: $size
margin-right: 10px
background-color: rgba(40, 40, 40, 0.25)
.name
font-size: 20px
color: black
text-decoration: none
&:hover
text-decoration: underline
.description
margin: 12px
white-space: pre-line
font-size: 20px
line-height: 1.4
@media screen and (max-width: $layout-a-max)
font-size: 18px
2020-01-18 15:38:14 +00:00
.images-gallery
display: flex
flex-direction: column
align-items: center
justify-content: center
background-color: #262728
padding: 10px
@media screen and (max-width: $layout-a-max)
flex: 1
2020-01-29 15:20:20 +00:00
.sized-image, .sized-video
2020-01-18 15:38:14 +00:00
color: #eee
background-color: #3b3c3d
max-height: 94vh
max-width: 100%
&:not(:last-child)
margin-bottom: 10px
2020-01-27 06:03:28 +00:00
2020-01-29 15:20:20 +00:00
.sized-image
width: auto
height: auto
.sized-video
width: 100%
height: 100%
2020-01-27 06:03:28 +00:00
.error-page
2020-01-28 12:17:32 +00:00
box-sizing: border-box
2020-01-27 06:03:28 +00:00
min-height: 100vh
background: #191919
padding: 10px
text-align: center
display: flex
flex-direction: column
justify-content: center
align-items: center
2020-01-30 03:05:43 +00:00
a, a:visited
color: #4a93d2
2020-01-28 12:17:32 +00:00
.code, .message, .explanation, .back-link
2020-01-27 06:03:28 +00:00
line-height: 1.2
margin: 0px
.code
font-size: 80px
color: #fff
margin-bottom: 25px
.message
font-size: 35px
color: #ccc
2020-01-28 12:17:32 +00:00
.explanation
2020-01-30 03:05:43 +00:00
line-height: 1.3
2020-01-28 12:17:32 +00:00
margin-top: 10px
font-size: 20px
color: #bbb
2020-01-30 03:05:43 +00:00
white-space: pre-line
2020-01-27 06:03:28 +00:00
.back
2020-01-28 12:17:32 +00:00
margin-top: 15vh
2020-01-27 06:03:28 +00:00
font-size: 25px
2020-01-28 10:37:19 +00:00
.homepage
$link-color: #ffb8b8
display: flex
flex-direction: column
min-height: 100vh
background-color: #bd4444
color: #fff
h1
font-size: 48px
margin: 0px
h2
font-size: 32px
margin: 0px
a, a:visited
color: $link-color
.banner
padding: 0px 5px
height: 60vh
display: flex
justify-content: center
align-items: center
.banner-image
max-width: 100%
@media screen and (max-width: $layout-home-a-max)
height: 30vh
.go-sections-container
padding: 0px 10px 50px
.go-sections
max-width: 900px
margin: 0px auto
display: grid
grid-gap: 10px
grid-template-columns: repeat(2, 1fr)
justify-items: center
@media screen and (max-width: $layout-home-a-max)
grid-template-columns: 1fr
.title
text-align: center
margin-bottom: 20px
.pair-entry
display: flex
.text, .button
appearance: none
-moz-appearance: none
display: flex
padding: 9px 8px 7px
line-height: 1
box-sizing: content-box
font-size: 20px
height: 20px
border: 1px solid #333
.text
border-radius: 6px 0px 0px 6px
border-right: none
max-width: 230px
width: 30vw
@media screen and (max-width: 520px)
width: 80vw
.button
border-radius: 0px 6px 6px 0px
padding-left: 12px
padding-right: 12px
cursor: pointer
background-color: #ffbebe
color: #111
&:hover
background-color: #ff7c7c
.about-container
background-color: #6a2222
color: #eee
padding: 50px 20px
flex: 1
min-height: 60vh
.about
max-width: 700px
margin: 0px auto
line-height: 1.4
font-size: 20px
2020-01-28 11:37:08 +00:00
.example-link
white-space: nowrap
2020-01-28 10:37:19 +00:00
.link-list
color: $link-color