Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update angular #36

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/assets/sass/components/_structure.scss
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vinadoti utilizar a sintaxe SCSS para criação das classes

Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,16 @@ $block-spacing-y: 2.5rem;
padding-bottom: $block-spacing-y;
}
}

.full-height {
min-height: 100vh;
}

.full-width {
width: 100%;
}

.full-height-width {
min-height: 100vh;
width: 100%;
}
28 changes: 19 additions & 9 deletions src/assets/sass/frontend.scss
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
@import "bootstrap/scss/mixins/banner";
@include bsBanner("");

// 1. Include functions first (so you can manipulate colors, SVGs, calc, etc)
// scss-docs-start import-stack
// Configuration
@import "bootstrap/scss/functions";

// Custom fonts
@import "frontend/fonts";

// 2. Include any default variable overrides here
@import "frontend/colors-variables";
// Override variables
@import "frontend/tokens/color-tokens";
@import "frontend/tokens/design-tokens";
@import "frontend/tokens/font-tokens";
@import "frontend/variables";
@import "frontend/variables-dark";

// 3. Include remainder of required Bootstrap stylesheets
@import "bootstrap/scss/variables";
@import "bootstrap/scss/variables-dark";

// Override maps
@import "frontend/maps";
@import "bootstrap/scss/maps";

@import "bootstrap/scss/mixins";
@import "bootstrap/scss/utilities";
@import "frontend/utilities";

// 4. Include any optional Bootstrap components as you like
// Layout & components
@import "bootstrap/scss/root";
@import "bootstrap/scss/reboot";
@import "bootstrap/scss/type";
Expand Down Expand Up @@ -52,10 +58,15 @@
@import "bootstrap/scss/offcanvas";
@import "bootstrap/scss/placeholders";

// 5. Add additional custom code here
// Helpers
@import "bootstrap/scss/helpers";

// 5.1 Common (global) styles
// Utilities
@import "bootstrap/scss/utilities/api";

// Custom
@import "frontend/reboot";
@import "frontend/root";
@import "frontend/typography";
@import "components/animations";
@import "components/card";
Expand All @@ -66,4 +77,3 @@
@import "components/structure";
@import "components/videos";
@import "styles";

5 changes: 5 additions & 0 deletions src/assets/sass/frontend/_maps.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
$theme-colors: map-merge($theme-colors, $custom-theme-colors);

$theme-colors-rgb: map-loop($theme-colors, to-rgb, "$value");

$utilities-colors: map-merge($theme-colors-rgb, $custom-utilities-colors);
16 changes: 16 additions & 0 deletions src/assets/sass/frontend/_reboot.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
section {
position: relative;
}

textarea {
resize: none;
}

p:last-child {
margin-bottom: 0;
}

a {
outline: none !important;
transition: $transition-base;
}
9 changes: 9 additions & 0 deletions src/assets/sass/frontend/_root.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
:root {
@each $breakpoint, $value in $grid-breakpoints {
--#{$variable-prefix}breakpoint-#{$breakpoint}: #{$value};
}

@each $color, $value in $custom-utilities-colors {
--bs-#{$color}-rgb: #{$value};
}
}
116 changes: 43 additions & 73 deletions src/assets/sass/frontend/_utilities.scss
Original file line number Diff line number Diff line change
@@ -1,144 +1,114 @@
$utilities: map-merge(
$utilities,
(
"fill": (
'fill': (
property: fill,
state: hover,
values: map-merge(
$theme-colors,
(
"inherit": currentColor,
'reset': currentColor,
),
),
),
"stroke": (
'stroke': (
property: stroke,
state: hover,
values: $theme-colors
),
"font-size": map-merge(
map-get($utilities, "font-size"),
(
responsive: true,
values: map-merge(
map-get(map-get($utilities, "font-size"), "values"),
(
"small": $font-size-sm,
"base": $font-size-base,
"large": $font-size-lg,
),
),
),
),
"line-height": map-merge(
map-get($utilities, "line-height"),
(
values: map-merge(
map-get(map-get($utilities, "line-height"), "values"),
(
"0": 0,
"0q": .25,
"0h": .5,
"0hq": .75,
"1": 1,
"110p": 110%
),
),
),
),
"letter-spacing": (
'letter-spacing': (
property: letter-spacing,
class: ls,
values: (
"0": 0,
"1": 1px,
"2": 2px,
"3": 3px,
"4": 4px,
'0': 0,
'1': 1px,
'2': 2px,
'3': 3px,
'4': 4px,
)
),
"opacity-h": map-merge(
map-get($utilities, "opacity"),
'opacity': map-merge(
map-get($utilities, 'opacity'),
(
responsive: true,
state: hover,
),
),
"z-index": (
property: z-index,
values: (
"n3": -3,
"n2": -2,
"n1": -1,
"0": 0,
"1": 1,
"2": 2,
"3": 3,
)
),
"width": map-merge(
map-get($utilities, "width"),
'width': map-merge(
map-get($utilities, 'width'),
(
responsive: true,
values: $sizing-values
),
),
"max-width": map-merge(
map-get($utilities, "max-width"),
'max-width': map-merge(
map-get($utilities, 'max-width'),
(
responsive: true,
values: $sizing-values
),
),
"height": map-merge(
map-get($utilities, "height"),
'height': map-merge(
map-get($utilities, 'height'),
(
responsive: true,
values: $sizing-values
),
),
"max-height": map-merge(
map-get($utilities, "max-height"),
'max-height': map-merge(
map-get($utilities, 'max-height'),
(
responsive: true,
values: $sizing-values
),
),
"position": map-merge(
map-get($utilities, "position"),
'position': map-merge(
map-get($utilities, 'position'),
(
responsive: true,
),
),
'translate-middle': map-merge(
map-get($utilities, 'translate-middle'),
(
responsive: true,
),
),
"translate-middle": map-merge(
map-get($utilities, "translate-middle"),
'top': map-merge(
map-get($utilities, 'top'),
(
responsive: true,
),
),
"top": map-merge(
map-get($utilities, "top"),
'end': map-merge(
map-get($utilities, 'end'),
(
responsive: true,
),
),
"end": map-merge(
map-get($utilities, "end"),
'bottom': map-merge(
map-get($utilities, 'bottom'),
(
responsive: true,
),
),
"bottom": map-merge(
map-get($utilities, "bottom"),
'start': map-merge(
map-get($utilities, 'start'),
(
responsive: true,
),
),
"start": map-merge(
map-get($utilities, "start"),
'font-size': map-merge(
map-get($utilities, 'font-size'),
(
responsive: true,
),
),
'color': map-merge(
map-get($utilities, 'color'),
(
state: hover,
),
),
)
);
Loading