Skip to content

Commit 556a8a8

Browse files
refactored helpers
1 parent b1431fe commit 556a8a8

40 files changed

Lines changed: 549 additions & 329 deletions

src/Utilities/_config/_specs.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/////////////////////////////////////////////////////////
2+
/// PUNICA CSS > UTILITIES : HELPERS > SPECS
3+
/////////////////////////////////////////////////////////
4+
$specs: (
5+
"spaces" : (0,5,10,15,20,30,40,50,75,100,125,150,175,200), // padding and margin
6+
"font-weight" : (100,200,300,400,500,600,700,800,900),
7+
"borders" : (0,1,2,3,4,5), // border width
8+
"border-radius" : (2,4,8,10,12,14,16,500),
9+
"orders" : (1,2,3,4,5),
10+
"line-height" : (0,1,2,3,4,5),
11+
"z-index" : (-1,0,1,10,20,30,40,50,100,999,9999,99999)
12+
);
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
///
2+
/// Align Content
3+
///
4+
/// The align-content property specifies
5+
/// how flex lines are distributed along the
6+
/// cross axis in a flexbox container.
7+
///
8+
$align-content: (
9+
// class name, value
10+
("align-content-stretch", stretch),
11+
("align-content-center", center),
12+
("align-content-start", flex-start),
13+
("align-content-end", flex-end),
14+
("align-content-between", space-between),
15+
("align-content-around", space-around),
16+
("align-content-evenly", space-evenly),
17+
("align-content-initial", initial),
18+
("align-content-inherit", inherit)
19+
);
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
///
2+
/// Align Items
3+
///
4+
/// The align-items property specifies the default alignment
5+
/// for items inside a flexbox or grid container.
6+
///
7+
$align-items: (
8+
// class name, value
9+
("align-items-baseline", baseline),
10+
("align-items-start", flex-start),
11+
("align-items-end", flex-end),
12+
("align-items-center", center),
13+
("align-items-stretch", stretch),
14+
("align-items-initial", initial),
15+
("align-items-inherit", inherit)
16+
);
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
///
2+
/// Align Self
3+
///
4+
/// The align-self property specifies the alignment
5+
/// in the block direction for the selected item
6+
/// inside a flexbox or grid container.
7+
///
8+
$align-self: (
9+
// class name, value
10+
("align-self-auto", auto),
11+
("align-self-baseline", baseline),
12+
("align-self-start", flex-start),
13+
("align-self-end", flex-end),
14+
("align-self-center", center),
15+
("align-self-stretch", stretch),
16+
("align-self-initial", initial),
17+
("align-self-inherit", inherit)
18+
);
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
///
2+
/// Backdrop Filters
3+
/// The backdrop-filter property is used to apply
4+
/// a graphical effect to the area behind an element.
5+
///
6+
$backdrop-blur-ranges: (
7+
// (values, suffixes)
8+
(4px,4)(7px,7)(10px,10)(12px,12)(16px,16)(20px,20)
9+
);
10+
$backdrop-blur: (
11+
// class name (prefix), filter function
12+
("backdrop-blur-", "blur"),
13+
);
14+
$backdrop-filter-ranges: (
15+
// (values, suffixes)
16+
(0,0)(.25,25)(.5,50)(.75,75)(1,100)(1.25,125)(1.5,150)(1.75,175)(2,200)
17+
);
18+
$backdrop-filters: (
19+
// class name (prefix), filter function
20+
("backdrop-brightness-", "brightness"),
21+
("backdrop-contrast-", "contrast"),
22+
//("backdrop-shadow-", "drop-shadow"),
23+
("backdrop-grayscale-", "grayscale"),
24+
//("backdrop-hue-", "hue-rotate"),
25+
("backdrop-invert-", "invert"),
26+
("backdrop-opacity-", "opacity"),
27+
("backdrop-saturate-", "saturate"),
28+
("backdrop-sepia-", "sepia"),
29+
);
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
///
2+
/// Bg Colors
3+
///
4+
$bg-colors: (
5+
// class name, value
6+
("bg-color", theme('color', 'background')),
7+
("bg-grey", theme('color', 'grey')),
8+
("bg-secondary", theme('color', 'secondary')),
9+
("bg-white", white),
10+
("bg-black", black),
11+
("bg-dark", theme('color', 'dark')),
12+
("bg-primary", theme('color', 'primary')),
13+
("bg-success", theme('color', 'success')),
14+
("bg-warning", theme('color', 'warning')),
15+
("bg-error", theme('color', 'error'))
16+
);
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
///
2+
/// Border Radius
3+
///
4+
$border-radius: (
5+
// class name (prefix), property
6+
"radius-": "border-radius"
7+
);
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
///
2+
/// Border Styles
3+
///
4+
$border-styles: (
5+
// class name, value
6+
("border-solid", solid),
7+
("border-dashed", dashed),
8+
("border-dotted", dotted),
9+
("border-double", double),
10+
("border-groove", groove),
11+
("border-ridge", ridge)
12+
);

src/Utilities/_config/border.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
///
2+
/// Borders (width)
3+
///
4+
$borders:(
5+
// class name (prefix), property
6+
("border-", "border-width")
7+
("border-top-", "border-top-width")
8+
("border-right-", "border-right-width")
9+
("border-bottom-", "border-bottom-width")
10+
("border-left-", "border-left-width")
11+
);

src/Utilities/_config/cursors.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
///
2+
/// Cursors
3+
///
4+
$cursors: (
5+
// class name, value
6+
("cursor-alias", alias),
7+
("cursor-default", default),
8+
("cursor-grab", grab),
9+
("cursor-help", help),
10+
("cursor-move", move),
11+
("cursor-pointer", pointer),
12+
("cursor-wait", wait),
13+
("cursor-zoom-in", zoom-in),
14+
("cursor-zoom-out", zoom-out)
15+
);

0 commit comments

Comments
 (0)