Skip to content
This repository was archived by the owner on Nov 10, 2022. It is now read-only.

Commit adc5e55

Browse files
committed
ChuckCSS v3.0.0 - Make big changes - update normalize and change gris selectors
1 parent 01c8454 commit adc5e55

30 files changed

+1208
-2085
lines changed

Gulpfile.js

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -38,32 +38,6 @@ gulp.task('chuckcss_less', function() {
3838
});
3939

4040

41-
/*
42-
* BOOTSTRAP OVERRIDE
43-
*/
44-
gulp.task('chuckcss_minify_bootstrap', function() {
45-
gulp.src('chuckcss/bootstrap/bootstrap-override.less')
46-
.pipe(less())
47-
.pipe(cssnano({
48-
'postcss-minify-font-values': true
49-
}))
50-
.pipe(autoprefixer({
51-
browsers:"> 1%, last 2 versions, Safari >= 8"
52-
}))
53-
.pipe(rename({basename: 'bootstrap-override', suffix: '.min'}))
54-
.pipe(gulp.dest('dist/'));
55-
});
56-
gulp.task('chuckcss_bootstrap', function() {
57-
gulp.src('chuckcss/bootstrap/bootstrap-override')
58-
.pipe(less())
59-
.pipe(autoprefixer({
60-
browsers:"> 1%, last 2 versions, Safari >= 8"
61-
}))
62-
.pipe(rename({basename: 'bootstrap-override'}))
63-
.pipe(gulp.dest('dist/'));
64-
});
65-
66-
6741
/*
6842
* PRINT FILE
6943
*/
@@ -83,13 +57,10 @@ gulp.task('chuckcss_print', function() {
8357
gulp.task('watch', function() {
8458
gulp.watch('chuckcss/**/*.less', ['chuckcss_minify_less', 'chuckcss_less']);
8559
gulp.watch('chuckcss/print.less', ['chuckcss_print']);
86-
gulp.watch('chuckcss/bootstrap/**/*.less', ['chuckcss_bootstrap', 'chuckcss_minify_bootstrap']);
8760
});
8861

8962
gulp.task('default', [
9063
'chuckcss_less',
9164
'chuckcss_minify_less',
92-
'chuckcss_print',
93-
'chuckcss_bootstrap',
94-
'chuckcss_minify_bootstrap'
65+
'chuckcss_print'
9566
]);

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "chuckcss",
3-
"version": "2.0.3",
3+
"version": "3.0.0",
44
"description": "Responsive CSS framework based on Flexbox grids compiled with LESS and Autoprefixer",
55
"authors": {
66
"name": "Mickael SURREL <ALPIXEL>",

chuckcss/bootstrap/alerts.less

Lines changed: 0 additions & 15 deletions
This file was deleted.

chuckcss/bootstrap/badges.less

Lines changed: 0 additions & 11 deletions
This file was deleted.

chuckcss/bootstrap/blockquotes.less

Lines changed: 0 additions & 9 deletions
This file was deleted.

chuckcss/bootstrap/bootstrap-override.less

Lines changed: 0 additions & 16 deletions
This file was deleted.

chuckcss/bootstrap/modals.less

Lines changed: 0 additions & 11 deletions
This file was deleted.

chuckcss/components/badges.less

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212

1313
span.badge {
14-
._inline;
14+
display:inline-block;
1515
position:relative;
1616
top:-1px;
1717
background-color:@gray-da;
@@ -24,6 +24,11 @@ span.badge {
2424
min-width:20px;
2525
vertical-align:baseline;
2626

27+
div &,
28+
p & {
29+
margin:0 5px;
30+
}
31+
2732
i {
2833
&:before {
2934
._reset;

chuckcss/components/grids.less

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -15,51 +15,52 @@
1515
.columns {
1616
display:flex;
1717
flex-wrap:wrap;
18-
flex-direction:row;
1918
margin:0 -@cols-gutter/2;
2019

2120
&.cc {
2221
&-no-multiligne {flex-wrap:nowrap}
2322
&-reverse{flex-direction:row-reverse}
2423
&-justify {
25-
&-starting {justify-content:flex-start}
26-
&-ending {justify-content:flex-end}
27-
&-centering {justify-content:center}
28-
&-spacing {justify-content:space-between}
29-
&-equal-spacing {justify-content:space-around}
24+
&-start {justify-content:flex-start}
25+
&-end {justify-content:flex-end}
26+
&-center {justify-content:center}
27+
&-space-between {justify-content:space-between}
28+
&-space-around {justify-content:space-around}
29+
}
30+
&-align {
31+
&-start {align-items:flex-start}
32+
&-end {align-items:flex-end}
33+
&-center {align-items:center}
34+
&-baseline {align-items:baseline}
35+
&-stretch {align-items:stretch}
3036
}
3137
&-no-gutter {
3238
margin:0;
33-
.column {
39+
& > * {
3440
margin:@cols-ma-top 0 @cols-ma-bottom;
3541
}
3642
}
3743
&-gutter {
38-
.column {
44+
& > * {
3945
margin:@cols-ma-top @cols-gutter/2 @cols-ma-bottom;
4046
}
4147
}
42-
&-animated {
43-
.column {
44-
._transition;
45-
}
46-
}
4748
&-masonry {
4849
display:block;
4950
margin:0;
5051
column-gap: @cols-masonry-gap;
5152

52-
&.cc-no-gutter .column,
53-
.column {
54-
._inline;
53+
&.cc-no-gutter > *,
54+
& > * {
55+
display:inline-block;
5556
width:100%;
5657
max-width:100%;
5758
flex:none;
5859
margin:@cols-masonry-gap/2 0;
5960
}
6061
}
6162
&-spaceless {
62-
&>.column {
63+
& > * {
6364
margin-top:0;
6465
margin-bottom:0;
6566
}
@@ -68,15 +69,14 @@
6869

6970

7071

71-
.column {
72+
& > * {
7273
._reset;
7374
padding:@cols-pa;
7475
margin:@cols-ma-top @cols-gutter/2 @cols-ma-bottom;
7576
flex:1 1 0%;
7677

7778
/* Nested columns */
7879
&.columns {
79-
flex :1;
8080
padding:@cols-gutter @cols-gutter/2;
8181

8282
&.cc-no-gutter {
@@ -112,6 +112,7 @@
112112
&-bottom {align-self:flex-end}
113113
&-center {align-self:center}
114114
&-stretch {align-self:stretch}
115+
&-baseline {align-self:baseline}
115116
}
116117
}
117118
&-w-auto {
@@ -123,8 +124,8 @@
123124

124125
/* TABLET rules */
125126
._tablet({
126-
&.cc-gutter .column.cc,
127-
.column.cc {
127+
&.cc-gutter > *.cc,
128+
& > *.cc {
128129
&-offset-0-t,
129130
&-no-offset-t {
130131
margin-left: @cols-gutter/2;
@@ -139,8 +140,8 @@
139140
}
140141
}
141142

142-
&.cc-no-gutter .column.cc-offset-0-t,
143-
&.cc-no-gutter .column.cc-no-offset-t {
143+
&.cc-no-gutter > *.cc-offset-0-t,
144+
&.cc-no-gutter > *.cc-no-offset-t {
144145
margin-left:0;
145146
}
146147
});
@@ -149,8 +150,8 @@
149150
/* PHONE rules */
150151
._phone({
151152

152-
&.cc-gutter .column.cc,
153-
.column.cc {
153+
&.cc-gutter > *.cc,
154+
& > *.cc {
154155
&-offset-0-s,
155156
&-no-offset-s {
156157
margin-left: @cols-gutter/2;
@@ -165,8 +166,8 @@
165166
}
166167
}
167168

168-
&.cc-no-gutter .column.cc-offset-0-s,
169-
&.cc-no-gutter .column.cc-no-offset-s {
169+
&.cc-no-gutter > *.cc-offset-0-s,
170+
&.cc-no-gutter > *.cc-no-offset-s {
170171
margin-left:0;
171172
}
172173
});

chuckcss/components/messages.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
.message {
1717
padding: 0.5em 1em;
1818
border: 1px solid transparent;
19-
border-left-width:7px;
19+
border-left-width:15px;
2020
margin:1.5em 0;
2121
position:relative;
2222

chuckcss/components/modals.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ body.opened-modal {
110110

111111
&:after,
112112
&:before {
113-
._inline;
113+
display:inline-block;
114114
content:' ';
115115
width:19px;
116116
height:3px;

chuckcss/core/base.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ body {
2727
// Affix - Override Bootstrap CSS
2828
&.affix { position:relative; }
2929
}
30+
3031
div,dl,dd,dt,p,ul,li,ol {
3132
._reset;
3233
list-style:none;

0 commit comments

Comments
 (0)