bulma/docs/_sass/specific.sass

126 lines
2.2 KiB
Sass
Raw Normal View History

2017-07-02 22:49:54 +00:00
#images
tr
td:nth-child(2)
width: 320px
.color
border-radius: 2px
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(0, 0, 0, 0.1)
display: inline-block
float: left
height: 24px
margin-right: 8px
width: 24px
.button.is-rss
background-color: #f26522
border-color: transparent
color: #fff
&:hover
background-color: darken(#f26522, 5%)
&:active
background-color: darken(#f26522, 10%)
2017-07-24 13:44:24 +00:00
.view-all-versions
color: $text-light
&:hover
text-decoration: underline
2017-07-26 20:06:52 +00:00
.feature-title
color: $text-light
a
border-bottom: 1px solid transparent
color: $text-strong
&:hover
border-bottom-color: $primary
2017-07-29 13:38:45 +00:00
2017-07-29 14:31:19 +00:00
.anchor-title
padding-top: 1.5rem
position: relative
2017-08-07 18:51:57 +00:00
+until($widescreen)
2017-07-29 22:16:31 +00:00
padding-left: 2rem
2017-07-29 14:31:19 +00:00
.anchor-link
position: absolute
right: calc(100% + 1rem)
2017-08-07 18:51:57 +00:00
+until($widescreen)
2017-07-29 22:16:31 +00:00
left: 0
right: auto
2017-07-29 14:31:19 +00:00
2017-07-29 13:38:45 +00:00
.article-image
background-color: $primary
display: block
height: 240px
margin-left: auto
margin-right: auto
position: relative
text-align: center
@each $name, $pair in $colors
$color: nth($pair, 1)
&.is-#{$name}
background-color: $color
2017-07-31 19:58:30 +00:00
&.is-bootstrap
background-color: $bootstrap
2017-08-03 19:46:00 +00:00
&.is-orange
background-color: $orange
2017-07-29 13:38:45 +00:00
&:hover
.article-overlay
opacity: 0.25
.article-icon
2017-08-03 19:29:09 +00:00
transform: scale(1.4)
.article-date
2017-07-29 13:38:45 +00:00
transform: scale(0.9)
2017-08-03 19:29:09 +00:00
.article-title
transform: scale(1.1)
2017-07-29 13:38:45 +00:00
&.is-single
margin-bottom: 2rem
width: 100%
.article-overlay
+overlay
background-color: $black
opacity: 0
transition-duration: $speed
transition-property: opacity
transition-timing-function: $easing
.article-icon,
2017-08-03 19:29:09 +00:00
.article-info
2017-07-29 13:38:45 +00:00
+overlay
align-items: center
display: flex
justify-content: center
2017-08-03 19:29:09 +00:00
.article-icon,
.article-date,
.article-title
2017-07-29 13:38:45 +00:00
transition-duration: $speed
transition-property: transform
transition-timing-function: $easing
.article-icon
color: $black
opacity: 0.25
2017-08-03 19:29:09 +00:00
& > span
display: block
2017-07-29 13:38:45 +00:00
.fa
font-size: 56px
2017-08-03 19:29:09 +00:00
.article-info
padding: 20px
.article-date
color: rgba(#000, 0.5)
display: block
2017-07-29 13:38:45 +00:00
.article-title
color: $white
2017-08-03 19:29:09 +00:00
display: block
2017-07-29 13:38:45 +00:00
font-size: 2.5rem
font-weight: $weight-bold
line-height: 1.25
2017-08-03 19:29:09 +00:00
padding: 0 20px
2017-07-30 17:22:13 +00:00
.emoji
margin-right: 0.5em
margin-top: 2px