This commit is contained in:
tobi 2022-05-09 13:40:30 +02:00
commit 62bb4aebd3
64 changed files with 14672 additions and 0 deletions

View file

@ -0,0 +1,125 @@
///
/// Indivisible by Pixelarity
/// pixelarity.com | hello@pixelarity.com
/// License: pixelarity.com/license
///
/* Actions */
ul.actions {
cursor: default;
list-style: none;
margin-left: (_size(element-margin) * -0.5);
margin-top: (_size(element-margin) * -0.5);
padding-left: 0;
li {
display: inline-block;
margin: (_size(element-margin) * 0.5) 0 0 (_size(element-margin) * 0.5);
padding-left: 0;
vertical-align: middle;
&:last-child {
padding-right: 0;
}
}
&.stacked {
margin-top: 0;
margin-left: 0;
li {
display: block;
margin: 0;
padding: (_size(element-margin) * 0.75) 0 0 0;
position: relative;
&:first-child {
padding-top: 0;
}
> * {
margin-bottom: 0;
}
> .button {
min-width: 15em;
}
}
&.special {
li {
&:after {
background-color: _palette(border);
content: '';
display: block;
height: (_size(element-margin) * 0.75);
left: 50%;
position: absolute;
top: 100%;
width: 1px;
}
&:last-child {
&:after {
display: none;
}
}
}
}
}
@include breakpoint('<=small') {
&.stacked {
&.special {
li {
padding: (_size(element-margin) * 0.5) 0 0 0;
&:after {
height: (_size(element-margin) * 0.5);
}
}
}
}
}
&.animated {
&.spinY {
li {
@include vendor('perspective', '1000px');
a {
@include vendor('transition', (
'background-color #{_duration(transition)} ease',
'box-shadow #{_duration(transition)} ease',
'color #{_duration(transition)} ease',
'transform 0.5s ease-in'
));
&.active {
@include vendor('transform', 'rotateY(480deg)');
}
}
}
}
&.spinX {
li {
@include vendor('perspective', '1000px');
a {
@include vendor('transition', (
'background-color #{_duration(transition)} ease',
'box-shadow #{_duration(transition)} ease',
'color #{_duration(transition)} ease',
'transform 0.5s ease-in'
));
&.active {
@include vendor('transform', 'rotateX(480deg)');
}
}
}
}
}
}

View file

@ -0,0 +1,26 @@
///
/// Indivisible by Pixelarity
/// pixelarity.com | hello@pixelarity.com
/// License: pixelarity.com/license
///
/* Box */
.box {
border-radius: _size(border-radius);
border: solid 1px _palette(border);
margin-bottom: _size(element-margin);
padding: 1.5em;
> :last-child,
> :last-child > :last-child,
> :last-child > :last-child > :last-child {
margin-bottom: 0;
}
&.alt {
border: 0;
border-radius: 0;
padding: 0;
}
}

View file

@ -0,0 +1,142 @@
///
/// Indivisible by Pixelarity
/// pixelarity.com | hello@pixelarity.com
/// License: pixelarity.com/license
///
/* Button */
input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button {
@include vendor('appearance', 'none');
@include vendor('transition', (
'background-color #{_duration(transition)} ease',
'box-shadow #{_duration(transition)} ease',
'color #{_duration(transition)} ease'
));
-webkit-tap-highlight-color: rgba(255,255,255,0);
background-color: transparent;
border-radius: _size(border-radius);
border: 0;
box-shadow: inset 0 0 0 1px _palette(border);
color: _palette(fg-bold) !important;
cursor: pointer;
display: inline-block;
font-size: 0.8em;
font-weight: _font(weight-bold);
height: 3.5em;
letter-spacing: _font(letter-spacing-alt);
line-height: 3.5em;
padding: 0 2em;
position: relative;
text-align: center;
text-decoration: none;
text-transform: uppercase;
white-space: nowrap;
&.icon {
&:before {
margin-right: 0.5em;
}
}
&.back {
padding-left: 4.75em;
&:before {
@include vendor('transition', (
'opacity #{_duration(transition)} ease'
));
background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="112px" height="96px" viewBox="0 0 112 96" zoomAndPan="disable"><style>line { stroke: #{_palette(border)}; stroke-width: 4px }</style><line x1="0" y1="46" x2="112" y2="46" /><line x1="24" y1="22" x2="0" y2="46" /><line x1="24" y1="70" x2="0" y2="46" /></svg>');
background-position: center;
background-repeat: no-repeat;
background-size: contain;
content: '';
display: inline-block;
height: inherit;
left: 2em;
opacity: 1;
position: absolute;
top: 0;
vertical-align: middle;
width: 2em;
}
&:after {
@include vendor('transition', (
'opacity #{_duration(transition)} ease'
));
background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="112px" height="96px" viewBox="0 0 112 96" zoomAndPan="disable"><style>line { stroke: #{_palette(accent)}; stroke-width: 4px }</style><line x1="0" y1="46" x2="112" y2="46" /><line x1="24" y1="22" x2="0" y2="46" /><line x1="24" y1="70" x2="0" y2="46" /></svg>');
background-position: center;
background-repeat: no-repeat;
background-size: contain;
content: '';
display: inline-block;
height: inherit;
left: 2em;
opacity: 0;
position: absolute;
top: 0;
vertical-align: middle;
width: 2em;
}
&:hover,
&.active {
&:before {
opacity: 0;
}
&:after {
opacity: 1;
}
}
}
&.fit {
width: 100%;
}
&.small {
font-size: 0.7em;
}
&.large {
font-size: 1em;
}
&:hover,
&.active {
box-shadow: inset 0 0 0 1px _palette(accent);
color: _palette(accent) !important;
}
&:active,
&.active {
background-color: transparentize(_palette(accent), 0.95);
}
&.primary {
box-shadow: none;
background-color: _palette(fg-bold);
color: _palette(bg) !important;
&:hover {
background-color: _palette(accent);
}
&:active {
background-color: darken(_palette(accent), 10);
}
}
&.disabled,
&:disabled {
@include vendor('pointer-events', 'none');
cursor: default;
opacity: 0.25;
}
}

View file

@ -0,0 +1,246 @@
///
/// Indivisible by Pixelarity
/// pixelarity.com | hello@pixelarity.com
/// License: pixelarity.com/license
///
/* Form */
form {
margin: 0 0 _size(element-margin) 0;
> :last-child {
margin-bottom: 0;
}
> .fields {
$gutter: (_size(element-margin) * 0.75);
@include vendor('display', 'flex');
@include vendor('flex-wrap', 'wrap');
width: calc(100% + #{$gutter * 2});
margin: ($gutter * -1) 0 _size(element-margin) ($gutter * -1);
> .field {
@include vendor('flex-grow', '0');
@include vendor('flex-shrink', '0');
padding: $gutter 0 0 $gutter;
width: calc(100% - #{$gutter * 1});
&.half {
width: calc(50% - #{$gutter * 0.5});
}
&.third {
width: calc(#{100% / 3} - #{$gutter * (1 / 3)});
}
&.quarter {
width: calc(25% - #{$gutter * 0.25});
}
}
}
@include breakpoint('<=xsmall') {
> .fields {
$gutter: (_size(element-margin) * 0.75);
width: calc(100% + #{$gutter * 2});
margin: ($gutter * -1) 0 _size(element-margin) ($gutter * -1);
> .field {
padding: $gutter 0 0 $gutter;
width: calc(100% - #{$gutter * 1});
&.half {
width: calc(100% - #{$gutter * 1});
}
&.third {
width: calc(100% - #{$gutter * 1});
}
&.quarter {
width: calc(100% - #{$gutter * 1});
}
}
}
}
}
label {
color: _palette(fg-bold);
display: block;
font-size: 0.8em;
font-weight: _font(weight-bold);
margin: 0 0 (_size(element-margin) * 0.5) 0;
text-transform: uppercase;
letter-spacing: 0.25em;
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
select,
textarea {
@include vendor('appearance', 'none');
background: _palette(border-bg);
border-radius: _size(border-radius);
border: none;
border: solid 1px _palette(border);
color: inherit;
display: block;
outline: 0;
padding: 0 1em;
text-decoration: none;
width: 100%;
&:invalid {
box-shadow: none;
}
&:focus {
border-color: _palette(accent);
box-shadow: 0 0 0 1px _palette(accent);
}
}
select {
background-image: svg-url("<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' preserveAspectRatio='none' viewBox='0 0 40 40'><path d='M9.4,12.3l10.4,10.4l10.4-10.4c0.2-0.2,0.5-0.4,0.9-0.4c0.3,0,0.6,0.1,0.9,0.4l3.3,3.3c0.2,0.2,0.4,0.5,0.4,0.9 c0,0.4-0.1,0.6-0.4,0.9L20.7,31.9c-0.2,0.2-0.5,0.4-0.9,0.4c-0.3,0-0.6-0.1-0.9-0.4L4.3,17.3c-0.2-0.2-0.4-0.5-0.4-0.9 c0-0.4,0.1-0.6,0.4-0.9l3.3-3.3c0.2-0.2,0.5-0.4,0.9-0.4S9.1,12.1,9.4,12.3z' fill='#{_palette(border)}' /></svg>");
background-size: 1.25rem;
background-repeat: no-repeat;
background-position: calc(100% - 1rem) center;
height: _size(element-height);
padding-right: _size(element-height);
text-overflow: ellipsis;
&:focus {
&::-ms-value {
background-color: transparent;
}
}
&::-ms-expand {
display: none;
}
option {
color: _palette(fg-bold);
background: _palette(bg);
}
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
select {
height: _size(element-height);
}
textarea {
padding: 0.75em 1em;
}
input[type="checkbox"],
input[type="radio"], {
@include vendor('appearance', 'none');
display: block;
float: left;
margin-right: -2em;
opacity: 0;
width: 1em;
z-index: -1;
& + label {
@include icon(false, solid);
color: _palette(fg);
cursor: pointer;
display: inline-block;
font-size: 0.8em;
font-weight: _font(weight);
margin: 0 0 (_size(element-margin) * 0.25) 0;
padding-left: (_size(element-height) * 0.6) + 1.25em;
padding-right: 0.75em;
position: relative;
&:before {
background: _palette(border-bg);
border-radius: _size(border-radius);
border: solid 1px _palette(border);
content: '';
display: inline-block;
height: (_size(element-height) * 0.6);
left: 0;
line-height: (_size(element-height) * 0.575);
position: absolute;
text-align: center;
top: 0;
width: (_size(element-height) * 0.6);
font-size: 1em;
letter-spacing: 0;
}
}
&:checked + label {
&:before {
background: _palette(fg-bold);
border-color: _palette(fg-bold);
color: _palette(bg-alt);
content: '\f00c';
}
}
&:focus + label {
&:before {
border-color: _palette(accent);
box-shadow: 0 0 0 1px _palette(accent);
}
}
}
input[type="checkbox"] {
& + label {
&:before {
border-radius: _size(border-radius) * 0.5;
}
}
}
input[type="radio"] {
& + label {
&:before {
border-radius: 100%;
}
}
}
::-webkit-input-placeholder {
color: _palette(fg-light) !important;
opacity: 1.0;
}
:-moz-placeholder {
color: _palette(fg-light) !important;
opacity: 1.0;
}
::-moz-placeholder {
color: _palette(fg-light) !important;
opacity: 1.0;
}
:-ms-input-placeholder {
color: _palette(fg-light) !important;
opacity: 1.0;
}
.formerize-placeholder {
color: _palette(fg-light) !important;
opacity: 1.0;
}

View file

@ -0,0 +1,29 @@
///
/// Indivisible by Pixelarity
/// pixelarity.com | hello@pixelarity.com
/// License: pixelarity.com/license
///
/* Icon */
.icon {
@include icon;
border-bottom: none;
position: relative;
&.solid {
&:before {
font-weight: 900;
}
}
&.brands {
&:before {
font-family: 'Font Awesome 5 Brands';
}
}
> .label {
display: none;
}
}

View file

@ -0,0 +1,30 @@
///
/// Indivisible by Pixelarity
/// pixelarity.com | hello@pixelarity.com
/// License: pixelarity.com/license
///
/* Icons */
ul.icons {
cursor: default;
list-style: none;
padding-left: 0;
li {
display: inline-block;
padding-left: 0;
.icon {
display: inline-block;
width: 2.5em;
height: 2.5em;
line-height: 2.5em;
text-align: center;
&:before {
font-size: 1.25rem;
}
}
}
}

View file

@ -0,0 +1,60 @@
///
/// Indivisible by Pixelarity
/// pixelarity.com | hello@pixelarity.com
/// License: pixelarity.com/license
///
/* Image */
.image {
border-radius: _size(border-radius);
border: 0;
display: inline-block;
position: relative;
img {
border-radius: _size(border-radius);
display: block;
}
&.left,
&.right {
max-width: 40%;
img {
width: 100%;
}
}
&.left {
float: left;
padding: 0 1.5em 1em 0;
top: 0.25em;
}
&.right {
float: right;
padding: 0 0 1em 1.5em;
top: 0.25em;
}
&.fit {
display: block;
margin: 0 0 _size(element-margin) 0;
width: 100%;
img {
width: 100%;
}
}
&.main {
display: block;
margin: 0 0 (_size(element-margin) * 1.5) 0;
width: 100%;
img {
width: 100%;
}
}
}

View file

@ -0,0 +1,56 @@
///
/// Indivisible by Pixelarity
/// pixelarity.com | hello@pixelarity.com
/// License: pixelarity.com/license
///
/* List */
ol {
list-style: decimal;
margin: 0 0 _size(element-margin) 0;
padding-left: 1.25em;
li {
padding-left: 0.25em;
}
}
ul {
list-style: disc;
margin: 0 0 _size(element-margin) 0;
padding-left: 1em;
li {
padding-left: 0.5em;
}
&.alt {
list-style: none;
padding-left: 0;
li {
border-top: solid 1px _palette(border);
padding: 0.5em 0;
&:first-child {
border-top: 0;
padding-top: 0;
}
}
}
}
dl {
margin: 0 0 _size(element-margin) 0;
dt {
display: block;
font-weight: _font(weight-bold);
margin: 0 0 (_size(element-margin) * 0.5) 0;
}
dd {
margin-left: _size(element-margin);
}
}

View file

@ -0,0 +1,60 @@
///
/// Indivisible by Pixelarity
/// pixelarity.com | hello@pixelarity.com
/// License: pixelarity.com/license
///
/* Section/Article */
section, article {
&.special {
text-align: center;
}
}
header {
margin: (_size(element-margin) * 1.5) 0;
> :first-child {
margin-bottom: 0;
&:after {
content: '';
display: block;
background-color: _palette(border);
height: 1px;
margin: 1.5rem 0 1.75rem 0;
width: 5rem;
.special & {
margin-left: auto;
margin-right: auto;
}
}
}
p {
font-size: 0.9em;
letter-spacing: _font(letter-spacing-alt);
margin-bottom: 0;
text-transform: uppercase;
}
@include breakpoint('<=small') {
margin: _size(element-margin) 0;
> :first-child {
&:after {
margin: 1.25rem 0 1.5rem 0;
}
}
p {
font-size: 0.8em;
br {
display: none;
}
}
}
}

View file

@ -0,0 +1,81 @@
///
/// Indivisible by Pixelarity
/// pixelarity.com | hello@pixelarity.com
/// License: pixelarity.com/license
///
/* Table */
.table-wrapper {
-webkit-overflow-scrolling: touch;
overflow-x: auto;
}
table {
margin: 0 0 _size(element-margin) 0;
width: 100%;
tbody {
tr {
border: solid 1px _palette(border);
border-left: 0;
border-right: 0;
&:nth-child(2n + 1) {
background-color: _palette(border-bg);
}
}
}
td {
padding: 0.75em 0.75em;
}
th {
color: _palette(fg-bold);
font-size: 0.9em;
font-weight: _font(weight-bold);
padding: 0 0.75em 0.75em 0.75em;
text-align: left;
}
thead {
border-bottom: solid 2px _palette(border);
}
tfoot {
border-top: solid 2px _palette(border);
}
&.alt {
border-collapse: separate;
tbody {
tr {
td {
border: solid 1px _palette(border);
border-left-width: 0;
border-top-width: 0;
&:first-child {
border-left-width: 1px;
}
}
&:first-child {
td {
border-top-width: 1px;
}
}
}
}
thead {
border-bottom: 0;
}
tfoot {
border-top: 0;
}
}
}