Skip to content

Commit ebf8abd

Browse files
committed
V1.1.0
1 parent 5f1f3e6 commit ebf8abd

10 files changed

+263
-134
lines changed

.vscode/settings.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
"format": "compressed",
1010
"extensionName": ".min.css",
1111
"savePath": "/dist/"
12+
},
13+
{
14+
"format": "compressed",
15+
"extensionName": ".min.css",
16+
"savePath": "/docs/"
1217
}
13-
]
18+
],
19+
"liveSassCompile.settings.generateMap": false
1420
}

CHANGELOG.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
### 1.0.0:
2+
3+
* Firts release
4+
5+
### 1.1.0:
6+
7+
* Reduce margin-bottom of some elements (as p, tables, forms) to 1rem.
8+
* Add margin-bottom for headers and change their line heigth.
9+
* Now the col-* classes are independat of .row. Now you can use for set size of any elements.
10+
* Fix some input selector hat made the radio and checkbox type inputs not visible.
11+
* Add padding to navar-vert links.
12+
* Change some pixels sizes to rem.
13+
* Add new class: .cards.
14+
* Remove *.map files.
15+
* Change some styles for .alert.
16+
* Update docs.

dist/microcss.css

+90-76
Original file line numberDiff line numberDiff line change
@@ -44,147 +44,135 @@ body {
4444
color: #212121;
4545
}
4646

47-
.row {
48-
width: 100%;
49-
max-width: 1140px;
50-
}
51-
52-
.row:before, .row:after {
53-
content: "";
54-
display: table;
55-
clear: both;
56-
}
57-
58-
.row .col-1 {
47+
.col-1 {
5948
width: 8.33333%;
60-
float: left;
6149
}
6250

63-
.row .col-2 {
51+
.col-2 {
6452
width: 16.66667%;
65-
float: left;
6653
}
6754

68-
.row .col-3 {
55+
.col-3 {
6956
width: 25%;
70-
float: left;
7157
}
7258

73-
.row .col-4 {
59+
.col-4 {
7460
width: 33.33333%;
75-
float: left;
7661
}
7762

78-
.row .col-5 {
63+
.col-5 {
7964
width: 41.66667%;
80-
float: left;
8165
}
8266

83-
.row .col-6 {
67+
.col-6 {
8468
width: 50%;
85-
float: left;
8669
}
8770

88-
.row .col-7 {
71+
.col-7 {
8972
width: 58.33333%;
90-
float: left;
9173
}
9274

93-
.row .col-8 {
75+
.col-8 {
9476
width: 66.66667%;
95-
float: left;
9677
}
9778

98-
.row .col-9 {
79+
.col-9 {
9980
width: 75%;
100-
float: left;
10181
}
10282

103-
.row .col-10 {
83+
.col-10 {
10484
width: 83.33333%;
105-
float: left;
10685
}
10786

108-
.row .col-11 {
87+
.col-11 {
10988
width: 91.66667%;
110-
float: left;
11189
}
11290

113-
.row .col-12 {
91+
.col-12 {
11492
width: 100%;
115-
float: left;
93+
}
94+
95+
.row {
96+
width: 100%;
97+
max-width: 1140px;
98+
}
99+
100+
.row:before, .row:after {
101+
content: "";
102+
display: table;
103+
clear: both;
116104
}
117105

118106
.row *[class*=col-] {
119-
padding: 5px 0;
107+
padding: .2rem 0;
120108
-webkit-box-sizing: border-box;
121109
box-sizing: border-box;
110+
float: left;
122111
}
123112

124113
h1 {
125-
font-size: 48px;
126-
line-height: 58px;
114+
font-size: 3rem;
127115
}
128116

129117
h2 {
130-
font-size: 40px;
131-
line-height: 50px;
118+
font-size: 2.5rem;
132119
}
133120

134121
h3 {
135-
font-size: 32px;
136-
line-height: 42px;
122+
font-size: 2rem;
137123
}
138124

139125
h4 {
140-
font-size: 28px;
141-
line-height: 38px;
126+
font-size: 1.75rem;
142127
}
143128

144129
h5 {
145-
font-size: 24px;
146-
line-height: 34px;
130+
font-size: 1.5rem;
147131
}
148132

149133
h6 {
150-
font-size: 20px;
151-
line-height: 30px;
134+
font-size: 1.25rem;
135+
}
136+
137+
h1, h2, h3, h4, h5, h6 {
138+
line-height: 1.2;
152139
}
153140

154141
/* Forms and buttons */
155-
input,
142+
input:not([type=submit]):not([type=reset]):not([type=button]):not([type=checkbox]):not([type=radio]),
156143
optgroup,
157144
select,
158145
textarea {
159146
font-family: inherit;
160147
font-size: 100%;
161148
line-height: 150%;
162-
margin: 0;
163149
-webkit-appearance: none;
164150
background: #FFFFFF;
165-
padding: 0 3px;
151+
padding: .2rem .4rem;
166152
color: #212121;
167153
border: 1px solid #AAAAAA;
168-
border-radius: 3px;
154+
border-radius: .2rem;
169155
-webkit-transition: border-color 0.2s ease;
170156
transition: border-color 0.2s ease;
157+
width: 100%;
158+
max-width: 100%;
171159
}
172160

173-
input:focus,
161+
input:not([type=submit]):not([type=reset]):not([type=button]):not([type=checkbox]):not([type=radio]):focus,
174162
optgroup:focus,
175163
select:focus,
176164
textarea:focus {
177165
border-color: #7FDBFF;
178166
}
179167

180-
input:disabled,
168+
input:not([type=submit]):not([type=reset]):not([type=button]):not([type=checkbox]):not([type=radio]):disabled,
181169
optgroup:disabled,
182170
select:disabled,
183171
textarea:disabled {
184172
background-color: #DDDDDD;
185173
}
186174

187-
input:invalid,
175+
input:not([type=submit]):not([type=reset]):not([type=button]):not([type=checkbox]):not([type=radio]):invalid,
188176
optgroup:invalid,
189177
select:invalid,
190178
textarea:invalid {
@@ -193,33 +181,43 @@ textarea:invalid {
193181
box-shadow: none;
194182
}
195183

184+
input:not([type=submit]):not([type=reset]), select, textarea, optgroup {
185+
margin: .5rem 0;
186+
}
187+
196188
select {
197189
padding-right: 24px;
198190
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTcuNDEsOC41OEwxMiwxMy4xN0wxNi41OSw4LjU4TDE4LDEwTDEyLDE2TDYsMTBMNy40MSw4LjU4WiIgLz48L3N2Zz4=);
199191
background-position: 100% 50%;
200192
background-repeat: no-repeat;
201193
}
202194

203-
/* Remove the input type number arrows */
204-
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button {
205-
-webkit-appearance: none;
206-
margin: 0;
195+
label, legend {
196+
display: block;
207197
}
208198

209-
/* Buttons and alerts */
210-
button, a.button, .alert, *[type=submit], *[type=reset] {
199+
/* Buttons */
200+
button, a.button, *[type=submit], *[type=reset] {
211201
background-color: #FFFFFF;
212202
border: 1px solid #AAAAAA;
213-
border-radius: 3px;
203+
border-radius: .2rem;
214204
line-height: 2rem;
215205
color: #212121;
216-
padding: 0 10px;
206+
padding: 0 2rem;
217207
height: 2rem;
218208
display: inline-block;
209+
font-weight: bold;
210+
-webkit-box-sizing: border-box;
211+
box-sizing: border-box;
212+
font-size: 1rem;
219213
}
220214

215+
/* Alerts */
221216
.alert {
217+
display: block;
222218
margin: 10px 0;
219+
padding: .5rem;
220+
border-radius: .2rem;
223221
}
224222

225223
.primary, .success, .danger, .warning, .info, *:disabled {
@@ -299,7 +297,7 @@ video, audio {
299297

300298
.navbar .navbar-title {
301299
font-weight: bold;
302-
font-size: 120%;
300+
font-size: 1.2rem;
303301
}
304302

305303
.navbar.fixed {
@@ -318,6 +316,7 @@ video, audio {
318316

319317
.navbar.navbar-vert a, .navbar.navbar-vert .navbar-title {
320318
display: block;
319+
padding: .2rem .5rem;
321320
}
322321

323322
a {
@@ -370,8 +369,9 @@ pre {
370369
white-space: pre-wrap;
371370
}
372371

373-
ul, ol, p, table, blockquote, form, blockquote, pre, .resp-iframe {
374-
margin-bottom: 2rem;
372+
ul, ol, p, table, blockquote, form, blockquote, pre, .resp-iframe,
373+
h1, h2, h3, h4, h5, h6, .card {
374+
margin-bottom: 1rem;
375375
}
376376

377377
/* Utilities */
@@ -395,16 +395,31 @@ ul, ol, p, table, blockquote, form, blockquote, pre, .resp-iframe {
395395
float: right;
396396
}
397397

398+
/* Cards */
399+
.card {
400+
border-radius: .2rem;
401+
-webkit-box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2), -1px -1px 1px rgba(0, 0, 0, 0.2);
402+
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2), -1px -1px 1px rgba(0, 0, 0, 0.2);
403+
}
404+
405+
.card .card-title, .card .card-body, .card .card-footer {
406+
padding: .5rem;
407+
}
408+
409+
.card .card-title {
410+
font-size: 22px;
411+
font-weight: bold;
412+
}
413+
414+
.card .card-footer {
415+
border-top: 1px solid #DDDDDD;
416+
}
417+
418+
.card p {
419+
margin: 0;
420+
}
421+
398422
@media (max-width: 639px) {
399-
/*.navbar {
400-
line-height: 1;
401-
402-
a, .navbar-title {
403-
display: block;
404-
margin: 10px 0;
405-
width: auto;
406-
}
407-
}*/
408423
table.responsive thead {
409424
display: none;
410425
}
@@ -445,4 +460,3 @@ ul, ol, p, table, blockquote, form, blockquote, pre, .resp-iframe {
445460
padding: 0;
446461
}
447462
}
448-
/*# sourceMappingURL=microcss.css.map */

dist/microcss.min.css

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

docs/code-coding-css-92905.jpg

270 KB
Loading

0 commit comments

Comments
 (0)