Fix mixins/extends confusion

This commit is contained in:
Jeremy Thomas
2018-09-04 15:24:50 +02:00
parent 107ea347a7
commit 04fb26b450
22 changed files with 280 additions and 622 deletions

View File

@@ -8,7 +8,7 @@ $box-link-hover-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px $link !default
$box-link-active-shadow: inset 0 1px 2px rgba($black, 0.2), 0 0 0 1px $link !default
.box
+block
@extend %block
background-color: $box-background-color
border-radius: $box-radius
box-shadow: $box-shadow

View File

@@ -42,7 +42,7 @@ $button-static-border-color: $grey-lighter !default
.button
+control
+unselectable
@extend %unselectable
background-color: $button-background-color
border-color: $button-border-color
border-width: $button-border-width
@@ -198,7 +198,7 @@ $button-static-border-color: $grey-lighter !default
color: transparent !important
pointer-events: none
&::after
+loader
@extend %loader
+center(1em)
position: absolute !important
&.is-static

View File

@@ -18,7 +18,7 @@ $content-table-foot-cell-border-width: 2px 0 0 !default
$content-table-foot-cell-color: $text-strong !default
.content
+block
@extend %block
// Inline
li + li
margin-top: 0.25em

View File

@@ -151,7 +151,8 @@ $help-size: $size-small !default
height: 2.25em
&:not(.is-multiple):not(.is-loading)
&::after
+arrow($input-arrow)
@extend %arrow
border-color: $input-arrow
right: 1.125em
z-index: 4
&.is-rounded
@@ -213,7 +214,7 @@ $help-size: $size-small !default
width: 100%
&.is-loading
&::after
+loader
@extend %loader
margin-top: 0
position: absolute
right: 0.625em
@@ -227,7 +228,7 @@ $help-size: $size-small !default
font-size: $size-large
.file
+unselectable
@extend %unselectable
align-items: stretch
display: flex
justify-content: flex-start
@@ -614,7 +615,7 @@ $help-size: $size-small !default
right: 0
&.is-loading
&::after
+loader
@extend %loader
position: absolute !important
right: 0.625em
top: 0.625em

View File

@@ -27,7 +27,7 @@ $dimensions: 16 24 32 48 64 96 128 !default
&.is-1by2,
&.is-1by3
img
+overlay
@extend %overlay
height: 100%
width: 100%
&.is-square,

View File

@@ -3,7 +3,7 @@ $notification-radius: $radius !default
$notification-padding: 1.25rem 2.5rem 1.25rem 1.5rem !default
.notification
+block
@extend %block
background-color: $notification-background-color
border-radius: $notification-radius
padding: $notification-padding

View File

@@ -1,8 +1,8 @@
.block
+block
@extend %block
.delete
+delete
@extend %delete
.heading
display: block
@@ -12,7 +12,7 @@
text-transform: uppercase
.highlight
+block
@extend %block
font-weight: $weight-normal
max-width: 100%
overflow: hidden
@@ -22,7 +22,7 @@
max-width: 100%
.loader
+loader
@extend %loader
.number
align-items: center

View File

@@ -2,7 +2,7 @@ $progress-bar-background-color: $border !default
$progress-value-background-color: $text !default
.progress
+block
@extend %block
-moz-appearance: none
-webkit-appearance: none
border: none

View File

@@ -20,7 +20,7 @@ $table-striped-row-even-background-color: $white-bis !default
$table-striped-row-even-hover-background-color: $white-ter !default
.table
+block
@extend %block
background-color: $table-background-color
color: $table-color
td,
@@ -110,7 +110,7 @@ $table-striped-row-even-hover-background-color: $white-ter !default
background-color: $table-striped-row-even-background-color
.table-container
+block
@extend %block
+overflow-touch
overflow: auto
overflow-y: hidden

View File

@@ -17,7 +17,7 @@ $subtitle-negative-margin: -1.25rem !default
.title,
.subtitle
+block
@extend %block
word-break: break-word
em,
span