Add bd classes

This commit is contained in:
Jeremy Thomas
2017-08-14 12:44:24 +01:00
parent 88fb510d93
commit cd2f886df2
66 changed files with 1184 additions and 2456 deletions

View File

@@ -1,7 +1,7 @@
$bootstrap: #6f5499
$bootstrap-invert: #fff
.bootstrap
.bd-bootstrap
.hero
background-color: $bootstrap
color: $bootstrap-invert
@@ -16,49 +16,49 @@ $bootstrap-invert: #fff
&:hover
color: $bootstrap-invert
.pros-heading
.bd-pros-heading
padding: 0 2rem
text-align: center
.pros-icon
.bd-pros-icon
margin-bottom: 3rem
text-align: center
svg
height: 3rem
width: auto
.pros-list
.bd-pros-list
margin: 0 auto
max-width: 540px
.pro
.bd-pro
.icon
position: relative
top: -1px
.title
margin-bottom: 0.5rem
.pro + .pro
.bd-pro + .pro
margin-top: 2rem
padding-top: 2rem
.pro-content
.bd-pro-content
p:not(:last-child)
margin-bottom: 0.5rem
.pro.is-bulma
.bd-pro.is-bulma
.icon
color: $primary
.pro.is-bootstrap
.bd-pro.is-bootstrap
.icon
color: $bootstrap
.separator
.bd-separator
color: $border
margin: 0 0.25em
.comparison
.bd-comparison
margin: 0 auto
max-width: 42rem
.table
@@ -93,5 +93,5 @@ $bootstrap-invert: #fff
color: $text-strong
font-weight: $weight-bold
.comparison-header
margin-bottom: 3rem
.bd-comparison-header
margin-bottom: 3rem

View File

@@ -1,4 +1,4 @@
.callout
.bd-callout
+block
background-color: $background
border-radius: $radius

View File

@@ -1,5 +1,5 @@
.example,
.structure
.bd-example,
.bd-structure
border: 1px solid $warning
border-top-right-radius: $radius
color: $warning-invert
@@ -29,7 +29,7 @@
border-right: none
padding: 0
.example
.bd-example
& + .highlight
border: 1px solid $warning
border-radius: 0 0 $radius $radius
@@ -53,7 +53,7 @@
$structure: $danger
$structure-invert: $danger-invert
.structure
.bd-structure
border-color: $structure
border-radius: $radius
padding: 1.5rem
@@ -62,7 +62,7 @@ $structure-invert: $danger-invert
color: $structure-invert
content: "Structure"
.structure-item
.bd-structure-item
position: relative
&:before
+overlay
@@ -82,7 +82,7 @@ $structure-invert: $danger-invert
justify-content: center
padding: 3px 5px
z-index: 2
&.is-structure-container
&.bd-is-structure-container
padding: 1.5rem 0.75rem 0.75rem
&:after
align-items: flex-start
@@ -114,7 +114,7 @@ $structure-invert: $danger-invert
white-space: pre-wrap
+tablet
.section:not(.is-fullwidth) > .example:not(.is-fullwidth)
.section:not(.is-fullwidth) > .bd-example:not(.is-fullwidth)
margin-left: 1.5rem
margin-right: 1.5rem
& + .highlight
@@ -123,7 +123,7 @@ $structure-invert: $danger-invert
.section.is-fullwidth
padding: 0 !important
.example
.bd-example
border-left: none
border-radius: 0
border-right: none

View File

@@ -1,49 +1,49 @@
.expo
.bd-expo
background-color: $background
background-color: $white
padding: 1.5rem
.website
.bd-website
display: block
position: relative
text-align: center
&:last-child
margin-bottom: 0
.website-image
.bd-website-image
align-items: center
display: flex
justify-content: center
margin-bottom: 1.5rem
position: relative
&:hover
.website-overlay
.bd-website-overlay
opacity: 0.25
.website-overlay
.bd-website-overlay
background-color: $black
opacity: 0
transition: opacity 200ms $easing
+mobile
.website:not(:last-child)
.bd-website:not(:last-child)
margin-bottom: 1.5rem
+tablet
.expo
.bd-expo
padding-bottom: 3rem
padding-top: 3rem
.websites
.bd-websites
display: flex
flex-wrap: wrap
justify-content: space-between
.website
.bd-website
margin-top: 3rem
width: calc(50% - 3rem)
&:nth-child(1),
&:nth-child(2)
margin-top: 0
&.is-highlighted
&.bd-is-highlighted
width: 100%
.website-image
.bd-website-image
margin-bottom: 3rem

View File

@@ -6,7 +6,7 @@
border-color: $github
color: $white
.tw-button
.bd-tw-button
background-color: $twitter
color: $white
border-color: transparent !important

View File

@@ -1,15 +1,15 @@
.testimonials
.bd-testimonials
background-color: $background
.testimonial
.bd-testimonial
align-items: flex-start
display: flex
justify-content: center
.testimonial-tweet
.bd-testimonial-tweet
background-color: $white
.more-loves
.bd-more-loves
align-items: center
display: flex
justify-content: center
@@ -26,35 +26,35 @@
transform: scale(1.04)
+mobile
.testimonials
.bd-testimonials
padding: 1.5rem
.testimonial
.bd-testimonial
margin-bottom: 1.5rem
+tablet
.testimonials
.bd-testimonials
padding: 3rem
.testimonial + .testimonial
.bd-testimonial + .bd-testimonial
margin-top: 1.5rem
+desktop
.testimonials
.bd-testimonials
min-height: 595px
+widescreen
.testimonials
.bd-testimonials
min-height: 653px
+fullhd
.testimonials
.bd-testimonials
min-height: 632px
.rainbow
.bd-rainbow
animation: rainbow 8s ease infinite
background-image: linear-gradient(124deg, $orange, $red, $purple, $blue)
background-size: 800% 800%
.hero.is-love
.hero.bd-is-love
.title,
.subtitle
color: $white
@@ -67,35 +67,35 @@
100%
background-position: 0% 80%
.hug
.bd-hug
align-items: flex-start
display: flex
justify-content: center
.embrace
.bd-embrace
background-color: $background
border-radius: $radius
padding: 1.5rem
+mobile
.love
.bd-love
padding: 1.5rem
.hug
.bd-hug
margin: 1.5rem
.embrace
.bd-embrace
text-align: center
&:not(:first-child)
margin-top: 1.5rem
&:not(:last-child)
margin-bottom: 1.5rem
.embrace-button
.bd-embrace-button
margin-top: 0.75rem
+tablet
.love
.bd-love
padding-bottom: 3rem
padding-top: 3rem
.embrace
.bd-embrace
align-items: center
display: flex
justify-content: center
@@ -103,13 +103,13 @@
margin-top: 3rem
&:not(:last-child)
margin-bottom: 3rem
.embrace-button
.bd-embrace-button
margin-left: 1.5rem
.hugs
.bd-hugs
display: flex
flex-wrap: wrap
padding-bottom: 3rem
.hug
.bd-hug
margin-top: 1.5rem
width: calc(33.3333% - 1rem)
&:nth-child(1),

View File

@@ -3,7 +3,7 @@
td:nth-child(2)
width: 320px
.color
.bd-color
border-radius: 2px
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(0, 0, 0, 0.1)
display: inline-block
@@ -12,7 +12,7 @@
margin-right: 8px
width: 24px
.button.is-rss
.button.bd-is-rss
background-color: #f26522
border-color: transparent
color: #fff
@@ -21,12 +21,12 @@
&:active
background-color: darken(#f26522, 10%)
.view-all-versions
.bd-view-all-versions
color: $text-light
&:hover
text-decoration: underline
.feature-title
.bd-feature-title
color: $text-light
a
border-bottom: 1px solid transparent
@@ -34,20 +34,20 @@
&:hover
border-bottom-color: $primary
.anchor-title
.bd-anchor-title
padding-top: 1.5rem
position: relative
+until($widescreen)
padding-left: 2rem
.anchor-link
.bd-anchor-link
position: absolute
right: calc(100% + 1rem)
+until($widescreen)
left: 0
right: auto
.article-image
.bd-article-image
background-color: $primary
display: block
height: 240px
@@ -64,19 +64,19 @@
&.is-orange
background-color: $orange
&:hover
.article-overlay
.bd-article-overlay
opacity: 0.25
.article-icon
.bd-article-icon
transform: scale(1.4)
.article-date
.bd-article-date
transform: scale(0.9)
.article-title
.bd-article-title
transform: scale(1.1)
&.is-single
margin-bottom: 2rem
width: 100%
.article-overlay
.bd-article-overlay
+overlay
background-color: $black
opacity: 0
@@ -84,21 +84,21 @@
transition-property: opacity
transition-timing-function: $easing
.article-icon,
.article-info
.bd-article-icon,
.bd-article-info
+overlay
align-items: center
display: flex
justify-content: center
.article-icon,
.article-date,
.article-title
.bd-article-icon,
.bd-article-date,
.bd-article-title
transition-duration: $speed
transition-property: transform
transition-timing-function: $easing
.article-icon
.bd-article-icon
color: $black
opacity: 0.25
& > span
@@ -106,14 +106,14 @@
.fa
font-size: 56px
.article-info
.bd-article-info
padding: 20px
.article-date
.bd-article-date
color: rgba(#000, 0.5)
display: block
.article-title
.bd-article-title
color: $white
display: block
font-size: 2.5rem
@@ -121,6 +121,6 @@
line-height: 1.25
padding: 0 20px
.emoji
.bd-emoji
margin-right: 0.5em
margin-top: 2px
margin-top: 2px

View File

@@ -2,14 +2,14 @@ $tw-black: #1c2022
$tw-blue: #2b7bb9
$tw-grey: #697882
.tws
.bd-tws
background-color: $background
display: flex
flex-wrap: wrap
overflow: auto
padding: 20px
.tw
.bd-tw
background-color: #fff
border: 1px solid #e1e8ed
border-radius: 5px
@@ -19,12 +19,12 @@ $tw-grey: #697882
font-size: 16px
padding: 20px
.tw-header
.bd-tw-header
align-items: stretch
display: flex
justify-content: flex-start
.tw-author
.bd-tw-author
align-items: center
color: $tw-black
display: flex
@@ -32,7 +32,7 @@ $tw-grey: #697882
&:hover
color: $tw-blue
.tw-avatar
.bd-tw-avatar
flex-shrink: 0
height: 36px
margin-right: 9px
@@ -43,18 +43,18 @@ $tw-grey: #697882
height: 36px
width: 36px
.tw-fullname
.bd-tw-fullname
color: currentColor
display: block
font-size: 16px
font-weight: 700
.tw-username
.bd-tw-username
color: $tw-grey
display: block
font-size: 14px
.tw-content
.bd-tw-content
color: $tw-black
font-size: 16px
line-height: 1.4
@@ -67,7 +67,7 @@ $tw-grey: #697882
vertical-align: -.2em
width: 1.25em
.tw-date
.bd-tw-date
font-size: 14px
line-height: 1.4
margin-top: 3.2px
@@ -126,27 +126,27 @@ $tw-grey: #697882
background-image: url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%23657786%22%20d%3D%22M12%2021.638h-.014C9.403%2021.59%201.95%2014.856%201.95%208.478c0-3.064%202.525-5.754%205.403-5.754%202.29%200%203.83%201.58%204.646%202.73.813-1.148%202.353-2.73%204.644-2.73%202.88%200%205.404%202.69%205.404%205.755%200%206.375-7.454%2013.11-10.037%2013.156H12zM7.354%204.225c-2.08%200-3.903%201.988-3.903%204.255%200%205.74%207.035%2011.596%208.55%2011.658%201.52-.062%208.55-5.917%208.55-11.658%200-2.267-1.822-4.255-3.902-4.255-2.528%200-3.94%202.936-3.952%202.965-.23.562-1.156.562-1.387%200-.015-.03-1.426-2.965-3.955-2.965z%22%2F%3E%3C%2Fsvg%3E)
+mobile
.tws
.bd-tws
padding: 1.5rem
.tw
.bd-tw
margin-bottom: 1.5rem
+tablet
.tws
.bd-tws
padding: 3rem
.tw + .tw
.bd-tw + .bd-tw
margin-top: 1.5rem
+desktop
.tws
.bd-tws
min-height: 595px
+widescreen
.tws
.bd-tws
min-height: 653px
+fullhd
.tws
.bd-tws
min-height: 632px
.twitter-tweet:not(.twitter-tweet-rendered)