]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Add panel, Rename menu
authorJeremy Thomas <bbxdesign@gmail.com>
Fri, 25 Mar 2016 13:38:40 +0000 (13:38 +0000)
committerJeremy Thomas <bbxdesign@gmail.com>
Fri, 25 Mar 2016 13:38:40 +0000 (13:38 +0000)
CHANGELOG.md [new file with mode: 0644]
bulma/components/card.sass
bulma/components/components.sass
bulma/components/menu.sass
bulma/components/panel.sass [new file with mode: 0644]
bulma/elements/controls.sass
bulma/elements/elements.sass
bulma/layout/header.sass
bulma/layout/hero.sass

diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644 (file)
index 0000000..dbb271b
--- /dev/null
@@ -0,0 +1,3 @@
+## 0.0.17
+
+* `.control.is-inline` for horizontal forms
index c7595a0379c2ae25d3d8b9bb92cfe48f949b3973..c30b9676a2146d4a50d86c658f5f2d66694158c7 100644 (file)
@@ -1,3 +1,21 @@
+.card-header
+  align-items: stretch
+  box-shadow: 0 1px 2px rgba(black, 0.1)
+  display: flex
+  min-height: 36px
+
+.card-header-title
+  align-items: center
+  color: $text-strong
+  display: flex
+  flex: 1
+  font-weight: bold
+  padding: 0 10px
+
+.card-header-icon
+  +fa(14px, 36px)
+  cursor: pointer
+
 .card-image
   display: block
   position: relative
@@ -9,7 +27,10 @@
 
 .card-footer
   background: $background
-  display: block
+  align-items: center
+  display: flex
+  font-size: $size-small
+  justify-content: center
   padding: 10px
 
 .card
index 7a3bb6a8a31e475f27d8c5d41a4f003d83f71dcb..9d4a1352c2ddba23c4ba8aa31a70452ab2669944 100644 (file)
@@ -7,4 +7,12 @@
 @import "tabs"
 @import "media"
 @import "menu"
+@import "panel"
 @import "modal"
+
+.box
+  @extend .block
+  background: white
+  border-radius: 5px
+  box-shadow: 0 2px 3px rgba(black, 0.1), 0 0 0 1px rgba(black, 0.1)
+  padding: 20px
index 93054028539bc050dfae156ea275d30392a9d2a2..5c5287ed9fab2ddfdc7303c2a49fc0ecfdd7e5a8 100644 (file)
@@ -1,76 +1,31 @@
-.menu-icon
-  +fa(14px, 16px)
-  color: $text-light
-  float: left
-  margin: 0 4px 0 -2px
-  .fa
-    font-size: inherit
-    line-height: inherit
-
-.menu-heading
-  background: $background
-  border-bottom: 1px solid $border
-  border-radius: 4px 4px 0 0
-  color: $text-strong
-  font-size: $size-medium
-  font-weight: 300
-  padding: 10px
+.menu-nav
+  a
+    display: block
+    padding: 5px 10px
 
 .menu-list
   a
+    border-radius: 2px
     color: $text
+    display: block
+    padding: 4px 8px
     &:hover
+      background: $background
       color: $link
-
-.menu-tabs
-  display: flex
-  font-size: $size-small
-  padding: 5px 10px 0
-  justify-content: center
-  &:not(:last-child)
-    border-bottom: 1px solid $border
-  a
-    border-bottom: 1px solid $border
-    margin-bottom: -1px
-    padding: 5px
     &.is-active
-      border-bottom-color: $link-active-border
-      color: $link-active
+      background: $link
+      color: $link-invert
+  li ul
+    border-left: 1px solid $border
+    margin: 8px
+    padding-left: 8px
 
-.menu-block
-  color: $text-strong
-  display: block
-  line-height: 16px
-  padding: 10px
-  &:not(:last-child)
-    border-bottom: 1px solid $border
-  .checkbox
-    border: 1px solid transparent
-    border-radius: $radius
-    display: block
-    padding: 8px
-    padding-left: 32px
-    input
-      left: 9px
-      top: 9px
-    &:hover
-      border-color: $link
-
-a.menu-block:hover
-  background: $background
-
-.menu-checkbox
-  @extend .checkbox
-  display: block
-  padding: 9px 10px 9px 30px
-  &:not(:last-child)
-    border-bottom: 1px solid $border
-  input
-    left: 8px
-    top: 10px
-
-.menu
-  border: 1px solid $border
-  border-radius: 5px
-  &:not(:last-child)
-    margin-bottom: 20px
+.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
diff --git a/bulma/components/panel.sass b/bulma/components/panel.sass
new file mode 100644 (file)
index 0000000..0d26928
--- /dev/null
@@ -0,0 +1,76 @@
+.panel-icon
+  +fa(14px, 16px)
+  color: $text-light
+  float: left
+  margin: 0 4px 0 -2px
+  .fa
+    font-size: inherit
+    line-height: inherit
+
+.panel-heading
+  background: $background
+  border-bottom: 1px solid $border
+  border-radius: 4px 4px 0 0
+  color: $text-strong
+  font-size: $size-medium
+  font-weight: 300
+  padding: 10px
+
+.panel-list
+  a
+    color: $text
+    &:hover
+      color: $link
+
+.panel-tabs
+  display: flex
+  font-size: $size-small
+  padding: 5px 10px 0
+  justify-content: center
+  &:not(:last-child)
+    border-bottom: 1px solid $border
+  a
+    border-bottom: 1px solid $border
+    margin-bottom: -1px
+    padding: 5px
+    &.is-active
+      border-bottom-color: $link-active-border
+      color: $link-active
+
+.panel-block
+  color: $text-strong
+  display: block
+  line-height: 16px
+  padding: 10px
+  &:not(:last-child)
+    border-bottom: 1px solid $border
+  .checkbox
+    border: 1px solid transparent
+    border-radius: $radius
+    display: block
+    padding: 8px
+    padding-left: 32px
+    input
+      left: 9px
+      top: 9px
+    &:hover
+      border-color: $link
+
+a.panel-block:hover
+  background: $background
+
+.panel-checkbox
+  @extend .checkbox
+  display: block
+  padding: 9px 10px 9px 30px
+  &:not(:last-child)
+    border-bottom: 1px solid $border
+  input
+    left: 8px
+    top: 10px
+
+.panel
+  border: 1px solid $border
+  border-radius: 5px
+  &:not(:last-child)
+    margin-bottom: 20px
index 48743f0012bc3d45df823d83e1ddc321d8da84ef..cc9a6bade88fb9ccb5dfacae1c809911e68a7343 100644 (file)
   &:not(:last-child)
     margin-bottom: 5px
 
+.control-label
+  flex: 1
+  margin-right: 20px
+  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-horizontal
-    display: flex
-    & > .button,
-    & > .input,
-    & > .select
-      &:not(:last-child)
-        margin-right: 10px
-    & > .input
-      flex: 1
   &.is-grouped
     display: flex
     .input,
         border-radius: 0 $radius $radius 0
     &.is-centered
       justify-content: center
+  &.is-horizontal
+    display: flex
+    & > .button,
+    & > .input,
+    & > .select
+      &:not(:last-child)
+        margin-right: 10px
+    & > .input
+      flex: 1
+  &.is-inline
+    display: flex
index 1cb1380a2a48530a0ef7f2597527b19af79b89d1..5b437fe182847b845d1836be537490c927c4fdec 100644 (file)
@@ -7,13 +7,6 @@
 @import "messages"
 @import "notifications"
 
-.box
-  @extend .block
-  background: white
-  border-radius: 5px
-  box-shadow: 0 2px 3px rgba(black, 0.1), 0 0 0 1px rgba(black, 0.1)
-  padding: 20px
-
 .delete
   +unselectable
   -moz-appearance: none
index fc28c50992e904b638256d7531284094e1990783..256f7d41a13da7fdb06ddf84dc0b3b0dddecb48a 100644 (file)
   img
     max-height: 24px
   a
-    color: $text
     flex: 1
-    &:hover
-      color: $link-hover
-    &.is-active
-      color: $link-active
   .fa
     font-size: 21px
     line-height: 24px
   +mobile
     text-align: left
 
+.header-item a,
+a.header-item
+  color: $text
+  &:hover
+    color: $link-hover
+  &.is-active
+    color: $link-active
+
 .header-icon
   +fa(14px, 24px)
   color: $text
index 6f3dcead583c4ee67c4530d076b7a9b1ccf33161..cbe589d74fac8c3faebe9150d8b7f7a0fcd65ae1 100644 (file)
       .header .container
         box-shadow: 0 1px 0 rgba($color-invert, 0.2)
       .header-icon,
+      a.header-item,
       .header-item > a:not(.button)
-        color: $color-invert
-        opacity: 0.5
+        color: rgba($color-invert, 0.5)
         &:hover,
         &.is-active
-          opacity: 1
+          color: $color-invert
       .tabs
         a
           color: $color-invert