]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Add card header, Add button group, Add menu
authorJeremy Thomas <bbxdesign@gmail.com>
Sat, 26 Mar 2016 12:32:09 +0000 (12:32 +0000)
committerJeremy Thomas <bbxdesign@gmail.com>
Sat, 26 Mar 2016 12:32:09 +0000 (12:32 +0000)
CHANGELOG.md
bulma/components/card.sass
bulma/components/menu.sass
bulma/elements/buttons.sass
bulma/elements/controls.sass
bulma/elements/elements.sass

index dbb271b4da0c0931d46420abd8185789fc2c79bb..97aa595f1f6ce9c8fc4289402400589ff65492a7 100644 (file)
@@ -1,3 +1,9 @@
 ## 0.0.17
 
+### Added
+
 * `.control.is-inline` for horizontal forms
+
+### Updated
+
+* `.control.is-grouped` renamed to `.control.has-addons`
index c30b9676a2146d4a50d86c658f5f2d66694158c7..8aa69d254ed0907d3cdfc5611c01da2e4d2d1b15 100644 (file)
@@ -2,19 +2,22 @@
   align-items: stretch
   box-shadow: 0 1px 2px rgba(black, 0.1)
   display: flex
-  min-height: 36px
+  min-height: 40px
 
 .card-header-title
-  align-items: center
+  align-items: flex-start
   color: $text-strong
   display: flex
   flex: 1
   font-weight: bold
-  padding: 10px
+  padding: 10px
 
 .card-header-icon
-  +fa(14px, 36px)
+  align-items: center
   cursor: pointer
+  display: flex
+  justify-content: center
+  width: 40px
 
 .card-image
   display: block
 
 .card-footer
   background: $background
+  border-top: 1px solid $border
+  align-items: stretch
+  display: flex
+
+.card-footer-item
   align-items: center
   display: flex
-  font-size: $size-small
+  flex: 1
   justify-content: center
   padding: 10px
+  &:not(:last-child)
+    border-right: 1px solid $border
 
 .card
   background: white
@@ -43,3 +53,5 @@
     margin-bottom: 10px
   &.is-rounded
     border-radius: 5px
+  &.is-fullwidth
+    width: 100%
index 5c5287ed9fab2ddfdc7303c2a49fc0ecfdd7e5a8..3e92228684049600658993efce519e8d28b25747 100644 (file)
@@ -8,7 +8,7 @@
     border-radius: 2px
     color: $text
     display: block
-    padding: 4px 8px
+    padding: 5px 10px
     &:hover
       background: $background
       color: $link
       color: $link-invert
   li ul
     border-left: 1px solid $border
-    margin: 8px
-    padding-left: 8px
+    margin: 10px
+    padding-left: 10px
 
 .menu-label
   color: $text-light
   font-size: $size-small
   letter-spacing: 1px
   margin-bottom: 5px
-  padding-left: 8px
   text-transform: uppercase
   &:not(:first-child)
     margin-top: 20px
index a189add98220cf0a22979a1912363a93a2ab4587..223f32e734aec086237a7941cd698ed14d8970c6 100644 (file)
     font-size: $size-small
     line-height: 1
     margin-top: 5px
-  .fa
-    line-height: 24px
-    margin: 0 -2px
-    width: 24px
+  .icon.is-small
+    margin: 4px 0
   &:hover
     color: $control-hover
   &:active
         border-color: transparent transparent $color-invert $color-invert !important
   &.is-small
     +button-small
+    .icon.is-small
+      margin: 0
   &.is-medium
     +button-medium
   &.is-large
     +button-large
+    .icon.is-medium
+      margin: -4px 0px -4px -4px
   &.is-fullwidth
     display: block
     width: 100%
index cc9a6bade88fb9ccb5dfacae1c809911e68a7343..fb478da92958a08a6ac002a05bdd880128cc4603 100644 (file)
       border-color: $control-hover-border
     &::ms-expand
       display: none
+  &.is-fullwidth
+    width: 100%
+    select
+      width: 100%
   &:after
     +arrow($link)
     margin-top: -6px
   padding-top: 7px
   text-align: right
 
-.control-element
-  display: flex
-  flex: 5
-  .input:not(:last-child)
-    margin-right: 10px
-
 .control
   position: relative
   text-align: left
       padding-left: 32px
       &:focus + .fa
         color: $control-active
-  &.is-grouped
+  &.has-addons
     display: flex
     .input,
     .button,
         border-radius: 0 $radius $radius 0
     &.is-centered
       justify-content: center
-  &.is-horizontal
+  &.is-grouped
     display: flex
     & > .button,
     & > .input,
         margin-right: 10px
     & > .input
       flex: 1
-  &.is-inline
+  &.is-horizontal
     display: flex
+    & > .control
+      display: flex
+      flex: 5
index 5b437fe182847b845d1836be537490c927c4fdec..3e7e2bec9632b673e2ebf21462e3964071681c4c 100644 (file)
@@ -54,7 +54,7 @@
     font-size: inherit
     line-height: inherit
   &.is-small
-    +fa(14px, 20px)
+    +fa(14px, 16px)
   &.is-medium
     +fa(28px, 32px)
   &.is-large