From: Jeremy Thomas Date: Sun, 21 Feb 2016 22:46:02 +0000 (+0000) Subject: Add control colors, Add titles em, Add centered grid, Remove header-center X-Git-Tag: 0.0.15~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e35a750a0825ae2f88e66b05b11e7aa1d74b7b9;p=thirdparty%2Fbulma.git Add control colors, Add titles em, Add centered grid, Remove header-center --- diff --git a/bulma/components/grid.sass b/bulma/components/grid.sass index 254acd136..4d8cf862c 100644 --- a/bulma/components/grid.sass +++ b/bulma/components/grid.sass @@ -105,6 +105,8 @@ margin-bottom: -10px &:not(:last-child) margin-bottom: 10px + &.is-centered + justify-content: center &.is-mobile display: flex &.is-gapless diff --git a/bulma/elements/controls.sass b/bulma/elements/controls.sass index f4ca31bb0..27c5d5c0b 100644 --- a/bulma/elements/controls.sass +++ b/bulma/elements/controls.sass @@ -26,6 +26,15 @@ +placeholder color: rgba($control, 0.3) +=form-control + +control + @each $name, $pair in $colors + $color: nth($pair, 1) + $color-invert: nth($pair, 2) + &.is-#{$name} + border-color: $color + color: $color + =control-small border-radius: 2px font-size: 11px @@ -44,7 +53,7 @@ padding: 3px 12px .input - +control + +form-control box-shadow: inset 0 1px 2px rgba(black, 0.1) display: block max-width: 100% @@ -92,7 +101,7 @@ position: relative vertical-align: top input - +control + +form-control border-radius: 1px box-shadow: inset 0 1px 1px rgba(black, 0.1) cursor: pointer @@ -153,7 +162,7 @@ position: relative vertical-align: top select - +control + +form-control cursor: pointer display: block outline: none @@ -171,6 +180,12 @@ &:after border-color: $link-hover +.label + color: $text-strong + display: block + &:not(:last-child) + margin-bottom: 5px + .control position: relative text-align: left diff --git a/bulma/elements/titles.sass b/bulma/elements/titles.sass index 8c6edab07..6d6c9d13e 100644 --- a/bulma/elements/titles.sass +++ b/bulma/elements/titles.sass @@ -2,9 +2,13 @@ .subtitle @extend .block font-weight: 300 + em + font-weight: 300 a &:hover border-bottom: 1px solid + .tag + vertical-align: bottom .title color: $text-strong diff --git a/bulma/layout/header.sass b/bulma/layout/header.sass index ce1e70c18..0a3a02aec 100644 --- a/bulma/layout/header.sass +++ b/bulma/layout/header.sass @@ -73,13 +73,6 @@ .header-item:first-child padding-left: 0 -.header-center - align-items: stretch - display: flex - left: 50% - position: absolute - transform: translateX(-50%) - .header-right align-items: stretch +tablet @@ -127,7 +120,6 @@ .header.is-centered justify-content: center .header-left, - .header-center, .header-right justify-content: center