Files
bulma/sass/elements/title.sass

56 lines
1008 B
Sass
Raw Normal View History

2016-01-24 00:03:43 +00:00
.title,
.subtitle
2016-09-22 23:14:18 +01:00
+block
font-weight: $weight-title-normal
word-break: break-word
em,
span
font-weight: $weight-title-normal
a
&:hover
border-bottom: 1px solid
2016-04-10 16:00:32 +01:00
strong
font-weight: $weight-title-bold
.tag
vertical-align: bottom
2016-01-24 00:03:43 +00:00
.title
color: $text-strong
font-size: $size-large
2016-10-29 18:53:30 +01:00
line-height: 1.125
2016-04-10 16:00:32 +01:00
strong
color: inherit
2016-01-24 00:03:43 +00:00
& + .highlight
2016-10-29 18:53:30 +01:00
margin-top: -0.75rem
2016-04-10 16:00:32 +01:00
& + .subtitle
2016-10-29 18:53:30 +01:00
margin-top: -1.25rem
2016-04-10 16:00:32 +01:00
// Colors
2016-01-24 00:03:43 +00:00
@each $size in $sizes
$i: index($sizes, $size)
&.is-#{$i}
font-size: $size
2016-04-10 16:00:32 +01:00
// Modifiers
&.is-normal
2016-10-29 18:53:30 +01:00
font-weight: $weight-normal
2016-04-10 16:00:32 +01:00
strong
2016-10-29 18:53:30 +01:00
font-weight: $weight-bold
2016-01-24 00:03:43 +00:00
.subtitle
2016-04-10 16:00:32 +01:00
color: $text
2016-01-24 00:03:43 +00:00
font-size: $size-medium
2016-10-29 18:53:30 +01:00
line-height: 1.25
2016-04-10 16:00:32 +01:00
strong
color: $text-strong
& + .title
2016-10-29 18:53:30 +01:00
margin-top: -1.4rem
2016-04-10 16:00:32 +01:00
// Colors
2016-01-24 00:03:43 +00:00
@each $size in $sizes
$i: index($sizes, $size)
&.is-#{$i}
font-size: $size
2016-04-10 16:00:32 +01:00
// Modifiers
&.is-normal
2016-10-29 18:53:30 +01:00
font-weight: $weight-normal
2016-04-10 16:00:32 +01:00
strong
2016-10-29 18:53:30 +01:00
font-weight: $weight-bold