Skip to content

Commit 58099f9

Browse files
committed
merge conflict
2 parents f8112c6 + d5281f9 commit 58099f9

File tree

80 files changed

+3490
-4169
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+3490
-4169
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@responsive {
2+
.example {
3+
color: red;
4+
}
5+
}
6+
7+
@tailwind screens;
8+
9+
.john {
10+
content: "wick";
11+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
.example {
2+
color: red;
3+
}
4+
5+
@media (min-width: 576px) {
6+
.sm\:example {
7+
color: red;
8+
}
9+
}
10+
11+
@media (min-width: 768px) {
12+
.md\:example {
13+
color: red;
14+
}
15+
}
16+
17+
@media (min-width: 992px) {
18+
.lg\:example {
19+
color: red;
20+
}
21+
}
22+
23+
@media (min-width: 1200px) {
24+
.xl\:example {
25+
color: red;
26+
}
27+
}
28+
29+
.john {
30+
content: "wick";
31+
}

__tests__/sanity.test.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,21 @@ it('does not add any CSS if no Tailwind features are used', () => {
2828
expect(result.css).toBe('')
2929
})
3030
})
31+
32+
it('generates the right CSS with implicit screen utilities', () => {
33+
const input = fs.readFileSync(
34+
path.resolve(`${__dirname}/fixtures/tailwind-input-with-explicit-screen-utilities.css`),
35+
'utf8'
36+
)
37+
38+
return postcss([tailwind()])
39+
.process(input)
40+
.then(result => {
41+
const expected = fs.readFileSync(
42+
path.resolve(`${__dirname}/fixtures/tailwind-output-with-explicit-screen-utilities.css`),
43+
'utf8'
44+
)
45+
46+
expect(result.css).toBe(expected)
47+
})
48+
})

docs/source/_assets/js/app.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ window.Vue = require('vue')
77
Vue.component('responsive-code-sample', require('./components/ResponsiveCodeSample.vue'))
88

99
const app = new Vue({
10-
el: '#app'
10+
el: '#app'
1111
})
1212

1313
Prism.highlightAll()
14-
anchors.options = { placement: 'left', class: 'text-slate-light' };
15-
anchors.add();
14+
anchors.options = { placement: 'left', class: 'text-slate-light' }
15+
anchors.add()
1616

1717
// Add shortcut to search input when pressing the "/" key
1818
document.onkeyup = function (e) {
19-
if (e.which == 191) {
20-
document.getElementById('docsearch').focus();
21-
}
22-
};
19+
if (e.which == 191) {
20+
document.getElementById('docsearch').focus()
21+
}
22+
}

docs/source/_assets/js/nav.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ $.when($.ready).then(function() {
5353
// Load page history (for back/forward nav)
5454
window.onpopstate = function(e) {
5555
if(e.state){
56-
5756
// Update the page
5857
$('title').text(e.state.title)
5958
$('#nav').html(e.state.nav)

docs/source/_assets/less/main.less

Lines changed: 4 additions & 0 deletions
Large diffs are not rendered by default.

docs/source/_assets/less/prism.less

Lines changed: 51 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -7,82 +7,82 @@
77

88
code[class*="language-"],
99
pre[class*="language-"] {
10-
@apply .font-mono;
11-
@apply .text-slate-dark;
10+
@apply .font-mono;
11+
@apply .text-slate-dark;
1212

13-
background: none;
14-
text-align: left;
15-
white-space: pre;
16-
word-spacing: normal;
17-
word-break: normal;
18-
word-wrap: normal;
19-
line-height: 1.5;
13+
background: none;
14+
text-align: left;
15+
white-space: pre;
16+
word-spacing: normal;
17+
word-break: normal;
18+
word-wrap: normal;
19+
line-height: 1.5;
2020

21-
-moz-tab-size: 4;
22-
-o-tab-size: 4;
23-
tab-size: 4;
21+
-moz-tab-size: 4;
22+
-o-tab-size: 4;
23+
tab-size: 4;
2424

25-
-webkit-hyphens: none;
26-
-moz-hyphens: none;
27-
-ms-hyphens: none;
28-
hyphens: none;
25+
-webkit-hyphens: none;
26+
-moz-hyphens: none;
27+
-ms-hyphens: none;
28+
hyphens: none;
2929

30-
font-weight: 400;
30+
font-weight: 400;
3131
}
3232

3333
pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
3434
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
35-
text-shadow: none;
36-
background: #b3d4fc;
35+
text-shadow: none;
36+
background: #b3d4fc;
3737
}
3838

3939
pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
4040
code[class*="language-"]::selection, code[class*="language-"] ::selection {
41-
text-shadow: none;
42-
background: #b3d4fc;
41+
text-shadow: none;
42+
background: #b3d4fc;
4343
}
4444

4545
@media print {
46-
code[class*="language-"],
47-
pre[class*="language-"] {
48-
text-shadow: none;
49-
}
46+
code[class*="language-"],
47+
pre[class*="language-"] {
48+
text-shadow: none;
49+
}
5050
}
5151

5252
/* Code blocks */
5353
pre {
54-
padding: 1em;
55-
margin: .5em 0;
56-
overflow: auto;
54+
padding: 1em;
55+
margin: .5em 0;
56+
overflow: auto;
5757
}
5858

5959
:not(pre) > code[class*="language-"],
6060
pre[class*="language-"] {
61-
background: transparent;
62-
@apply .text-sm;
61+
background: transparent;
62+
@apply .text-sm;
6363
}
6464

6565
/* Inline code */
6666
:not(pre) > code[class*="language-"] {
67-
padding: .1em;
68-
border-radius: .3em;
69-
white-space: normal;
67+
padding: .1em;
68+
border-radius: .3em;
69+
white-space: normal;
7070
}
7171

7272
.token.comment,
7373
.token.prolog,
7474
.token.doctype,
7575
.token.cdata {
76-
@apply .text-grey;
76+
@apply .text-grey;
7777
}
7878

7979
.token.punctuation {
80-
@apply .text-blue-dark;
81-
// color: #999;
80+
@apply .text-blue-dark;
81+
// color: #999;
8282
}
8383

8484
.namespace {
85-
opacity: .7;
85+
opacity: .7;
8686
}
8787

8888
.token.property,
@@ -91,19 +91,19 @@ pre[class*="language-"] {
9191
.token.number,
9292
.token.constant,
9393
.token.symbol {
94-
@apply .text-blue-dark;
94+
@apply .text-blue-dark;
9595
}
9696

9797
code.language-diff, pre.language-diff {
98-
@apply .text-grey-darker;
98+
@apply .text-grey-darker;
9999
}
100100

101101
.token.deleted {
102-
@apply .text-grey;
102+
@apply .text-grey;
103103
}
104104

105105
.token.inserted {
106-
@apply .text-blue-dark;
106+
@apply .text-blue-dark;
107107
}
108108

109109
// .token.selector,
@@ -112,44 +112,43 @@ code.language-diff, pre.language-diff {
112112
// .token.builtin,
113113
// .token.inserted,
114114
.token.string {
115-
@apply .text-purple;
115+
@apply .text-purple;
116116
}
117117

118118
.token.operator,
119119
.token.entity,
120120
.token.url,
121121
.language-css .token.string,
122122
.style .token.string {
123-
color: #a67f59;
124-
background: hsla(0, 0%, 100%, .5);
123+
color: #a67f59;
124+
background: hsla(0, 0%, 100%, .5);
125125
}
126126

127127
.token.atrule,
128128
.token.attr-value,
129129
.token.keyword {
130-
@apply .text-purple;
131-
// color: #07a;
130+
@apply .text-purple;
131+
// color: #07a;
132132
}
133133

134134
.token.function {
135-
color: #DD4A68;
135+
color: #DD4A68;
136136
}
137137

138138
.token.regex,
139139
.token.important,
140140
.token.variable {
141-
color: #e90;
141+
color: #e90;
142142
}
143143

144144
.token.important,
145145
.token.bold {
146-
font-weight: bold;
146+
font-weight: bold;
147147
}
148148
.token.italic {
149-
font-style: italic;
149+
font-style: italic;
150150
}
151151

152152
.token.entity {
153-
cursor: help;
153+
cursor: help;
154154
}
155-

0 commit comments

Comments
 (0)