mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-05-28 21:28:19 +00:00
6daaffeaa7
* Compiles css framework from sass * Adds watch commands * Copies existing css to sass file * Moves sass out of static path * Removes global linter I wasn't sure how to customize this, and it's not providing a lot of additional value on top of the domain-specific linters * Reverts invalid change to dockerfile * Changes stylelint path * Remove unused bulma files * Properly minifies generated css * Fixes regression in thread display * rgba function only works with percents for whatever reason * Hush stylelint * Removes trailing zeros * Compile sass in Django Co-authored-by: Joachim <joachim.robert@protonmail.com> * Python formatting * Updates linter * Updates commands * Adds css-config file Co-authored-by: Joachim <joachim.robert@protonmail.com> * Stylelint fix * Removes unused compiled bulma files Co-authored-by: Joachim <joachim.robert@protonmail.com>
104 lines
2.4 KiB
Sass
104 lines
2.4 KiB
Sass
@import "../utilities/mixins"
|
|
|
|
=typography-size($target:'')
|
|
@each $size in $sizes
|
|
$i: index($sizes, $size)
|
|
.is-size-#{$i}#{if($target == '', '', '-' + $target)}
|
|
font-size: $size !important
|
|
|
|
+typography-size()
|
|
|
|
+mobile
|
|
+typography-size('mobile')
|
|
|
|
+tablet
|
|
+typography-size('tablet')
|
|
|
|
+touch
|
|
+typography-size('touch')
|
|
|
|
+desktop
|
|
+typography-size('desktop')
|
|
|
|
+widescreen
|
|
+typography-size('widescreen')
|
|
|
|
+fullhd
|
|
+typography-size('fullhd')
|
|
|
|
$alignments: ('centered': 'center', 'justified': 'justify', 'left': 'left', 'right': 'right')
|
|
|
|
@each $alignment, $text-align in $alignments
|
|
.has-text-#{$alignment}
|
|
text-align: #{$text-align} !important
|
|
|
|
@each $alignment, $text-align in $alignments
|
|
+mobile
|
|
.has-text-#{$alignment}-mobile
|
|
text-align: #{$text-align} !important
|
|
+tablet
|
|
.has-text-#{$alignment}-tablet
|
|
text-align: #{$text-align} !important
|
|
+tablet-only
|
|
.has-text-#{$alignment}-tablet-only
|
|
text-align: #{$text-align} !important
|
|
+touch
|
|
.has-text-#{$alignment}-touch
|
|
text-align: #{$text-align} !important
|
|
+desktop
|
|
.has-text-#{$alignment}-desktop
|
|
text-align: #{$text-align} !important
|
|
+desktop-only
|
|
.has-text-#{$alignment}-desktop-only
|
|
text-align: #{$text-align} !important
|
|
+widescreen
|
|
.has-text-#{$alignment}-widescreen
|
|
text-align: #{$text-align} !important
|
|
+widescreen-only
|
|
.has-text-#{$alignment}-widescreen-only
|
|
text-align: #{$text-align} !important
|
|
+fullhd
|
|
.has-text-#{$alignment}-fullhd
|
|
text-align: #{$text-align} !important
|
|
|
|
.is-capitalized
|
|
text-transform: capitalize !important
|
|
|
|
.is-lowercase
|
|
text-transform: lowercase !important
|
|
|
|
.is-uppercase
|
|
text-transform: uppercase !important
|
|
|
|
.is-italic
|
|
font-style: italic !important
|
|
|
|
.is-underlined
|
|
text-decoration: underline !important
|
|
|
|
.has-text-weight-light
|
|
font-weight: $weight-light !important
|
|
.has-text-weight-normal
|
|
font-weight: $weight-normal !important
|
|
.has-text-weight-medium
|
|
font-weight: $weight-medium !important
|
|
.has-text-weight-semibold
|
|
font-weight: $weight-semibold !important
|
|
.has-text-weight-bold
|
|
font-weight: $weight-bold !important
|
|
|
|
.is-family-primary
|
|
font-family: $family-primary !important
|
|
|
|
.is-family-secondary
|
|
font-family: $family-secondary !important
|
|
|
|
.is-family-sans-serif
|
|
font-family: $family-sans-serif !important
|
|
|
|
.is-family-monospace
|
|
font-family: $family-monospace !important
|
|
|
|
.is-family-code
|
|
font-family: $family-code !important
|