hexo-theme-amane/include/style/article.styl

150 lines
3.0 KiB
Stylus
Raw Normal View History

2020-03-09 18:35:53 +00:00
/* ---------------------------------
* Article Summary and Content
* --------------------------------- */
$article-font-size ?= 1.1rem
article
&.media
.media-content
color: $text-light
.title
margin: 0
line-height: inherit
&.article
.article-meta, .article-tags
color: $text-light
.article-meta
overflow-x: auto
margin-bottom: .5rem
.article-more
@extend .button.is-light
.content
word-wrap: break-word
2020-03-09 18:35:53 +00:00
font-size: $article-font-size
h1
font-size: 1.75em
h2
font-size: 1.5em
h3
font-size: 1.25em
h4
font-size: 1.125em
h5
font-size: 1em
pre
font-size: .85em
code
padding: 0
background: transparent
overflow-wrap: break-word
2020-03-09 18:35:53 +00:00
blockquote
&.pullquote
float: right
max-width: 50%
font-size: 1.15rem
position: relative
footer
strong + cite
margin-left: .5em
.message.message-immersive
border-radius: 0
margin: 0 0-($card-content-padding) $card-content-padding 0-($card-content-padding)
.message-body
border: none
2020-03-09 18:35:53 +00:00
.rtl
direction: rtl
.level
&, &.is-mobile
.level-item:not(:last-child)
margin-left: .75rem
margin-right: 0
// Overflow table
.table-overflow
overflow-x: auto
table
width: auto !important
th
word-break: keep-all
// Video container
.video-container
position: relative
padding-bottom: 56.25%
padding-top: 25px
height: 0
iframe
position: absolute
top: 0
left: 0
width: 100%
height: 100%
.article-licensing
position: relative
z-index: 1
box-shadow: none
background: $white-ter
border-radius: $radius
overflow: hidden
&:after
position: absolute
z-index: -1
right: -50px
top: -87.87px
content: '\f25e'
font-size: 200px
font-family: 'Font Awesome 5 Brands'
opacity: 0.1
.level-left
flex-wrap: wrap
max-width: 100%
.licensing-title
@extend .mb-3
line-height: 1.2
p:not(:last-child)
@extend .mb-1
a
@extend .size-small, .has-text-grey
.licensing-meta
.level-item
@extend .mr-4
.icon
@extend .mr-1
width: 1.2em
height: 1.2em
font-size: 1.2em
h6
@extend .size-small
a
color: inherit