hexo-theme-amane/source/css/cyberpunk.styl

209 lines
5.3 KiB
Stylus
Raw Normal View History

@import url(hexo-config('@fontface.cyberpunk'))
2020-03-09 22:05:31 +00:00
$family-sans-serif ?= 'Oxanium', Ubuntu, Roboto, 'Open Sans', 'Microsoft YaHei', sans-serif
$family-code ?= 'Roboto Mono', monospace, 'Microsoft YaHei'
2020-03-09 22:05:31 +00:00
// shadow and radius
$shadow ?= none
$radius ?= 0
$radius-small ?= 0
// base colors
$white ?= #cdcdcd
$red ?= #ff003c
$yellow ?= #fcee09
$blue ?= #02d7f2
$black ?= #000
$black-bis ?= #050a0e
// derived colors
$scheme-main ?= $black
$primary ?= $yellow
$text ?= $white
$text-strong ?= $yellow
$body-background-color ?= $scheme-main
$footer-color ?= $black
$footer-background-color ?= $yellow
$navbar-background-color ?= $yellow
$navbar-item-color ?= $black
$navbar-item-active-color ?= $black
$navbar-item-hover-color ?= $black
$navbar-item-hover-background-color ?= transparent
$navbar-item-margin-v ?= 1.25rem
$navbar-item-margin-h ?= .25rem
$navbar-item-padding-v ?= 0
$navbar-item-padding-h ?= .5rem
2020-03-09 22:05:31 +00:00
$menu-label-color ?= $blue
$menu-item-hover-color ?= $black
$menu-item-hover-background-color ?= $yellow
$menu-list-border-left ?= 1px solid $text
$tag-color ?= $black
$tag-background-color ?= $blue
$timeline-fg-line ?= $blue
$post-navigation-fg ?= $white
$searchbox-bg-container ?= $black-bis
$searchbox-border ?= $blue
$searchbox-bg-input ?= $black-bis
$searchbox-bg-close-hover ?= $black
$searchbox-bg-close-active ?= $searchbox-bg-close-hover
$searchbox-bg-result-item-hover ?= $black
@import 'style'
cut-corner-left(size)
clip-path: unquote('polygon(' + size + ' 0, 100% 0, 100% calc(100% - ' + size + '), calc(100% - ' + size + ') 100%, 0 100%, 0 ' + size + ')')
2020-03-09 22:05:31 +00:00
cut-corner-right(size)
clip-path: unquote('polygon(0 0, calc(100% - ' + size + ') 0, 100% ' + size + ', 100% 100%, ' + size + ' 100%, 0 calc(100% - ' + size + '), 0 0)')
2020-03-09 22:05:31 +00:00
cut-corner-inner(size)
clip-path: unquote('polygon(1px 1px, calc(100% - ' + size + ' - 1px) 1px, calc(100% - 1px) calc(1px + ' + size + '), calc(100% - 1px) calc(100% - 1px), calc(1px + ' + size + ') calc(100% - 1px), 1px calc(100% - ' + size + ' - 1px), 1px 1px)')
2020-03-09 22:05:31 +00:00
cut-corner-inner-top-right(size)
clip-path: unquote('polygon(1px 1px, calc(100% - ' + size + ' - 1px) 1px, calc(100% - 1px) ' + size + ', calc(100% - 1px) calc(100% + 1px), 1px calc(100% + 1px))')
2020-03-09 22:05:31 +00:00
cut-corner-inner-bottom-left(size)
clip-path: unquote('polygon(1px -1px, calc(100% - 1px) -1px, calc(100% - 1px) calc(100% - 1px), calc(1px + ' + size + ') calc(100% - 1px), 1px calc(100% - 1px - ' + size + '))')
2020-03-09 22:05:31 +00:00
body
counter-reset: card
2020-03-09 22:05:31 +00:00
::selection
color: $black
background: $blue
2020-03-09 22:05:31 +00:00
.card:not(#back-to-top)
overflow: visible
counter-increment: card
&:before, &:after
position: absolute
&:before
content: ''
top: 0
left: 0
right: 0
bottom: 0
background-color: $blue
cut-corner-right(16px)
2020-03-09 22:05:31 +00:00
&:after
content: 'R' counter(card)
color: $blue
right: 2rem
bottom: -.6em
font-size: .75rem
padding: 0 .25em
background: $body-background-color
.card-image, .card-content
cut-corner-inner-top-right(16px)
2020-03-09 22:05:31 +00:00
.card-content
background-color: $body-background-color
cut-corner-inner(16px)
.card-image + .card-content
cut-corner-inner-bottom-left(16px)
.button
2020-03-09 22:05:31 +00:00
border: none
outline: none
cut-corner-left(8px)
2020-03-09 22:05:31 +00:00
&.is-primary
border-radius: 0 !important
.menu-list a
cut-corner-left(8px)
.tags.has-addons
.tag:first-child
background: $yellow !important
.tag:last-child
background: $blue !important
.pagination-previous, .pagination-next, .pagination-link
cut-corner-left(8px)
&:hover
2020-03-09 22:05:31 +00:00
background-color: $blue
&, a
color: $black
2020-03-09 22:05:31 +00:00
.navbar-main
padding-top: 10px
padding-bottom: 30px
&:after
2020-03-09 22:05:31 +00:00
content: ''
position: absolute
left: 0
right: 0
bottom: -2px
background: url('../img/razor-top-black.svg') repeat-x top
height: 40px
2020-03-09 22:05:31 +00:00
.navbar-start
.navbar-item
&:hover, &.is-active
color: $navbar-background-color
background-color: $body-background-color !important
2020-03-09 22:05:31 +00:00
article.article,
article.media
2020-03-09 22:05:31 +00:00
.title a
background-image: linear-gradient(transparent calc(100% - 2px), $text-strong 2px)
background-repeat: no-repeat
background-size: 0 100%
transition: background-size .25s ease-in-out
.title:hover a
background-size: 100% 100%
article.article
.article-more
@extend .button.is-link
2020-03-09 22:05:31 +00:00
.content
blockquote
background: transparent
border: .5px solid $blue
border-left: 5px solid $blue
.footer
position: relative
&:before
content: ''
position: absolute
left: 0
right: 0
top: -1px
height: 39px
background: url('../img/razor-bottom-black.svg') repeat-x top
& > .container
padding-top: 40px
.timeline .media
&:before
clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%)
2020-03-09 22:05:31 +00:00
.searchbox .searchbox-container
border: 1px solid $blue
.searchbox-body
border-bottom: 1px solid $searchbox-border
li:last-child .searchbox-result-section
border-bottom: none
2020-03-09 22:05:31 +00:00
.searchbox-result-item
em
color: $black
#back-to-top
color: $black
background: $blue
margin-top: 45px
cut-corner-left(8px)