Skip to content

Commit 6b09dcf

Browse files
committed
Use var() notation
1 parent 867a306 commit 6b09dcf

23 files changed

+391
-229
lines changed

docs/_sass/book.sass

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ $book-beige: #FFEDD7
4545

4646
.bd-book-content
4747
@extend %bd-box
48-
box-shadow: 0 3rem 3rem -1rem rgba($scheme-invert, 0.2)
48+
box-shadow: 0 3rem 3rem -1rem rgba(var(--#{$prefix}-scheme-invert), 0.2)
4949
max-width: 520px
5050
padding: 3rem
5151

@@ -98,7 +98,7 @@ $book-beige: #FFEDD7
9898

9999
.bd-book-modal-background
100100
+overlay
101-
background-color: rgba($scheme-invert, 0.86)
101+
background-color: rgba(var(--#{$prefix}-scheme-invert), 0.86)
102102

103103
.bd-book-modal
104104
.bd-book-modal-background,
@@ -153,7 +153,7 @@ $book-beige: #FFEDD7
153153
.bd-book-inline-cover
154154
display: none
155155
.bd-book-modal-column
156-
background-color: $scheme-main
156+
background-color: var(--#{$prefix}-scheme-main)
157157
position: relative
158158
&.bd-is-cover
159159
align-items: center

docs/_sass/bootstrap.sass

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ $bootstrap-invert: #fff
7070
&:hover
7171
text-decoration: underline
7272
.bd-is-empty
73-
background-color: $background
74-
color: $text-light
73+
background-color: var(--#{$prefix}-background)
74+
color: var(--#{$prefix}-text-light)
7575
.bd-is-unique
7676
background-color: rgba($green, 0.25)
77-
color: $text-strong
77+
color: var(--#{$prefix}-text-strong)
7878
font-weight: $weight-bold
7979

8080
.bd-bootstrap-comparison-header

docs/_sass/bsa.sass

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@
88
.default-ad
99
background-color: rgba(black, 0.3)
1010
border-radius: 2px
11-
color: $scheme-main
11+
color: var(--#{$prefix}-scheme-main)
1212
display: inline-block
1313
font-size: 10px
1414
font-weight: bold
1515
padding: 0 4px
1616
text-transform: uppercase
1717
vertical-align: top
1818
& > a
19-
background-color: $scheme-main
19+
background-color: var(--#{$prefix}-scheme-main)
2020
border-radius: $radius-large
21-
box-shadow: 0 2px 3px rgba($scheme-invert, 0.1), 0 0 0 1px rgba($scheme-invert, 0.1)
22-
color: $text
21+
box-shadow: 0 2px 3px rgba(var(--#{$prefix}-scheme-invert), 0.1), 0 0 0 1px rgba(var(--#{$prefix}-scheme-invert), 0.1)
22+
color: var(--#{$prefix}-text)
2323
display: block
2424
line-height: 1.375
2525
margin-top: 15px
@@ -29,9 +29,9 @@
2929
position: relative
3030
&:hover,
3131
&:focus
32-
box-shadow: 0 2px 3px rgba($scheme-invert, 0.1), 0 0 0 1px $link
32+
box-shadow: 0 2px 3px rgba(var(--#{$prefix}-scheme-invert), 0.1), 0 0 0 1px var(--#{$prefix}-link)
3333
&:active
34-
box-shadow: inset 0 1px 2px rgba($scheme-invert, 0.2), 0 0 0 1px $link
34+
box-shadow: inset 0 1px 2px rgba(var(--#{$prefix}-scheme-invert), 0.2), 0 0 0 1px var(--#{$prefix}-link)
3535
span
3636
display: block
3737
.default-image
@@ -46,7 +46,7 @@
4646
height: 40px
4747
width: 40px
4848
.default-title
49-
color: $text-strong
49+
color: var(--#{$prefix}-text-strong)
5050
display: inline
5151
font-weight: $weight-bold
5252
&::after

docs/_sass/callout.sass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.bd-callout
22
+block
3-
background-color: $background
3+
background-color: var(--#{$prefix}-background)
44
border-radius: $radius
55
padding: 1.25rem 2.5rem 1.25rem 1.5rem
66
position: relative

docs/_sass/example.sass

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ $structure-invert: $danger-invert
164164
position: relative
165165
&::before
166166
+overlay
167-
background: rgba($scheme-invert, 0.7)
167+
background: rgba(var(--#{$prefix}-scheme-invert), 0.7)
168168
background: $background
169169
border: 1px solid $border
170170
content: ""
@@ -193,7 +193,7 @@ $structure-invert: $danger-invert
193193
.bd-expand
194194
background: none
195195
border: none
196-
color: $text
196+
color: var(--#{$prefix}-text)
197197
cursor: pointer
198198
font-size: 0.625rem
199199
outline: none

docs/_sass/expo.sass

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.bd-expo
2-
background-color: $scheme-main
2+
background-color: var(--#{$prefix}-scheme-main)
33
padding: 1.5rem
44

55
.bd-website
@@ -31,7 +31,7 @@
3131
transition: opacity 200ms $easing
3232

3333
.bd-website-overlay
34-
background-color: $scheme-invert
34+
background-color: var(--#{$prefix}-scheme-invert)
3535
opacity: 0
3636
transition: opacity 200ms $easing
3737

docs/_sass/footer.sass

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.bd-footer-title
2-
color: $text-strong
2+
color: var(--#{$prefix}-text-strong)
33
font-size: 1.25rem
44
line-height: 1.25
55
margin-bottom: 0.5rem
@@ -9,7 +9,7 @@
99
font-weight: $weight-semibold
1010

1111
.bd-footer-subtitle
12-
color: $border-hover
12+
color: var(--#{$prefix}-border-hover)
1313
margin-top: -0.5rem
1414
transition-duration: $speed
1515
transition-property: color
@@ -29,7 +29,7 @@
2929
width: 100%
3030

3131
.bd-footer-tsp
32-
color: $border-hover
32+
color: var(--#{$prefix}-border-hover)
3333
margin-top: 1.5rem
3434

3535
%bd-footer-box
@@ -42,7 +42,7 @@
4242
4343
.bd-footer-support
4444
@extend %bd-footer-box
45-
border-top: 2px solid $scheme-main-ter
45+
border-top: 2px solid var(--#{$prefix}-scheme-main-ter)
4646
box-shadow: none
4747
padding: 3rem
4848
.bd-footer-title
@@ -63,7 +63,7 @@
6363
padding: 0.75rem 1.5rem
6464

6565
.bd-footer-donation-title
66-
color: $border-hover
66+
color: var(--#{$prefix}-border-hover)
6767
margin-bottom: 0.5rem
6868
strong
6969
color: currentColor
@@ -103,11 +103,11 @@ $star-figure-height: 156px
103103
+tablet
104104
width: calc(33.3333% - 2rem)
105105
&:hover
106-
box-shadow: 0 3rem 3rem -1.25rem rgba($scheme-invert, 0.1)
106+
box-shadow: 0 3rem 3rem -1.25rem rgba(var(--#{$prefix}-scheme-invert), 0.1)
107107
transform: translateY(-0.5rem)
108108
.bd-footer-title,
109109
.bd-footer-subtitle
110-
color: $link
110+
color: var(--#{$prefix}-link)
111111
&.bd-is-expo,
112112
&.bd-is-love
113113
padding-bottom: $star-figure-height
@@ -144,10 +144,10 @@ $star-figure-height: 156px
144144
a
145145
color: currentColor
146146
&:hover
147-
color: $link
147+
color: var(--#{$prefix}-link)
148148

149149
.bd-footer-link-title
150-
color: $text-strong
150+
color: var(--#{$prefix}-text-strong)
151151
font-size: 1.25rem
152152
font-weight: $weight-semibold
153153
&:not(:first-child)
@@ -158,7 +158,7 @@ $star-figure-height: 156px
158158
&.bd-is-more
159159
font-size: 0.875rem
160160
a:not(:hover)
161-
color: $border-hover
161+
color: var(--#{$prefix}-border-hover)
162162
&.bd-has-subtitle
163163
a
164164
align-items: center
@@ -174,7 +174,7 @@ $star-figure-height: 156px
174174
font-style: normal
175175
&:not(:hover)
176176
em
177-
color: $border-hover
177+
color: var(--#{$prefix}-border-hover)
178178
+mobile
179179
flex-wrap: wrap
180180
margin-top: 1rem

docs/_sass/global.sass

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ svg
1616
strong
1717
color: currentColor
1818
a
19-
border-bottom: 1px solid rgba($scheme-main, 0.5)
19+
border-bottom: 1px solid rgba(var(--#{$prefix}-scheme-main), 0.5)
2020
padding-bottom: 2px
2121
&:hover
22-
border-bottom-color: $scheme-main
22+
border-bottom-color: var(--#{$prefix}-scheme-main)
2323
span
2424
margin: 0 0.25em
2525
opacity: 0.5
@@ -99,8 +99,8 @@ $carbon-poweredby-height: 20px
9999
padding: 0
100100
position: relative
101101
&:hover
102-
background-color: $scheme-main
103-
box-shadow: 0 0 0 $carbon-shadow-size $scheme-main
102+
background-color: var(--#{$prefix}-scheme-main)
103+
box-shadow: 0 0 0 $carbon-shadow-size var(--#{$prefix}-scheme-main)
104104
+tablet
105105
width: $carbon-width
106106

@@ -138,20 +138,20 @@ $carbon-poweredby-height: 20px
138138
width: $carbon-image-width
139139
&:hover
140140
& + .carbon-text
141-
color: $link
141+
color: var(--#{$prefix}-link)
142142
&:active
143143
opacity: 0.8
144144
.carbon-text
145145
display: block
146-
color: $text-strong
146+
color: var(--#{$prefix}-text-strong)
147147
line-height: 20px
148148
min-height: $carbon-height
149149
padding: 0 0 $carbon-poweredby-height calc(#{$carbon-image-width} + #{$carbon-spacing})
150150
&:hover
151-
color: $link
151+
color: var(--#{$prefix}-link)
152152
.carbon-poweredby
153153
bottom: 0
154-
color: $border-hover
154+
color: var(--#{$prefix}-border-hover)
155155
display: inline
156156
font-size: $size-small
157157
line-height: $carbon-poweredby-height

docs/_sass/header.sass

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
&:hover
55
background: $github
66
border-color: $github
7-
color: $scheme-main
7+
color: var(--#{$prefix}-scheme-main)
88

99
.bd-tw-button
1010
background-color: $twitter
11-
color: $scheme-main
11+
color: var(--#{$prefix}-scheme-main)
1212
border-color: transparent !important
1313
&:hover
1414
background-color: darken($twitter, 2.5%)
15-
color: $scheme-main
15+
color: var(--#{$prefix}-scheme-main)
1616
&:active,
1717
&:focus
1818
background-color: darken($twitter, 5%)
19-
color: $scheme-main
19+
color: var(--#{$prefix}-scheme-main)
2020

2121
#moreDropdown
2222
.navbar-item

docs/_sass/highlight.sass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.highlight
2-
background-color: $pre-background
2+
background-color: var(--#{$prefix}-pre-background)
33
border-radius: $radius-large
44
color: #586e75
55
pre

0 commit comments

Comments
 (0)