mirror of
https://github.com/jgthms/bulma
synced 2026-03-21 04:34:30 -07:00
Use flex for all tabs, Add flat input, Fix hero tabs
This commit is contained in:
@@ -1,11 +1,3 @@
|
|||||||
.card
|
|
||||||
background: white
|
|
||||||
box-shadow: 0 2px 3px rgba(black, 0.1), 0 0 0 1px rgba(black, 0.1)
|
|
||||||
max-width: 300px
|
|
||||||
position: relative
|
|
||||||
.media:not(:last-child)
|
|
||||||
margin-bottom: 10px
|
|
||||||
|
|
||||||
.card-image
|
.card-image
|
||||||
display: block
|
display: block
|
||||||
position: relative
|
position: relative
|
||||||
@@ -34,3 +26,13 @@
|
|||||||
background: $background
|
background: $background
|
||||||
display: block
|
display: block
|
||||||
padding: 10px
|
padding: 10px
|
||||||
|
|
||||||
|
.card
|
||||||
|
background: white
|
||||||
|
box-shadow: 0 2px 3px rgba(black, 0.1), 0 0 0 1px rgba(black, 0.1)
|
||||||
|
position: relative
|
||||||
|
width: 300px
|
||||||
|
.media:not(:last-child)
|
||||||
|
margin-bottom: 10px
|
||||||
|
&.is-rounded
|
||||||
|
border-radius: 5px
|
||||||
|
|||||||
@@ -6,9 +6,10 @@
|
|||||||
&:not(:last-child)
|
&:not(:last-child)
|
||||||
margin-bottom: 20px
|
margin-bottom: 20px
|
||||||
.fa
|
.fa
|
||||||
line-height: 24px
|
font-size: 14px
|
||||||
margin: 0 -2px
|
line-height: 20px
|
||||||
width: 24px
|
margin: 2px -2px
|
||||||
|
width: 20px
|
||||||
a
|
a
|
||||||
border-bottom: 1px solid $border
|
border-bottom: 1px solid $border
|
||||||
color: $text
|
color: $text
|
||||||
@@ -20,7 +21,7 @@
|
|||||||
border-bottom-color: $text-strong
|
border-bottom-color: $text-strong
|
||||||
color: $text-strong
|
color: $text-strong
|
||||||
li
|
li
|
||||||
display: inline-block
|
display: block
|
||||||
vertical-align: top
|
vertical-align: top
|
||||||
& + li
|
& + li
|
||||||
margin-left: 20px
|
margin-left: 20px
|
||||||
@@ -30,6 +31,19 @@
|
|||||||
color: $link
|
color: $link
|
||||||
ul
|
ul
|
||||||
border-bottom: 1px solid $border
|
border-bottom: 1px solid $border
|
||||||
|
display: flex
|
||||||
|
&.is-centered
|
||||||
|
a
|
||||||
|
padding: 5px 10px
|
||||||
|
li
|
||||||
|
& + li
|
||||||
|
margin-left: 0
|
||||||
|
ul
|
||||||
|
justify-content: center
|
||||||
|
text-align: center
|
||||||
|
&.is-right
|
||||||
|
ul
|
||||||
|
justify-content: flex-end
|
||||||
&.is-boxed
|
&.is-boxed
|
||||||
a
|
a
|
||||||
border: 1px solid transparent
|
border: 1px solid transparent
|
||||||
@@ -46,10 +60,12 @@
|
|||||||
background: white
|
background: white
|
||||||
border-color: $border
|
border-color: $border
|
||||||
border-bottom-color: transparent
|
border-bottom-color: transparent
|
||||||
|
&.is-centered
|
||||||
|
li
|
||||||
|
&,
|
||||||
|
& + li
|
||||||
|
margin: 0 2px
|
||||||
&.is-toggle
|
&.is-toggle
|
||||||
ul
|
|
||||||
border-bottom: none
|
|
||||||
display: flex
|
|
||||||
a
|
a
|
||||||
border: 1px solid $border
|
border: 1px solid $border
|
||||||
margin-bottom: 0
|
margin-bottom: 0
|
||||||
@@ -72,13 +88,14 @@
|
|||||||
border-color: $primary
|
border-color: $primary
|
||||||
color: $primary-invert
|
color: $primary-invert
|
||||||
z-index: 1
|
z-index: 1
|
||||||
|
ul
|
||||||
|
border-bottom: none
|
||||||
&.is-fullwidth
|
&.is-fullwidth
|
||||||
+tablet
|
+tablet
|
||||||
ul
|
|
||||||
display: flex
|
|
||||||
justify-content: center
|
|
||||||
text-align: center
|
|
||||||
li
|
li
|
||||||
flex: 1
|
flex: 1
|
||||||
& + li
|
& + li
|
||||||
margin-left: 0
|
margin-left: 0
|
||||||
|
ul
|
||||||
|
justify-content: center
|
||||||
|
text-align: center
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
.button
|
.button
|
||||||
+control
|
+control
|
||||||
padding: 3px 10px
|
padding: 3px 10px
|
||||||
|
white-space: nowrap
|
||||||
strong
|
strong
|
||||||
color: inherit
|
color: inherit
|
||||||
small
|
small
|
||||||
@@ -72,6 +73,9 @@
|
|||||||
+button-medium
|
+button-medium
|
||||||
&.is-large
|
&.is-large
|
||||||
+button-large
|
+button-large
|
||||||
|
&.is-fullwidth
|
||||||
|
display: block
|
||||||
|
width: 100%
|
||||||
&.is-flexible
|
&.is-flexible
|
||||||
height: auto
|
height: auto
|
||||||
&.is-loading
|
&.is-loading
|
||||||
|
|||||||
@@ -51,12 +51,22 @@
|
|||||||
width: 100%
|
width: 100%
|
||||||
&[type="search"]
|
&[type="search"]
|
||||||
border-radius: 290486px
|
border-radius: 290486px
|
||||||
|
&.is-flat
|
||||||
|
border: none
|
||||||
|
box-shadow: none
|
||||||
|
padding: 4px 8px
|
||||||
&.is-small
|
&.is-small
|
||||||
+control-small
|
+control-small
|
||||||
|
&.is-flat
|
||||||
|
padding: 4px 6px
|
||||||
&.is-medium
|
&.is-medium
|
||||||
+control-medium
|
+control-medium
|
||||||
|
&.is-flat
|
||||||
|
padding: 4px 10px
|
||||||
&.is-large
|
&.is-large
|
||||||
+control-large
|
+control-large
|
||||||
|
&.is-flat
|
||||||
|
padding: 4px 12px
|
||||||
&.is-fullwidth
|
&.is-fullwidth
|
||||||
display: block
|
display: block
|
||||||
width: 100%
|
width: 100%
|
||||||
@@ -161,6 +171,7 @@
|
|||||||
|
|
||||||
.control
|
.control
|
||||||
position: relative
|
position: relative
|
||||||
|
text-align: left
|
||||||
&.is-loading
|
&.is-loading
|
||||||
&:after
|
&:after
|
||||||
@extend .loader
|
@extend .loader
|
||||||
|
|||||||
@@ -1,3 +1,18 @@
|
|||||||
|
.hero-video
|
||||||
|
+overlay
|
||||||
|
overflow: hidden
|
||||||
|
&.is-transparent
|
||||||
|
opacity: 0.3
|
||||||
|
video
|
||||||
|
left: 50%
|
||||||
|
min-height: 100%
|
||||||
|
min-width: 100%
|
||||||
|
position: absolute
|
||||||
|
top: 50%
|
||||||
|
transform: translate3d(-50%, -50%, 0)
|
||||||
|
+mobile
|
||||||
|
display: none
|
||||||
|
|
||||||
.hero-content
|
.hero-content
|
||||||
padding: 40px 20px
|
padding: 40px 20px
|
||||||
+desktop
|
+desktop
|
||||||
@@ -19,22 +34,14 @@
|
|||||||
.hero
|
.hero
|
||||||
background: white
|
background: white
|
||||||
text-align: center
|
text-align: center
|
||||||
a
|
|
||||||
color: inherit
|
|
||||||
.header
|
.header
|
||||||
background: none
|
background: none
|
||||||
box-shadow: none
|
box-shadow: none
|
||||||
.tabs
|
.tabs
|
||||||
ul
|
|
||||||
border-bottom: none
|
|
||||||
a
|
a
|
||||||
border: none
|
border: none
|
||||||
margin-bottom: 0
|
ul
|
||||||
padding: 0 0 10px
|
border-bottom: none
|
||||||
&.is-boxed
|
|
||||||
a
|
|
||||||
border: none
|
|
||||||
padding: 6px 12px
|
|
||||||
&.is-alt
|
&.is-alt
|
||||||
background: $background
|
background: $background
|
||||||
color: $text-light
|
color: $text-light
|
||||||
@@ -69,7 +76,8 @@
|
|||||||
opacity: 1
|
opacity: 1
|
||||||
li.is-active a
|
li.is-active a
|
||||||
opacity: 1
|
opacity: 1
|
||||||
&.is-boxed
|
&.is-boxed,
|
||||||
|
&.is-toggle
|
||||||
a
|
a
|
||||||
color: $color-invert
|
color: $color-invert
|
||||||
&:hover
|
&:hover
|
||||||
@@ -97,34 +105,21 @@
|
|||||||
.header-item
|
.header-item
|
||||||
border-top-color: rgba($color-invert, 0.2)
|
border-top-color: rgba($color-invert, 0.2)
|
||||||
&.is-fullheight,
|
&.is-fullheight,
|
||||||
&.is-medium,
|
|
||||||
&.is-large
|
&.is-large
|
||||||
+tablet
|
+tablet
|
||||||
.title
|
|
||||||
font-size: $size-huge
|
|
||||||
.subtitle
|
|
||||||
font-size: $size-large
|
|
||||||
.tabs
|
.tabs
|
||||||
font-size: $size-medium
|
font-size: $size-medium
|
||||||
a
|
|
||||||
padding-bottom: 15px
|
|
||||||
&.is-boxed
|
|
||||||
a
|
|
||||||
padding: 12px 16px
|
|
||||||
&.is-medium
|
&.is-medium
|
||||||
+tablet
|
+tablet
|
||||||
.hero-content
|
.hero-content
|
||||||
padding: 120px 20px
|
padding: 120px 20px
|
||||||
.title
|
|
||||||
font-size: 40px
|
|
||||||
.subtitle
|
|
||||||
font-size: 24px
|
|
||||||
.tabs
|
|
||||||
font-size: 16px
|
|
||||||
+desktop
|
+desktop
|
||||||
.hero-content
|
.hero-content
|
||||||
padding: 120px 0
|
padding: 120px 0
|
||||||
&.is-large
|
&.is-large
|
||||||
|
.tabs
|
||||||
|
a
|
||||||
|
padding: 10px 15px
|
||||||
+tablet
|
+tablet
|
||||||
.hero-content
|
.hero-content
|
||||||
padding: 240px 20px
|
padding: 240px 20px
|
||||||
@@ -137,6 +132,9 @@
|
|||||||
flex-direction: column
|
flex-direction: column
|
||||||
height: 100vh
|
height: 100vh
|
||||||
justify-content: space-between
|
justify-content: space-between
|
||||||
|
.tabs
|
||||||
|
a
|
||||||
|
padding: 15px 20px
|
||||||
.hero-content
|
.hero-content
|
||||||
display: flex
|
display: flex
|
||||||
flex: 1
|
flex: 1
|
||||||
|
|||||||
Reference in New Issue
Block a user