VERSION 2.0

This commit is contained in:
WillJeynes
2024-05-26 22:01:24 +01:00
parent 3c7ad1f3a2
commit 2dbdc59345
255 changed files with 9100 additions and 1309 deletions
@@ -0,0 +1,43 @@
/* ==========================================================================
Accessibility Modules
========================================================================== */
/* Text meant only for screen readers */
.screen-reader-text,
.screen-reader-text span,
.screen-reader-shortcut {
position: absolute !important;
width: 1px;
height: 1px;
clip: rect(0, 0, 0, 0);
border: 0;
overflow: hidden;
&:focus {
display: block;
top: 5px;
left: 5px;
width: auto;
height: auto;
padding: 0.75em 1em;
clip: auto !important;
border-radius: 0.125em;
background-color: $base-color;
color: #fff;
font-weight: bold;
line-height: normal;
text-decoration: none;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
z-index: 100000;
}
}
.screen-reader-text:focus,
.screen-reader-shortcut:focus {
width: auto;
height: auto;
clip: auto !important;
text-decoration: none;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
z-index: 100000;
}
@@ -0,0 +1,62 @@
/* ==========================================================================
Alignment
========================================================================== */
.align-baseline { vertical-align: baseline !important; } /* Browser default */
.align-top { vertical-align: top !important; }
.align-middle { vertical-align: middle !important; }
.align-bottom { vertical-align: bottom !important; }
.align-text-bottom { vertical-align: text-bottom !important; }
.align-text-top { vertical-align: text-top !important; }
/*
Image Alignment
========================================================================== */
.align-center,
div.align-center,
a img.align-center {
display: block;
margin-right: auto;
margin-left: auto;
}
figure.align-center {
img {
display: block;
margin-right: auto;
margin-left: auto;
}
figcaption {
text-align: center;
}
}
.align-right,
a img.align-right {
margin-bottom: 1rem;
margin-left: 1rem;
float: right;
}
.align-left,
a img.align-left {
margin-right: 1rem;
margin-bottom: 1rem;
float: left;
}
/*
Sidebar Pusher
========================================================================== */
.is--pushed {
transform: translateX(1 * $sidebar-width);
transform-origin: right;
@include breakpoint($large) {
transform: translateX(1.5 * $sidebar-width);
}
}
@@ -0,0 +1,7 @@
//
// Clearfix
//
.clearfix {
@include clearfix();
}
@@ -0,0 +1,7 @@
/* ==========================================================================
Floats
========================================================================== */
.float-left { @include float-left; }
.float-right { @include float-right; }
.float-none { @include float-none; }
@@ -0,0 +1,28 @@
/* ==========================================================================
Text
========================================================================== */
/*
Alignment
========================================================================== */
.text-justify { text-align: justify !important; }
.text-nowrap { white-space: nowrap !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }
/*
Transformation
========================================================================== */
.text-lowercase { text-transform: lowercase !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-capitalize { text-transform: capitalize !important; }
.text-truncate { @include text-truncate; }
/*
Sizing
========================================================================== */
.small { font-size: 80%; }
@@ -0,0 +1,32 @@
/* ==========================================================================
Visibility
========================================================================== */
/* http://www.456bereastreet.com/archive/200711/screen_readers_sometimes_ignore_displaynone/ */
.is--hidden {
display: none;
visibility: hidden;
}
.is--visible {
display: block;
visibility: visible;
}
/* https://developer.yahoo.com/blogs/ydn/clip-hidden-content-better-accessibility-53456.html */
.visually-hidden {
position: absolute !important;
clip: rect(1px, 1px, 1px, 1px);
height: 1px !important;
width: 1px !important;
border: 0 !important;
overflow: hidden;
}
body:hover .visually-hidden a,
body:hover .visually-hidden input,
body:hover .visually-hidden button {
display: none !important;
}