Skip to content

Commit c98dc5e

Browse files
author
mrmrs
committed
Add hot fix.
1 parent fc05b74 commit c98dc5e

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

css/tachyons.css

+8-8
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ img { max-width: 100%; }
250250
Often used in combination with background image set as an inline style
251251
on an html element.
252252
*/
253-
.cover { background-size: cover; }
254-
.contain { background-size: contain; }
253+
.cover { background-size: cover !important; }
254+
.contain { background-size: contain !important; }
255255
/*
256256
257257
OUTLINES
@@ -1655,8 +1655,8 @@ code, .code { font-family: Consolas, monaco, monospace; }
16551655
/* Uncomment out the line below to help debug layout issues */
16561656
/* @import './_debug'; */
16571657
@media screen and (min-width: 30em) {
1658-
.cover-ns { background-size: cover; }
1659-
.contain-ns { background-size: contain; }
1658+
.cover-ns { background-size: cover !important; }
1659+
.contain-ns { background-size: contain !important; }
16601660
.outline-ns { outline: 1px solid; }
16611661
.outline-transparent-ns { outline: 1px solid transparent; }
16621662
.outline-0-ns { outline: 0; }
@@ -1998,8 +1998,8 @@ code, .code { font-family: Consolas, monaco, monospace; }
19981998
.v-btm-ns { vertical-align: bottom; }
19991999
}
20002000
@media screen and (min-width: 30em) and (max-width: 60em) {
2001-
.cover-m { background-size: cover; }
2002-
.contain-m { background-size: contain; }
2001+
.cover-m { background-size: cover !important; }
2002+
.contain-m { background-size: contain !important; }
20032003
.outline-m { outline: 1px solid; }
20042004
.outline-transparent-m { outline: 1px solid transparent; }
20052005
.outline-0-m { outline: 0; }
@@ -2344,8 +2344,8 @@ code, .code { font-family: Consolas, monaco, monospace; }
23442344
.v-btm-m { vertical-align: bottom; }
23452345
}
23462346
@media screen and (min-width: 60em) {
2347-
.cover-l { background-size: cover; }
2348-
.contain-l { background-size: contain; }
2347+
.cover-l { background-size: cover !important; }
2348+
.contain-l { background-size: contain !important; }
23492349
.ba-l { border-style: solid; border-width: 1px; }
23502350
.bt-l { border-top-style: solid; border-top-width: 1px; }
23512351
.br-l { border-right-style: solid; border-right-width: 1px; }

css/tachyons.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/css/_background-size.css

+8-8
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@
1414
on an html element.
1515
*/
1616

17-
.cover { background-size: cover; }
18-
.contain { background-size: contain; }
17+
.cover { background-size: cover!important; }
18+
.contain { background-size: contain!important; }
1919

2020
@media (--breakpoint-not-small) {
21-
.cover-ns { background-size: cover; }
22-
.contain-ns { background-size: contain; }
21+
.cover-ns { background-size: cover!important; }
22+
.contain-ns { background-size: contain!important; }
2323
}
2424

2525
@media (--breakpoint-medium) {
26-
.cover-m { background-size: cover; }
27-
.contain-m { background-size: contain; }
26+
.cover-m { background-size: cover!important; }
27+
.contain-m { background-size: contain!important; }
2828
}
2929

3030
@media (--breakpoint-large) {
31-
.cover-l { background-size: cover; }
32-
.contain-l { background-size: contain; }
31+
.cover-l { background-size: cover!important; }
32+
.contain-l { background-size: contain!important; }
3333
}

0 commit comments

Comments
 (0)