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

Commit 83a4689

Browse files
committed
v3.3.1 - see changelog file
1 parent 2be7ecb commit 83a4689

File tree

6 files changed

+3297
-82
lines changed

6 files changed

+3297
-82
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# ChuckCSS Changelog
22

3+
## 3.3.1
4+
* Added :
5+
* Responsive texts aligments : class `cc-txt-{aligment}-{breakpoint}` (mobile-first respected)
6+
* Responsive padding and margin for block elements are completed : class `cc-pa-{breakpoint}`, `cc-ma-{breakpoint}`, `cc-pa{side}-{breakpoint}`, `cc-ma{side}-{breakpoint}` (mobile-first respected)
37

48
## 3.3.0
59
* Changed : changed default font-size for titles (Hn) in settings file (now in `rem` units)

chuckcss/core/generator.less

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
._generatePercentWidth
1111
._generateFontSize
1212
._generateFontWeight
13+
._generateTextsAligments
1314
*/
1415

1516
/* *****
@@ -317,6 +318,21 @@
317318
._generatePaddingMarginClass(@breakpoint:~'',@iterator:0) when(@iterator <= 100) {
318319

319320
.cc {
321+
&-pa@{breakpoint} {
322+
padding:@helper-pa;
323+
}
324+
&-pat@{breakpoint} {
325+
padding-top:@helper-pat;
326+
}
327+
&-par@{breakpoint} {
328+
padding-right:@helper-par;
329+
}
330+
&-pab@{breakpoint} {
331+
padding-bottom:@helper-pab;
332+
}
333+
&-pal@{breakpoint} {
334+
padding-left:@helper-pal;
335+
}
320336
&-pa-@{iterator}@{breakpoint} {
321337
padding:unit(@iterator,px);
322338
}
@@ -332,6 +348,21 @@
332348
&-pal-@{iterator}@{breakpoint} {
333349
padding-left:unit(@iterator,px);
334350
}
351+
&-ma@{breakpoint} {
352+
margin:@helper-ma;
353+
}
354+
&-mat@{breakpoint} {
355+
margin-top:@helper-mat;
356+
}
357+
&-mar@{breakpoint} {
358+
margin-right:@helper-mar;
359+
}
360+
&-mab@{breakpoint} {
361+
margin-bottom:@helper-mab;
362+
}
363+
&-mal@{breakpoint} {
364+
margin-left:@helper-mal;
365+
}
335366
&-ma-@{iterator}@{breakpoint} {
336367
margin:unit(@iterator,px);
337368
}
@@ -445,4 +476,32 @@
445476
._media-xs-up({._generateFontWeight(-s);});
446477
._media-s-up({._generateFontWeight(-m);});
447478
._media-m-up({._generateFontWeight(-l);});
448-
._media-l-up({._generateFontWeight(-xl);});
479+
._media-l-up({._generateFontWeight(-xl);});
480+
481+
482+
483+
/* *****
484+
@name : ._generateTextsAligments
485+
@description : Generate texts aligments
486+
***** */
487+
._generateTextsAligments(@breakpoint:~'') {
488+
.cc {
489+
&-txt-center@{breakpoint} {
490+
text-align: center;
491+
}
492+
&-txt-left@{breakpoint} {
493+
text-align: left;
494+
}
495+
&-txt-right@{breakpoint} {
496+
text-align: right;
497+
}
498+
&-txt-justify@{breakpoint} {
499+
text-align: justify;
500+
}
501+
}
502+
}
503+
._generateTextsAligments; // Launch _generateFontWeight
504+
._media-xs-up({._generateTextsAligments(-s);});
505+
._media-s-up({._generateTextsAligments(-m);});
506+
._media-m-up({._generateTextsAligments(-l);});
507+
._media-l-up({._generateTextsAligments(-xl);});

chuckcss/core/helpers.less

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,6 @@
1212
margin-right:auto;
1313
}
1414

15-
// Texts
16-
&-txt {
17-
&-left {text-align:left;}
18-
&-center {text-align:center;}
19-
&-right {text-align:right;}
20-
&-justify {text-align:justify;}
21-
22-
// /!\ colors and bg-colors are generated in generators.less file
23-
// /!\ paddings and margins are generated in generators.less file
24-
}
25-
26-
// Paddings
27-
&-pa {
28-
padding:@helper-pa;
29-
&t {padding-top:@helper-pat;}
30-
&r {padding-right:@helper-par;}
31-
&b {padding-bottom:@helper-pab;}
32-
&l {padding-left:@helper-pal;}
33-
}
34-
35-
// Margins
36-
&-ma {
37-
margin:@helper-ma;
38-
&t {margin-top:@helper-mat;}
39-
&r {margin-right:@helper-mar;}
40-
&b {margin-bottom:@helper-mab;}
41-
&l {margin-left:@helper-mal;}
42-
}
43-
4415

4516

4617
// Hidden elements on devices only

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy