first commit
This commit is contained in:
52
wp-content/themes/aac/css/_mixins.scss
Normal file
52
wp-content/themes/aac/css/_mixins.scss
Normal file
@@ -0,0 +1,52 @@
|
||||
$container-max-widths: (
|
||||
sm: 540px,
|
||||
md: 720px,
|
||||
lg: 960px,
|
||||
xl: 1140px,
|
||||
xxl: 1370px,
|
||||
);
|
||||
|
||||
$breakpoints: (
|
||||
sm: 576px,
|
||||
md: 768px,
|
||||
lg: 992px,
|
||||
xl: 1200px,
|
||||
xxl: 1400px,
|
||||
);
|
||||
|
||||
@mixin respond-above($breakpoint) {
|
||||
@if map-has-key($breakpoints, $breakpoint) {
|
||||
$breakpoint-value: map-get($breakpoints, $breakpoint);
|
||||
@media (min-width: $breakpoint-value) {
|
||||
@content;
|
||||
}
|
||||
} @else {
|
||||
@warn 'Invalid breakpoint: #{$breakpoint}.';
|
||||
}
|
||||
}
|
||||
@mixin respond-below($breakpoint) {
|
||||
@if map-has-key($breakpoints, $breakpoint) {
|
||||
$breakpoint-value: map-get($breakpoints, $breakpoint);
|
||||
@media (max-width: ($breakpoint-value - 1)) {
|
||||
@content;
|
||||
}
|
||||
} @else {
|
||||
@warn 'Invalid breakpoint: #{$breakpoint}.';
|
||||
}
|
||||
}
|
||||
@mixin respond-between($lower, $upper) {
|
||||
@if map-has-key($breakpoints, $lower) and map-has-key($breakpoints, $upper) {
|
||||
$lower-breakpoint: map-get($breakpoints, $lower);
|
||||
$upper-breakpoint: map-get($breakpoints, $upper);
|
||||
@media (min-width: $lower-breakpoint) and (max-width: ($upper-breakpoint - 1)) {
|
||||
@content;
|
||||
}
|
||||
} @else {
|
||||
@if (map-has-key($breakpoints, $lower) == false) {
|
||||
@warn 'Your lower breakpoint was invalid: #{$lower}.';
|
||||
}
|
||||
@if (map-has-key($breakpoints, $upper) == false) {
|
||||
@warn 'Your upper breakpoint was invalid: #{$upper}.';
|
||||
}
|
||||
}
|
||||
}
|
||||
155
wp-content/themes/aac/css/_reset.scss
Normal file
155
wp-content/themes/aac/css/_reset.scss
Normal file
@@ -0,0 +1,155 @@
|
||||
// reset everything
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0 solid transparent;
|
||||
}
|
||||
|
||||
// prevent iOS font size change
|
||||
html {
|
||||
-webkit-text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
// reset body line-height
|
||||
body {
|
||||
min-height: 100vh;
|
||||
line-height: 1;
|
||||
text-rendering: optimizeSpeed;
|
||||
}
|
||||
|
||||
// all media elements set to block and full width
|
||||
img,
|
||||
svg,
|
||||
video,
|
||||
canvas,
|
||||
audio,
|
||||
iframe,
|
||||
embed,
|
||||
object {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
// inherit fonts for inputs and buttons
|
||||
input,
|
||||
button,
|
||||
textarea,
|
||||
select {
|
||||
font: inherit;
|
||||
line-height: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
// collapse table
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
// assign button hover state
|
||||
button,
|
||||
[role='button'] {
|
||||
cursor: pointer;
|
||||
background-color: transparent;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
&:focus {
|
||||
outline: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// reset anchor style
|
||||
a {
|
||||
cursor: pointer;
|
||||
color: inherit;
|
||||
text-decoration: inherit;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
|
||||
// reset heading style
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-size: inherit;
|
||||
font-weight: inherit;
|
||||
}
|
||||
|
||||
// reset list style
|
||||
ol,
|
||||
ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
// reset text input style
|
||||
[type='date'],
|
||||
[type='datetime'],
|
||||
[type='datetime-local'],
|
||||
[type='email'],
|
||||
[type='month'],
|
||||
[type='number'],
|
||||
[type='password'],
|
||||
[type='search'],
|
||||
[type='tel'],
|
||||
[type='text'],
|
||||
[type='time'],
|
||||
[type='url'],
|
||||
[type='week'],
|
||||
textarea,
|
||||
select {
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none;
|
||||
width: 100%;
|
||||
&:focus {
|
||||
outline: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// reset firefox placeholder opacity
|
||||
::-moz-placeholder {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
// reset textarea style
|
||||
textarea {
|
||||
// move the label to the top
|
||||
vertical-align: top;
|
||||
|
||||
// turn off scroll bars in IE unless needed
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
// reset checkbox and radio style
|
||||
[type='checkbox'],
|
||||
[type='radio'] {
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none;
|
||||
&:focus {
|
||||
outline: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// remove all animations, transitions and smooth scroll for people that prefer not to see them
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
html:focus-within {
|
||||
scroll-behavior: auto;
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
scroll-behavior: auto !important;
|
||||
}
|
||||
}
|
||||
5006
wp-content/themes/aac/css/custom.css
Normal file
5006
wp-content/themes/aac/css/custom.css
Normal file
File diff suppressed because it is too large
Load Diff
1
wp-content/themes/aac/css/custom.css.map
Normal file
1
wp-content/themes/aac/css/custom.css.map
Normal file
File diff suppressed because one or more lines are too long
5184
wp-content/themes/aac/css/custom.scss
Normal file
5184
wp-content/themes/aac/css/custom.scss
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user