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

@ -29,6 +29,22 @@
"title": "Love" "title": "Love"
} }
], ],
"other_items": [
{
"id": "templates",
"color": "has-text-info",
"fa_type": "fas",
"fa_icon": "fa-code",
"title": "Templates"
},
{
"id": "recipes",
"color": "has-text-purple",
"fa_type": "fas",
"fa_icon": "fa-utensils",
"title": "Recipes"
},
],
"more_items": [ "more_items": [
{ {
"id": "bulma-start", "id": "bulma-start",

File diff suppressed because it is too large Load Diff

View File

@ -17,7 +17,7 @@
// Overlay // Overlay
.is-overlay .is-overlay
+overlay @extend %overlay
// Typography // Typography
@ -258,4 +258,4 @@ $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex'
box-shadow: none !important box-shadow: none !important
.is-unselectable .is-unselectable
+unselectable @extend %unselectable

View File

@ -8,8 +8,8 @@ $breadcrumb-item-padding-horizontal: 0.75em !default
$breadcrumb-item-separator-color: $grey-light !default $breadcrumb-item-separator-color: $grey-light !default
.breadcrumb .breadcrumb
+block @extend %block
+unselectable @extend %unselectable
font-size: $size-normal font-size: $size-normal
white-space: nowrap white-space: nowrap
a a

View File

@ -1,5 +1,5 @@
.level .level
+block @extend %block
align-items: center align-items: center
justify-content: space-between justify-content: space-between
code code

View File

@ -19,7 +19,7 @@ $message-body-pre-code-background-color: transparent !default
$message-header-body-border-width: 0 !default $message-header-body-border-width: 0 !default
.message .message
+block @extend %block
background-color: $message-background-color background-color: $message-background-color
border-radius: $message-radius border-radius: $message-radius
font-size: $size-normal font-size: $size-normal

View File

@ -29,7 +29,7 @@ $modal-card-body-background-color: $white !default
$modal-card-body-padding: 20px !default $modal-card-body-padding: 20px !default
.modal .modal
+overlay @extend %overlay
align-items: center align-items: center
display: none display: none
flex-direction: column flex-direction: column
@ -42,7 +42,7 @@ $modal-card-body-padding: 20px !default
display: flex display: flex
.modal-background .modal-background
+overlay @extend %overlay
background-color: $modal-background-background-color background-color: $modal-background-background-color
.modal-content, .modal-content,
@ -59,7 +59,7 @@ $modal-card-body-padding: 20px !default
width: $modal-content-width width: $modal-content-width
.modal-close .modal-close
+delete @extend %delete
background: none background: none
height: $modal-close-dimensions height: $modal-close-dimensions
position: fixed position: fixed

View File

@ -201,7 +201,8 @@ a.navbar-item,
.navbar-link:not(.is-arrowless) .navbar-link:not(.is-arrowless)
padding-right: 2.5em padding-right: 2.5em
&::after &::after
+arrow($navbar-dropdown-arrow) @extend %arrow
border-color: $navbar-dropdown-arrow
margin-top: -0.375em margin-top: -0.375em
right: 1.125em right: 1.125em

View File

@ -54,7 +54,7 @@ $pagination-shadow-inset: inset 0 1px 2px rgba($black, 0.2)
.pagination-link, .pagination-link,
.pagination-ellipsis .pagination-ellipsis
+control +control
+unselectable @extend %unselectable
font-size: 1em font-size: 1em
padding-left: 0.5em padding-left: 0.5em
padding-right: 0.5em padding-right: 0.5em

View File

@ -27,9 +27,9 @@ $tabs-toggle-link-active-border-color: $link !default
$tabs-toggle-link-active-color: $link-invert !default $tabs-toggle-link-active-color: $link-invert !default
.tabs .tabs
+block @extend %block
+overflow-touch +overflow-touch
+unselectable @extend %unselectable
align-items: stretch align-items: stretch
display: flex display: flex
font-size: $size-normal font-size: $size-normal

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-link-active-shadow: inset 0 1px 2px rgba($black, 0.2), 0 0 0 1px $link !default
.box .box
+block @extend %block
background-color: $box-background-color background-color: $box-background-color
border-radius: $box-radius border-radius: $box-radius
box-shadow: $box-shadow box-shadow: $box-shadow

View File

@ -42,7 +42,7 @@ $button-static-border-color: $grey-lighter !default
.button .button
+control +control
+unselectable @extend %unselectable
background-color: $button-background-color background-color: $button-background-color
border-color: $button-border-color border-color: $button-border-color
border-width: $button-border-width border-width: $button-border-width
@ -198,7 +198,7 @@ $button-static-border-color: $grey-lighter !default
color: transparent !important color: transparent !important
pointer-events: none pointer-events: none
&::after &::after
+loader @extend %loader
+center(1em) +center(1em)
position: absolute !important position: absolute !important
&.is-static &.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-table-foot-cell-color: $text-strong !default
.content .content
+block @extend %block
// Inline // Inline
li + li li + li
margin-top: 0.25em margin-top: 0.25em

View File

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

View File

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

View File

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

View File

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

View File

@ -2,7 +2,7 @@ $progress-bar-background-color: $border !default
$progress-value-background-color: $text !default $progress-value-background-color: $text !default
.progress .progress
+block @extend %block
-moz-appearance: none -moz-appearance: none
-webkit-appearance: none -webkit-appearance: none
border: 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-striped-row-even-hover-background-color: $white-ter !default
.table .table
+block @extend %block
background-color: $table-background-color background-color: $table-background-color
color: $table-color color: $table-color
td, td,
@ -110,7 +110,7 @@ $table-striped-row-even-hover-background-color: $white-ter !default
background-color: $table-striped-row-even-background-color background-color: $table-striped-row-even-background-color
.table-container .table-container
+block @extend %block
+overflow-touch +overflow-touch
overflow: auto overflow: auto
overflow-y: hidden overflow-y: hidden

View File

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

View File

@ -112,7 +112,7 @@
// Components // Components
.hero-video .hero-video
+overlay @extend %overlay
overflow: hidden overflow: hidden
video video
left: 50% left: 50%

View File

@ -251,16 +251,11 @@
+loader +loader
=overlay($offset: 0) =overlay($offset: 0)
bottom: 0 bottom: $offset
left: 0 left: $offset
position: absolute position: absolute
right: 0 right: $offset
top: 0 top: $offset
@if $offset != 0
bottom: $offset
left: $offset
right: $offset
top: $offset
%overlay %overlay
+overlay +overlay