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

Commit

Permalink
ChuckCSS v3.0.0 - Make big changes - update normalize and change gris…
Browse files Browse the repository at this point in the history
… selectors
  • Loading branch information
ALPIXELMaiki committed Dec 2, 2016
1 parent 01c8454 commit adc5e55
Show file tree
Hide file tree
Showing 30 changed files with 1,208 additions and 2,085 deletions.
31 changes: 1 addition & 30 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,32 +38,6 @@ gulp.task('chuckcss_less', function() {
});


/*
* BOOTSTRAP OVERRIDE
*/
gulp.task('chuckcss_minify_bootstrap', function() {
gulp.src('chuckcss/bootstrap/bootstrap-override.less')
.pipe(less())
.pipe(cssnano({
'postcss-minify-font-values': true
}))
.pipe(autoprefixer({
browsers:"> 1%, last 2 versions, Safari >= 8"
}))
.pipe(rename({basename: 'bootstrap-override', suffix: '.min'}))
.pipe(gulp.dest('dist/'));
});
gulp.task('chuckcss_bootstrap', function() {
gulp.src('chuckcss/bootstrap/bootstrap-override')
.pipe(less())
.pipe(autoprefixer({
browsers:"> 1%, last 2 versions, Safari >= 8"
}))
.pipe(rename({basename: 'bootstrap-override'}))
.pipe(gulp.dest('dist/'));
});


/*
* PRINT FILE
*/
Expand All @@ -83,13 +57,10 @@ gulp.task('chuckcss_print', function() {
gulp.task('watch', function() {
gulp.watch('chuckcss/**/*.less', ['chuckcss_minify_less', 'chuckcss_less']);
gulp.watch('chuckcss/print.less', ['chuckcss_print']);
gulp.watch('chuckcss/bootstrap/**/*.less', ['chuckcss_bootstrap', 'chuckcss_minify_bootstrap']);
});

gulp.task('default', [
'chuckcss_less',
'chuckcss_minify_less',
'chuckcss_print',
'chuckcss_bootstrap',
'chuckcss_minify_bootstrap'
'chuckcss_print'
]);
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chuckcss",
"version": "2.0.3",
"version": "3.0.0",
"description": "Responsive CSS framework based on Flexbox grids compiled with LESS and Autoprefixer",
"authors": {
"name": "Mickael SURREL <ALPIXEL>",
Expand Down
15 changes: 0 additions & 15 deletions chuckcss/bootstrap/alerts.less

This file was deleted.

11 changes: 0 additions & 11 deletions chuckcss/bootstrap/badges.less

This file was deleted.

9 changes: 0 additions & 9 deletions chuckcss/bootstrap/blockquotes.less

This file was deleted.

16 changes: 0 additions & 16 deletions chuckcss/bootstrap/bootstrap-override.less

This file was deleted.

11 changes: 0 additions & 11 deletions chuckcss/bootstrap/modals.less

This file was deleted.

7 changes: 6 additions & 1 deletion chuckcss/components/badges.less
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

span.badge {
._inline;
display:inline-block;
position:relative;
top:-1px;
background-color:@gray-da;
Expand All @@ -24,6 +24,11 @@ span.badge {
min-width:20px;
vertical-align:baseline;

div &,
p & {
margin:0 5px;
}

i {
&:before {
._reset;
Expand Down
55 changes: 28 additions & 27 deletions chuckcss/components/grids.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,51 +15,52 @@
.columns {
display:flex;
flex-wrap:wrap;
flex-direction:row;
margin:0 -@cols-gutter/2;

&.cc {
&-no-multiligne {flex-wrap:nowrap}
&-reverse{flex-direction:row-reverse}
&-justify {
&-starting {justify-content:flex-start}
&-ending {justify-content:flex-end}
&-centering {justify-content:center}
&-spacing {justify-content:space-between}
&-equal-spacing {justify-content:space-around}
&-start {justify-content:flex-start}
&-end {justify-content:flex-end}
&-center {justify-content:center}
&-space-between {justify-content:space-between}
&-space-around {justify-content:space-around}
}
&-align {
&-start {align-items:flex-start}
&-end {align-items:flex-end}
&-center {align-items:center}
&-baseline {align-items:baseline}
&-stretch {align-items:stretch}
}
&-no-gutter {
margin:0;
.column {
& > * {
margin:@cols-ma-top 0 @cols-ma-bottom;
}
}
&-gutter {
.column {
& > * {
margin:@cols-ma-top @cols-gutter/2 @cols-ma-bottom;
}
}
&-animated {
.column {
._transition;
}
}
&-masonry {
display:block;
margin:0;
column-gap: @cols-masonry-gap;

&.cc-no-gutter .column,
.column {
._inline;
&.cc-no-gutter > *,
& > * {
display:inline-block;
width:100%;
max-width:100%;
flex:none;
margin:@cols-masonry-gap/2 0;
}
}
&-spaceless {
&>.column {
& > * {
margin-top:0;
margin-bottom:0;
}
Expand All @@ -68,15 +69,14 @@



.column {
& > * {
._reset;
padding:@cols-pa;
margin:@cols-ma-top @cols-gutter/2 @cols-ma-bottom;
flex:1 1 0%;

/* Nested columns */
&.columns {
flex :1;
padding:@cols-gutter @cols-gutter/2;

&.cc-no-gutter {
Expand Down Expand Up @@ -112,6 +112,7 @@
&-bottom {align-self:flex-end}
&-center {align-self:center}
&-stretch {align-self:stretch}
&-baseline {align-self:baseline}
}
}
&-w-auto {
Expand All @@ -123,8 +124,8 @@

/* TABLET rules */
._tablet({
&.cc-gutter .column.cc,
.column.cc {
&.cc-gutter > *.cc,
& > *.cc {
&-offset-0-t,
&-no-offset-t {
margin-left: @cols-gutter/2;
Expand All @@ -139,8 +140,8 @@
}
}

&.cc-no-gutter .column.cc-offset-0-t,
&.cc-no-gutter .column.cc-no-offset-t {
&.cc-no-gutter > *.cc-offset-0-t,
&.cc-no-gutter > *.cc-no-offset-t {
margin-left:0;
}
});
Expand All @@ -149,8 +150,8 @@
/* PHONE rules */
._phone({

&.cc-gutter .column.cc,
.column.cc {
&.cc-gutter > *.cc,
& > *.cc {
&-offset-0-s,
&-no-offset-s {
margin-left: @cols-gutter/2;
Expand All @@ -165,8 +166,8 @@
}
}

&.cc-no-gutter .column.cc-offset-0-s,
&.cc-no-gutter .column.cc-no-offset-s {
&.cc-no-gutter > *.cc-offset-0-s,
&.cc-no-gutter > *.cc-no-offset-s {
margin-left:0;
}
});
Expand Down
2 changes: 1 addition & 1 deletion chuckcss/components/messages.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
.message {
padding: 0.5em 1em;
border: 1px solid transparent;
border-left-width:7px;
border-left-width:15px;
margin:1.5em 0;
position:relative;

Expand Down
2 changes: 1 addition & 1 deletion chuckcss/components/modals.less
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ body.opened-modal {

&:after,
&:before {
._inline;
display:inline-block;
content:' ';
width:19px;
height:3px;
Expand Down
1 change: 1 addition & 0 deletions chuckcss/core/base.less
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ body {
// Affix - Override Bootstrap CSS
&.affix { position:relative; }
}

div,dl,dd,dt,p,ul,li,ol {
._reset;
list-style:none;
Expand Down
Loading

0 comments on commit adc5e55

Please sign in to comment.