mirror of
https://github.com/picocss/pico.git
synced 2025-04-27 19:46:14 -04:00
Finally stopped all the sass compile warnings, changed the tab-size to 2, and added responsive .row, .col-*, and .offset-* classes, using display:gid, the same way bootsrap-5 is set up for the .row, .com-* and .offset* classes.
This commit is contained in:
parent
84ed38efc9
commit
fe78285302
249 changed files with 59188 additions and 594 deletions
|
@ -1,4 +1,5 @@
|
|||
@use "sass:map";
|
||||
@use "sass:list";
|
||||
@use "../../colors";
|
||||
@use "settings";
|
||||
@use "utils";
|
||||
|
@ -30,7 +31,7 @@ $css-var-color-prefix: #{settings.$css-var-prefix}#{$color-property-name};
|
|||
@if map.get(settings.$utilities, "background-colors") {
|
||||
// Loop through color families
|
||||
@each $family, $colors in colors.$colors {
|
||||
@if index(map.get(settings.$palette, "color-families"), $family) {
|
||||
@if list.index(map.get(settings.$palette, "color-families"), $family) {
|
||||
$css-var-family-name: #{$css-var-color-prefix}-#{$family};
|
||||
$class-family-name: #{$background-color-property-name}-#{$family};
|
||||
|
||||
|
@ -52,7 +53,7 @@ $css-var-color-prefix: #{settings.$css-var-prefix}#{$color-property-name};
|
|||
|
||||
// Shades
|
||||
@else if
|
||||
index(map.get(settings.$palette, "shades"), $shade) and
|
||||
list.index(map.get(settings.$palette, "shades"), $shade) and
|
||||
map.get(settings.$palette, "enable-shades")
|
||||
{
|
||||
$value: $color-value;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
@use "sass:map";
|
||||
@use "sass:list";
|
||||
@use "../../colors";
|
||||
@use "settings";
|
||||
@use "utils";
|
||||
|
@ -11,7 +12,7 @@
|
|||
|
||||
// Loop through color families
|
||||
@each $family, $colors in colors.$colors {
|
||||
@if index(map.get(settings.$palette, "color-families"), $family) {
|
||||
@if list.index(map.get(settings.$palette, "color-families"), $family) {
|
||||
$css-var-family-name: #{$css-var-color-prefix}-#{$family};
|
||||
$class-family-name: #{$color-property-name}-#{$family};
|
||||
|
||||
|
@ -31,7 +32,7 @@
|
|||
|
||||
// Shades
|
||||
@else if
|
||||
index(map.get(settings.$palette, "shades"), $shade) and
|
||||
list.index(map.get(settings.$palette, "shades"), $shade) and
|
||||
map.get(settings.$palette, "enable-shades")
|
||||
{
|
||||
@if $enable-css-vars {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
@use "sass:map";
|
||||
@use "sass:list";
|
||||
@use "../../colors";
|
||||
@use "settings";
|
||||
@use "utils";
|
||||
|
@ -12,7 +13,7 @@
|
|||
:root {
|
||||
// Loop through color families
|
||||
@each $family, $colors in colors.$colors {
|
||||
@if index(map.get(settings.$palette, "color-families"), $family) {
|
||||
@if list.index(map.get(settings.$palette, "color-families"), $family) {
|
||||
$css-var-family-name: #{$css-var-color-prefix}-#{$family};
|
||||
|
||||
// Loop through colors
|
||||
|
@ -24,7 +25,7 @@
|
|||
|
||||
// Shades
|
||||
@else if
|
||||
index(map.get(settings.$palette, "shades"), $shade) and
|
||||
list.index(map.get(settings.$palette, "shades"), $shade) and
|
||||
map.get(settings.$palette, "enable-shades")
|
||||
{
|
||||
#{$css-var-family-name}-#{$shade}: #{utils.display-color($color-value)};
|
||||
|
|
|
@ -55,5 +55,9 @@
|
|||
|
||||
// Display color as RGB
|
||||
@function display-rgb($color) {
|
||||
@return string.unquote("rgb(" + color.channel($color, "red", $space: rgb) + ", " + color.channel($color, "green", $space: rgb) + ", " + color.channel($color, "blue", $space: rgb) + ")");
|
||||
@return string.unquote(
|
||||
"rgb(" + color.channel($color, "red", $space: rgb) + ", " +
|
||||
color.channel($color, "green", $space: rgb) + ", " +
|
||||
color.channel($color, "blue", $space: rgb) + ")"
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue