Skip to content

Commit 10358c4

Browse files
b211
1 parent e36b871 commit 10358c4

6 files changed

Lines changed: 66 additions & 13 deletions

File tree

src/Modules/Elements/Grid/Grid.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
.#{class('grid', 'row')} {
2525
display : grid;
2626
grid-gap : elements('grid', 'gap');
27-
grid-template-columns: repeat($column-size, 1fr);
27+
grid-template-columns: repeat($column-size, minmax(0, 1fr));
2828
&> [class^="#{class('grid', 'column')}"] {
2929
height : fit-content;
3030
padding : elements('grid', 'columns', 'padding');

src/Modules/Utilities/helpers.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
@include utils_with_specs(utils('margin'));
5151
@include set_sides(utils('margin'));
5252
@include set_utils('object-fit');
53+
@include set_utils('object-position', true);
5354
@include set_utils('order');
5455
@include set_utils('outline-color', true);
5556
@include set_utils('outline-offset');
@@ -68,6 +69,7 @@
6869
@include set_utils('text-transform');
6970
@include set_utils('text-wrap');
7071
@include set_utils('user-select');
72+
@include set_utils('vertical-align');
7173
@include set_utils('width', true);
7274
@include set_utils('z-index');
7375
@include other_helpers();

src/Modules/Utilities/index.scss

Lines changed: 51 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -894,19 +894,50 @@ $helpers: (
894894
/// in a variety of ways; such as "preserve that aspect ratio"
895895
/// or "stretch up and take up as much space as possible".
896896
///
897-
/// @example fit-cover
898-
/// @example fit-scale-down
897+
/// @example object-cover
898+
/// @example object-scale-down
899899
///
900900
'object-fit': (
901901
'enabled' : true, // true or false
902902
'property' : 'object-fit', // css property name (don't change it !)
903-
'prefix' : 'fit-', // prefix of class name
903+
'prefix' : 'object-', // prefix of class name
904904
'specificity': !important, // or null
905905
'unit' : null, // length units (px, rem, em, %, vh, vw etc)
906906
'specs' : null, // for extra variables
907907
'values' : (fill, contain, cover, none, scale-down)
908908
),
909909
///
910+
/// Object Position
911+
///
912+
/// The object-position property is used together
913+
/// with object-fit to specify how an <img> or <video>
914+
/// should be positioned with x/y coordinates inside
915+
/// its "own content box".
916+
///
917+
/// @example object-left
918+
/// @example object-left-bottom
919+
///
920+
'object-position': (
921+
'enabled' : true, // true or false
922+
'property' : 'object-position', // css property name (don't change it !)
923+
'prefix' : 'object-', // prefix of class name
924+
'specificity': !important, // or null
925+
'unit' : null, // length units (px, rem, em, %, vh, vw etc)
926+
'specs' : null, // for extra variables
927+
'values' : (
928+
// class name (suffix), value
929+
("bottom", bottom),
930+
("center", center),
931+
("left", left),
932+
("left-bottom", left bottom),
933+
("left-top", left top),
934+
("right", right),
935+
("right-bottom", right bottom),
936+
("right-top", right top),
937+
("top", top)
938+
)
939+
),
940+
///
910941
/// Order
911942
///
912943
/// The order property specifies the order
@@ -1260,6 +1291,23 @@ $helpers: (
12601291
'values' : (none, auto, text, all)
12611292
),
12621293
///
1294+
/// Vertical Align
1295+
///
1296+
/// The vertical-align property sets
1297+
/// the vertical alignment of an element.
1298+
///
1299+
/// @example align-middle
1300+
///
1301+
'vertical-align': (
1302+
'enabled' : true, // true or false
1303+
'property' : 'vertical-align', // css property name (don't change it !)
1304+
'prefix' : 'align-', // prefix of class name
1305+
'specificity': !important, // or null
1306+
'unit' : null, // length units (px, rem, em, %, vh, vw etc)
1307+
'specs' : null, // for extra variables
1308+
'values' : (baseline, top, middle, bottom, text-top, text-bottom, sub, super)
1309+
),
1310+
///
12631311
/// Width
12641312
///
12651313
/// The width property sets the width of an element.

src/Modules/Utilities/mixins.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,12 @@
151151
$prefix : utils('border', 'prefix');
152152

153153
@if $enabled {
154-
@each $class, $border in $borders {
155-
.#{$prefix}-x-#{$class} {
154+
@each $suffix, $border in $borders {
155+
.#{$prefix}-x-#{$suffix} {
156156
border-left-width: #{$border}#{$unit} !important;
157157
border-right-width: #{$border}#{$unit} !important;
158158
}
159-
.#{$prefix}-y-#{$class} {
159+
.#{$prefix}-y-#{$suffix} {
160160
border-top-width: #{$border}#{$unit} !important;
161161
border-bottom-width: #{$border}#{$unit} !important;
162162
}

src/options.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -921,8 +921,8 @@ $options: (
921921
'align-items' : center,
922922
'justify-content' : center,
923923
'font-family' : inherit,
924-
'font-size' : 1.055em,
925-
'font-weight' : bold,
924+
'font-size' : 1rem,
925+
'font-weight' : normal,
926926
'line-height' : 1,
927927
'text-align' : center,
928928
'text-decoration' : none,

src/punica.scss

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@
77
@use "Core/Global/Helpers" as *;
88
@use "themes" as get;
99

10-
/// ======================================================
10+
////////////////////////////////////////////////////////////////
11+
///-------------------------------------------------------------
1112
$active-theme: default;
12-
/// ======================================================
13-
$theme-name: if(map.has-key(get.$themes, $active-theme), $active-theme, theme-not-found($active-theme));
13+
///-------------------------------------------------------------
14+
////////////////////////////////////////////////////////////////
15+
$theme-name: if(map.has-key(get.$themes, $active-theme),
16+
$active-theme, theme-not-found($active-theme));
1417
$theme : map.get(get.$themes, $theme-name) !global;
15-
/// ======================================================
18+
////////////////////////////////////////////////////////////////
1619

1720
/*!
1821
* Punica CSS Framework - #{theme('name')}

0 commit comments

Comments
 (0)