pico/scss/_settings.scss

126 lines
2.9 KiB
SCSS
Raw Normal View History

2022-10-22 15:39:36 +07:00
@use "sass:map";
2022-10-23 10:47:50 +07:00
// Settings
2019-11-27 15:31:49 +07:00
//
2022-10-22 13:11:51 +07:00
// Prefix for CSS variables
$css-var-prefix: "pico-" !default;
2022-10-23 10:47:50 +07:00
// Define the root element used to target <header>, <main>, <footer>
// with $enable-semantic-container and $enable-responsive-spacings
$semantic-root-element: "body" !default;
// Enable <header>, <main>, <footer> inside $semantic-root-element as containers
2019-11-27 15:31:49 +07:00
$enable-semantic-container: false !default;
2022-10-23 10:47:50 +07:00
// Enable a centered viewport for <header>, <main>, <footer> inside $semantic-root-element
2019-11-27 15:31:49 +07:00
// Fluid layout if disabled
$enable-viewport: true !default;
// Enable responsive spacings for <header>, <main>, <footer>, <section>, <article>
// Fixed spacings if disabled
$enable-responsive-spacings: true !default;
// Enable responsive typography
2022-10-22 15:39:36 +07:00
// Fixed root element size (rem) if disabled
2019-11-27 15:31:49 +07:00
$enable-responsive-typography: true !default;
// Enable .classes
// .classless version if disabled
$enable-classes: true !default;
2021-07-02 16:54:41 +07:00
// Enable transitions
$enable-transitions: true !default;
2021-07-02 16:54:41 +07:00
// Enable overriding with !important
$enable-important: true !default;
2022-10-22 15:39:36 +07:00
// Breakpoints, viewports and root font size
$breakpoints: () !default;
$breakpoints: map.deep-merge(
(
2022-10-23 10:47:50 +07:00
// Small (landscape phones)
sm:
(
breakpoint: 576px,
viewport: 510px,
2023-02-13 20:19:54 +07:00
root-font-size: 106.25%,
2022-10-23 10:47:50 +07:00
),
2022-10-22 15:39:36 +07:00
// Medium (tablets)
2022-10-23 10:47:50 +07:00
md:
(
breakpoint: 768px,
viewport: 700px,
2023-02-13 20:19:54 +07:00
root-font-size: 112.5%,
2022-10-23 10:47:50 +07:00
),
2022-10-22 15:39:36 +07:00
// Large (desktops)
2022-10-23 10:47:50 +07:00
lg:
(
breakpoint: 992px,
viewport: 920px,
2023-02-13 20:19:54 +07:00
root-font-size: 118.75%,
2022-10-23 10:47:50 +07:00
),
2022-10-22 15:39:36 +07:00
// Extra large (large desktops)
2022-10-23 10:47:50 +07:00
xl:
(
breakpoint: 1200px,
viewport: 1130px,
2023-02-13 20:19:54 +07:00
root-font-size: 125%,
2022-10-23 10:47:50 +07:00
)
2022-10-22 15:39:36 +07:00
),
$breakpoints
);
2022-10-23 10:47:50 +07:00
// Modules to export
$modules: () !default;
$modules: map.merge(
(
// Theme
"themes/default": true,
// Layout
"layout/document": true,
"layout/landmarks": true,
"layout/container": true,
"layout/section": true,
"layout/grid": true,
"layout/scroller": true,
// Content
"content/link": true,
"content/typography": true,
"content/embedded": true,
"content/button": true,
"content/table": true,
"content/code": true,
"content/miscs": true,
// Forms
"forms/basics": true,
"forms/checkbox-radio-switch": true,
"forms/input-color": true,
"forms/input-date": true,
"forms/input-file": true,
"forms/input-range": true,
"forms/input-search": true,
// Components
"components/accordion": true,
"components/card": true,
"components/dropdown": true,
"components/loading": true,
"components/modal": true,
"components/nav": true,
"components/progress": true,
"components/tooltip": true,
// Utilities
"utilities/accessibility": true,
"utilities/reduce-motion": true
),
$modules
);
2022-12-26 13:38:05 +07:00
// Shortcut for CSS vars prefix
2022-10-22 13:11:51 +07:00
$✨: --#{$css-var-prefix};