]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Improve tiles
authorJeremy Thomas <bbxdesign@gmail.com>
Mon, 11 Apr 2016 21:51:11 +0000 (22:51 +0100)
committerJeremy Thomas <bbxdesign@gmail.com>
Mon, 11 Apr 2016 21:51:11 +0000 (22:51 +0100)
CHANGELOG.md
bulma/components/grid.sass
bulma/elements/elements.sass
bulma/elements/notifications.sass
bulma/elements/titles.sass

index e7b0ecf41b15d8426492e3961ba11b55d1794587..fd4c0e84ec614380451674cbd6b6ccabd39097ef 100644 (file)
@@ -1,5 +1,21 @@
 # Bulma Changelog
 
+## 0.0.19
+
+### BREAKING
+
+* `.is-third` renamed to `.is-one-third`
+* `.is-quarter` renamed to `.is-one-quarter`
+
+### Added
+
+* `.is-two-thirds`
+* `.is-three-quarters`
+
+### Changed
+
+* `.delete` in `.tag` has no red
+
 ## 0.0.18
 
 ### BREAKING
index ae018f90b2f94677535a819c6303a2514d3f49a4..3d3ea008185c9983efca4c5b3bcb44a9088ebd57 100644 (file)
@@ -4,20 +4,30 @@
   .columns.is-mobile > &.is-full
     flex: none
     width: 100%
+  .columns.is-mobile > &.is-three-quarters
+    flex: none
+    width: 75%
+  .columns.is-mobile > &.is-two-thirds
+    flex: none
+    width: 66.6666%
   .columns.is-mobile > &.is-half
     flex: none
     width: 50%
-  .columns.is-mobile > &.is-third
+  .columns.is-mobile > &.is-one-third
     flex: none
     width: 33.3333%
-  .columns.is-mobile > &.is-quarter
+  .columns.is-mobile > &.is-one-quarter
     flex: none
     width: 25%
+  .columns.is-mobile > &.is-offset-three-quarters
+    margin-left: 75%
+  .columns.is-mobile > &.is-offset-two-thirds
+    margin-left: 66.6666%
   .columns.is-mobile > &.is-offset-half
     margin-left: 50%
-  .columns.is-mobile > &.is-offset-third
+  .columns.is-mobile > &.is-offset-one-third
     margin-left: 33.3333%
-  .columns.is-mobile > &.is-offset-quarter
+  .columns.is-mobile > &.is-offset-one-quarter
     margin-left: 25%
   @for $i from 1 through 12
     .columns.is-mobile > &.is-#{$i}
     &.is-full-mobile
       flex: none
       width: 100%
+    &.is-three-quarters-mobile
+      flex: none
+      width: 75%
+    &.is-two-thirds-mobile
+      flex: none
+      width: 66.6666%
     &.is-half-mobile
       flex: none
       width: 50%
-    &.is-third-mobile
+    &.is-one-third-mobile
       flex: none
       width: 33.3333%
-    &.is-quarter-mobile
+    &.is-one-quarter-mobile
       flex: none
       width: 25%
+    &.is-offset-three-quarters-mobile
+      margin-left: 75%
+    &.is-offset-two-thirds-mobile
+      margin-left: 66.6666%
     &.is-offset-half-mobile
       margin-left: 50%
-    &.is-offset-third-mobile
+    &.is-offset-one-third-mobile
       margin-left: 33.3333%
-    &.is-offset-quarter-mobile
+    &.is-offset-one-quarter-mobile
       margin-left: 25%
     @for $i from 1 through 12
       &.is-#{$i}-mobile
     &.is-full-tablet
       flex: none
       width: 100%
+    &.is-three-quarters,
+    &.is-three-quarters-tablet
+      flex: none
+      width: 75%
+    &.is-two-thirds,
+    &.is-two-thirds-tablet
+      flex: none
+      width: 66.6666%
     &.is-half,
     &.is-half-tablet
       flex: none
       width: 50%
-    &.is-third,
-    &.is-third-tablet
+    &.is-one-third,
+    &.is-one-third-tablet
       flex: none
       width: 33.3333%
-    &.is-quarter,
-    &.is-quarter-tablet
+    &.is-one-quarter,
+    &.is-one-quarter-tablet
       flex: none
       width: 25%
+    &.is-offset-three-quarters,
+    &.is-offset-three-quarters-tablet
+      margin-left: 75%
+    &.is-offset-two-thirds,
+    &.is-offset-two-thirds-tablet
+      margin-left: 66.6666%
     &.is-offset-half,
     &.is-offset-half-tablet
       margin-left: 50%
-    &.is-offset-third,
-    &.is-offset-third-tablet
+    &.is-offset-one-third,
+    &.is-offset-one-third-tablet
       margin-left: 33.3333%
-    &.is-offset-quarter,
-    &.is-offset-quarter-tablet
+    &.is-offset-one-quarter,
+    &.is-offset-one-quarter-tablet
       margin-left: 25%
     @for $i from 1 through 12
       &.is-#{$i},
     &.is-full-desktop
       flex: none
       width: 100%
+    &.is-three-quarters-desktop
+      flex: none
+      width: 75%
+    &.is-two-thirds-desktop
+      flex: none
+      width: 66.6666%
     &.is-half-desktop
       flex: none
       width: 50%
-    &.is-third-desktop
+    &.is-one-third-desktop
       flex: none
       width: 33.3333%
-    &.is-quarter-desktop
+    &.is-one-quarter-desktop
       flex: none
       width: 25%
+    &.is-offset-three-quarters-desktop
+      margin-left: 75%
+    &.is-offset-two-thirds-desktop
+      margin-left: 66.6666%
     &.is-offset-half-desktop
       margin-left: 50%
-    &.is-offset-third-desktop
+    &.is-offset-one-third-desktop
       margin-left: 33.3333%
-    &.is-offset-quarter-desktop
+    &.is-offset-one-quarter-desktop
       margin-left: 25%
     @for $i from 1 through 12
       &.is-#{$i}-desktop
     &.is-desktop
       display: flex
 
-.tile
+.tilefiejsoif
   flex: 1
   // Modifiers
   &.is-parent
         flex: none
         width: ($i / 12) * 100%
 
-.tiles
+.tile
   align-items: stretch
+  flex: 1
   // Modifiers
   &.is-ancestor
     margin-left: -10px
     &:not(:last-child)
       margin-bottom: 10px
   &.is-child
-    flex: 1
     margin: 0 !important
+  &.is-parent
+    padding: 10px
   &.is-vertical
     flex-direction: column
-    & > .tiles.is-child:not(:last-child)
+    & > .tile.is-child:not(:last-child)
       margin-bottom: 20px !important
   // Responsiveness
   +tablet
     display: flex
+    @for $i from 1 through 12
+      &.is-#{$i}
+        flex: none
+        width: ($i / 12) * 100%
index 4d13cf24e36c2073164ab702b946bbe889b43d1f..437ab99960e94221a724738ede437786f8da16d1 100644 (file)
@@ -38,7 +38,7 @@
   &:after
     transform: rotate(-45deg)
   &:hover
-    background: $red
+    background: rgba(black, 0.5)
   // Sizes
   &.is-small
     height: 16px
index e9edfba07acf1ba7d68b650b5614068956e4dc86..423be80efdd52687177b75d13dc644ea8dba3a6c 100644 (file)
@@ -6,12 +6,9 @@
   padding: 16px 20px
   position: relative
   .delete
-    background: rgba(black, 0.2)
     border-radius: 0 $radius
     float: right
     margin: -16px -20px 0 20px
-    &:hover
-      background: rgba(black, 0.5)
   .title
     color: inherit
   // Colors
index 617a8a71e292f87bd96d9b90f34f2beabf89ff1b..324b9e837c2eaef557e2cb2e582ee4c662a09408 100644 (file)
@@ -2,6 +2,7 @@
 .subtitle
   @extend .block
   font-weight: $weight-title-normal
+  word-break: break-all
   em,
   span
     font-weight: $weight-title-normal