initial
This commit is contained in:
commit
332776921f
85 changed files with 19231 additions and 0 deletions
101
assets/sass/components/_actions.scss
Normal file
101
assets/sass/components/_actions.scss
Normal file
|
@ -0,0 +1,101 @@
|
|||
///
|
||||
/// Prototype by Pixelarity
|
||||
/// pixelarity.com | hello@pixelarity.com
|
||||
/// License: pixelarity.com/license
|
||||
///
|
||||
|
||||
/* Actions */
|
||||
|
||||
ul.actions {
|
||||
@include vendor('display', 'flex');
|
||||
cursor: default;
|
||||
list-style: none;
|
||||
margin-left: (_size(element-margin) * -0.5);
|
||||
padding-left: 0;
|
||||
|
||||
li {
|
||||
padding: 0 0 0 (_size(element-margin) * 0.5);
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
&.special {
|
||||
@include vendor('justify-content', 'center');
|
||||
width: 100%;
|
||||
margin-left: 0;
|
||||
|
||||
li {
|
||||
&:first-child {
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.stacked {
|
||||
@include vendor('flex-direction', 'column');
|
||||
margin-left: 0;
|
||||
|
||||
li {
|
||||
padding: (_size(element-margin) * 0.65) 0 0 0;
|
||||
|
||||
&:first-child {
|
||||
padding-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.fit {
|
||||
width: calc(100% + #{_size(element-margin) * 0.5});
|
||||
|
||||
li {
|
||||
@include vendor('flex-grow', '1');
|
||||
@include vendor('flex-shrink', '1');
|
||||
width: 100%;
|
||||
|
||||
> * {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
&.stacked {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=xsmall') {
|
||||
&:not(.fixed) {
|
||||
@include vendor('flex-direction', 'column');
|
||||
margin-left: 0;
|
||||
width: 100% !important;
|
||||
|
||||
li {
|
||||
@include vendor('flex-grow', '1');
|
||||
@include vendor('flex-shrink', '1');
|
||||
padding: (_size(element-margin) * 0.5) 0 0 0;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
|
||||
> * {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
input[type="submit"],
|
||||
input[type="reset"],
|
||||
input[type="button"],
|
||||
button,
|
||||
.button {
|
||||
width: 100%;
|
||||
|
||||
&.icon {
|
||||
&:before {
|
||||
margin-left: -0.5em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
34
assets/sass/components/_box.scss
Normal file
34
assets/sass/components/_box.scss
Normal file
|
@ -0,0 +1,34 @@
|
|||
///
|
||||
/// Prototype by Pixelarity
|
||||
/// pixelarity.com | hello@pixelarity.com
|
||||
/// License: pixelarity.com/license
|
||||
///
|
||||
|
||||
/* Box */
|
||||
|
||||
.box {
|
||||
border-radius: _size(border-radius);
|
||||
border: solid 1px;
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin color-box($p: null) {
|
||||
.box {
|
||||
border-color: _palette($p, border);
|
||||
}
|
||||
}
|
||||
|
||||
@include color-box;
|
104
assets/sass/components/_button.scss
Normal file
104
assets/sass/components/_button.scss
Normal file
|
@ -0,0 +1,104 @@
|
|||
///
|
||||
/// Prototype 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-in-out, color #{_duration(transition)} ease-in-out');
|
||||
border-radius: _size(border-radius);
|
||||
border: 0;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-size: 0.8em;
|
||||
font-weight: _font(weight-bold);
|
||||
height: 4.1em;
|
||||
letter-spacing: _font(kerning-alt);
|
||||
line-height: 4.25em;
|
||||
padding: 0 3em;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
white-space: nowrap;
|
||||
|
||||
&.icon {
|
||||
&:before {
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
}
|
||||
|
||||
&.fit {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&.small {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
&.major {
|
||||
min-width: 20em;
|
||||
}
|
||||
|
||||
&.disabled,
|
||||
&:disabled {
|
||||
@include vendor('pointer-events', 'none');
|
||||
opacity: 0.35;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin color-button($p: null) {
|
||||
$highlight: _palette($p, highlight);
|
||||
|
||||
input[type="submit"],
|
||||
input[type="reset"],
|
||||
input[type="button"],
|
||||
button,
|
||||
.button {
|
||||
background-color: transparent;
|
||||
box-shadow: inset 0 0 0 1px _palette($p, border);
|
||||
color: _palette($p, fg-bold) !important;
|
||||
|
||||
&:hover {
|
||||
background-color: _palette($p, border-bg);
|
||||
|
||||
&:active {
|
||||
background-color: _palette($p, border-bg-alt);
|
||||
}
|
||||
}
|
||||
|
||||
&.disabled,
|
||||
&:disabled {
|
||||
background-color: _palette($p, border);
|
||||
}
|
||||
|
||||
&.primary {
|
||||
box-shadow: none;
|
||||
|
||||
@if $p == $highlight {
|
||||
background-color: _palette($p, fg-bold);
|
||||
color: _palette($p, bg) !important;
|
||||
}
|
||||
@else {
|
||||
background-color: _palette($highlight, bg);
|
||||
color: _palette($highlight, fg-bold) !important;
|
||||
|
||||
&:hover {
|
||||
background-color: lighten(_palette($highlight, bg), 5);
|
||||
|
||||
&:active {
|
||||
background-color: darken(_palette($highlight, bg), 5);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include color-button;
|
68
assets/sass/components/_features.scss
Normal file
68
assets/sass/components/_features.scss
Normal file
|
@ -0,0 +1,68 @@
|
|||
///
|
||||
/// Prototype by Pixelarity
|
||||
/// pixelarity.com | hello@pixelarity.com
|
||||
/// License: pixelarity.com/license
|
||||
///
|
||||
|
||||
/* Features */
|
||||
|
||||
.features {
|
||||
@include vendor('display', 'flex');
|
||||
@include vendor('flex-wrap', 'wrap');
|
||||
margin: -1em 0 _size(element-margin) -1em;
|
||||
width: calc(100% + 1em);
|
||||
|
||||
section {
|
||||
@include padding(3em, 3em);
|
||||
border-radius: _size(border-radius);
|
||||
margin: 1em 0 0 1em;
|
||||
text-align: center;
|
||||
width: calc(33.33333% - 1em);
|
||||
}
|
||||
|
||||
@include breakpoint('<=large') {
|
||||
section {
|
||||
@include padding(3em, 2em);
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
section {
|
||||
width: calc(50% - 1em);
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
section {
|
||||
@include padding(3em, 1.5em);
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=xsmall') {
|
||||
display: block;
|
||||
margin: 0 0 _size(element-margin) 0;
|
||||
width: 100%;
|
||||
|
||||
section {
|
||||
margin: 0 0 1em 0;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin color-features($p: null) {
|
||||
.features {
|
||||
section {
|
||||
@if $p == null {
|
||||
background-color: _palette(bg);
|
||||
border-bottom: solid 1px darken(_palette(bg-alt), 5);
|
||||
}
|
||||
@else {
|
||||
background-color: mix(_palette($p, bg), _palette($p, fg-bold), 90%);
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include color-features;
|
242
assets/sass/components/_form.scss
Normal file
242
assets/sass/components/_form.scss
Normal file
|
@ -0,0 +1,242 @@
|
|||
///
|
||||
/// Prototype by Pixelarity
|
||||
/// pixelarity.com | hello@pixelarity.com
|
||||
/// License: pixelarity.com/license
|
||||
///
|
||||
|
||||
/* Form */
|
||||
|
||||
form {
|
||||
margin: 0 0 _size(element-margin) 0;
|
||||
}
|
||||
|
||||
label {
|
||||
display: block;
|
||||
font-size: 0.9em;
|
||||
font-weight: _font(weight-bold);
|
||||
margin: 0 0 (_size(element-margin) * 0.5) 0;
|
||||
}
|
||||
|
||||
input[type="text"],
|
||||
input[type="password"],
|
||||
input[type="email"],
|
||||
select,
|
||||
textarea {
|
||||
@include vendor('appearance', 'none');
|
||||
border-radius: _size(border-radius);
|
||||
border: solid 1px;
|
||||
color: inherit;
|
||||
display: block;
|
||||
outline: 0;
|
||||
padding: 0 1em;
|
||||
text-decoration: none;
|
||||
width: 100%;
|
||||
|
||||
&:invalid {
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
select {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
input[type="text"],
|
||||
input[type="password"],
|
||||
input[type="email"],
|
||||
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);
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-size: 1em;
|
||||
font-weight: _font(weight);
|
||||
padding-left: (_size(element-height) * 0.6) + 0.75em;
|
||||
padding-right: 0.75em;
|
||||
position: relative;
|
||||
|
||||
&:before {
|
||||
border-radius: _size(border-radius);
|
||||
border: solid 1px;
|
||||
content: '';
|
||||
display: inline-block;
|
||||
font-size: 0.8em;
|
||||
height: (_size(element-height) * 0.75);
|
||||
left: 0;
|
||||
line-height: (_size(element-height) * 0.75);
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
top: 0;
|
||||
width: (_size(element-height) * 0.75);
|
||||
}
|
||||
}
|
||||
|
||||
&:checked + label {
|
||||
&:before {
|
||||
content: '\f00c';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
input[type="checkbox"] {
|
||||
& + label {
|
||||
&:before {
|
||||
border-radius: _size(border-radius);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
input[type="radio"] {
|
||||
& + label {
|
||||
&:before {
|
||||
border-radius: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
::-webkit-input-placeholder {
|
||||
opacity: 1.0;
|
||||
}
|
||||
|
||||
:-moz-placeholder {
|
||||
opacity: 1.0;
|
||||
}
|
||||
|
||||
::-moz-placeholder {
|
||||
opacity: 1.0;
|
||||
}
|
||||
|
||||
:-ms-input-placeholder {
|
||||
opacity: 1.0;
|
||||
}
|
||||
|
||||
@mixin color-form($p: null) {
|
||||
$highlight: _palette($p, highlight);
|
||||
|
||||
label {
|
||||
color: _palette($p, fg-bold);
|
||||
}
|
||||
|
||||
input[type="text"],
|
||||
input[type="password"],
|
||||
input[type="email"],
|
||||
select,
|
||||
textarea {
|
||||
background-color: _palette($p, border-bg);
|
||||
border-color: _palette($p, border);
|
||||
|
||||
&:focus {
|
||||
@if $p == $highlight {
|
||||
border-color: _palette($p, fg-bold);
|
||||
box-shadow: 0 0 0 1px _palette($p, fg-bold);
|
||||
}
|
||||
@else {
|
||||
border-color: _palette(accent1, bg);
|
||||
box-shadow: 0 0 0 1px _palette(accent1, bg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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($p, border)}' /></svg>");
|
||||
|
||||
option {
|
||||
color: _palette($p, fg-bold);
|
||||
background: _palette($p, bg);
|
||||
}
|
||||
}
|
||||
|
||||
input[type="checkbox"],
|
||||
input[type="radio"], {
|
||||
& + label {
|
||||
color: _palette($p, fg);
|
||||
|
||||
&:before {
|
||||
background: _palette($p, border-bg);
|
||||
border-color: _palette($p, border);
|
||||
}
|
||||
}
|
||||
|
||||
&:checked + label {
|
||||
&:before {
|
||||
@if $p == $highlight {
|
||||
background-color: _palette($p, fg-bold);
|
||||
border-color: _palette($p, fg-bold);
|
||||
color: _palette($p, bg);
|
||||
}
|
||||
@else {
|
||||
background-color: _palette(accent1, bg);
|
||||
border-color: _palette(accent1, bg);
|
||||
color: _palette(accent1, fg-bold);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:focus + label {
|
||||
&:before {
|
||||
@if $p == $highlight {
|
||||
border-color: _palette($p, fg-bold);
|
||||
box-shadow: 0 0 0 1px _palette($p, fg-bold);
|
||||
}
|
||||
@else {
|
||||
border-color: _palette(accent1, bg);
|
||||
box-shadow: 0 0 0 1px _palette(accent1, bg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
::-webkit-input-placeholder {
|
||||
color: _palette($p, fg-light) !important;
|
||||
}
|
||||
|
||||
:-moz-placeholder {
|
||||
color: _palette($p, fg-light) !important;
|
||||
}
|
||||
|
||||
::-moz-placeholder {
|
||||
color: _palette($p, fg-light) !important;
|
||||
}
|
||||
|
||||
:-ms-input-placeholder {
|
||||
color: _palette($p, fg-light) !important;
|
||||
}
|
||||
|
||||
.formerize-placeholder {
|
||||
color: _palette($p, fg-light) !important;
|
||||
}
|
||||
}
|
||||
|
||||
@include color-form;
|
71
assets/sass/components/_icon.scss
Normal file
71
assets/sass/components/_icon.scss
Normal file
|
@ -0,0 +1,71 @@
|
|||
///
|
||||
/// Prototype by Pixelarity
|
||||
/// pixelarity.com | hello@pixelarity.com
|
||||
/// License: pixelarity.com/license
|
||||
///
|
||||
|
||||
/* Icon */
|
||||
|
||||
.icon {
|
||||
@include icon;
|
||||
border-bottom: none;
|
||||
position: relative;
|
||||
|
||||
> .label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&.solid {
|
||||
&:before {
|
||||
font-weight: 900;
|
||||
}
|
||||
}
|
||||
|
||||
&.brands {
|
||||
&:before {
|
||||
font-family: 'Font Awesome 5 Brands';
|
||||
}
|
||||
}
|
||||
|
||||
&.major {
|
||||
@include vendor('transform', 'rotate(45deg)');
|
||||
border-radius: _size(border-radius);
|
||||
border: solid 1px;
|
||||
display: block;
|
||||
font-size: 1.75em;
|
||||
height: 2.5em;
|
||||
line-height: 2.5em;
|
||||
margin: 0 auto _size(element-margin) auto;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
top: 0.5em;
|
||||
width: 2.5em;
|
||||
|
||||
&:before {
|
||||
@include vendor('transform', 'rotate(-45deg)');
|
||||
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin color-icon($p: null) {
|
||||
$highlight: _palette($p, highlight);
|
||||
|
||||
.icon {
|
||||
&.major {
|
||||
border-color: _palette($p, border);
|
||||
|
||||
&:before {
|
||||
@if $p == $highlight {
|
||||
color: _palette($highlight, fg-bold);
|
||||
}
|
||||
@else {
|
||||
color: _palette($highlight, bg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include color-icon;
|
28
assets/sass/components/_icons.scss
Normal file
28
assets/sass/components/_icons.scss
Normal file
|
@ -0,0 +1,28 @@
|
|||
///
|
||||
/// Prototype 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: 0 1em 0 0;
|
||||
|
||||
&:last-child {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.icon {
|
||||
&:before {
|
||||
font-size: 1.25em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
84
assets/sass/components/_image-circles.scss
Normal file
84
assets/sass/components/_image-circles.scss
Normal file
|
@ -0,0 +1,84 @@
|
|||
///
|
||||
/// Prototype by Pixelarity
|
||||
/// pixelarity.com | hello@pixelarity.com
|
||||
/// License: pixelarity.com/license
|
||||
///
|
||||
|
||||
/* Image Circles */
|
||||
|
||||
.image-circles {
|
||||
margin: 0 0 _size(element-margin) 0;
|
||||
text-align: right;
|
||||
|
||||
.images {
|
||||
@include vendor('display', 'flex');
|
||||
@include vendor('flex-direction', 'row');
|
||||
margin: 1em 0 0 -1em;
|
||||
width: calc(100% + 1em);
|
||||
|
||||
> * {
|
||||
-ms-flex: 1;
|
||||
display: block;
|
||||
margin: 0 0 0 1em;
|
||||
position: relative;
|
||||
white-space: nowrap;
|
||||
width: 50%;
|
||||
|
||||
&:before {
|
||||
border-radius: 100%;
|
||||
content: '';
|
||||
display: block;
|
||||
height: 100%;
|
||||
margin: 0 0 0 1em;
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
width: calc(50% - 0.5em);
|
||||
}
|
||||
|
||||
img {
|
||||
border-radius: 100%;
|
||||
display: block;
|
||||
width: calc(50% - 0.5em);
|
||||
}
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
&:nth-child(2n - 1) {
|
||||
> * {
|
||||
@include vendor('transform', 'scaleX(-1)');
|
||||
|
||||
img {
|
||||
@include vendor('transform', 'scaleX(-1)');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
width: 100%;
|
||||
max-width: 30em;
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
max-width: 16em;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin color-image-circles($p: null) {
|
||||
.image-circles {
|
||||
.images {
|
||||
> * {
|
||||
&:before {
|
||||
box-shadow: inset 0 0 0 1px _palette($p, border);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include color-image-circles;
|
70
assets/sass/components/_image.scss
Normal file
70
assets/sass/components/_image.scss
Normal file
|
@ -0,0 +1,70 @@
|
|||
///
|
||||
/// Prototype 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;
|
||||
margin: 0 2.5em 2em 0;
|
||||
top: 0.25em;
|
||||
}
|
||||
|
||||
&.right {
|
||||
float: right;
|
||||
margin: 0 0 2em 2.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%;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
&.left {
|
||||
margin: 0 1.5em 1em 0;
|
||||
}
|
||||
|
||||
&.right {
|
||||
margin: 0 0 1em 1.5em;
|
||||
}
|
||||
}
|
||||
}
|
68
assets/sass/components/_list.scss
Normal file
68
assets/sass/components/_list.scss
Normal file
|
@ -0,0 +1,68 @@
|
|||
///
|
||||
/// Prototype 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;
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
@mixin color-list($p: null) {
|
||||
ul {
|
||||
&.alt {
|
||||
li {
|
||||
border-top-color: _palette($p, border);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include color-list;
|
31
assets/sass/components/_row.scss
Normal file
31
assets/sass/components/_row.scss
Normal file
|
@ -0,0 +1,31 @@
|
|||
///
|
||||
/// Prototype by Pixelarity
|
||||
/// pixelarity.com | hello@pixelarity.com
|
||||
/// License: pixelarity.com/license
|
||||
///
|
||||
|
||||
/* Row */
|
||||
|
||||
.row {
|
||||
@include html-grid(2em);
|
||||
|
||||
@include breakpoint('<=xlarge') {
|
||||
@include html-grid(2em, 'xlarge');
|
||||
}
|
||||
|
||||
@include breakpoint('<=large') {
|
||||
@include html-grid(1.5em, 'large');
|
||||
}
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
@include html-grid(1.5em, 'medium');
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
@include html-grid(1.25em, 'small');
|
||||
}
|
||||
|
||||
@include breakpoint('<=xsmall') {
|
||||
@include html-grid(1.25em, 'xsmall');
|
||||
}
|
||||
}
|
58
assets/sass/components/_section.scss
Normal file
58
assets/sass/components/_section.scss
Normal file
|
@ -0,0 +1,58 @@
|
|||
///
|
||||
/// Prototype by Pixelarity
|
||||
/// pixelarity.com | hello@pixelarity.com
|
||||
/// License: pixelarity.com/license
|
||||
///
|
||||
|
||||
/* Section/Article */
|
||||
|
||||
section, article {
|
||||
&.special {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
header {
|
||||
p {
|
||||
position: relative;
|
||||
margin: 0 0 _size(element-margin) 0;
|
||||
}
|
||||
|
||||
&.major {
|
||||
text-align: center;
|
||||
margin: 0 0 (_size(element-margin) * 1.5) 0;
|
||||
|
||||
> :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
br {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
&.major {
|
||||
margin: 0 0 _size(element-margin) 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
footer {
|
||||
&.major {
|
||||
text-align: center;
|
||||
margin: (_size(element-margin) * 1.5) 0 _size(element-margin) 0;
|
||||
|
||||
> :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
&.major {
|
||||
margin: _size(element-margin) 0 _size(element-margin) 0;
|
||||
}
|
||||
}
|
||||
}
|
114
assets/sass/components/_spotlights.scss
Normal file
114
assets/sass/components/_spotlights.scss
Normal file
|
@ -0,0 +1,114 @@
|
|||
///
|
||||
/// Prototype by Pixelarity
|
||||
/// pixelarity.com | hello@pixelarity.com
|
||||
/// License: pixelarity.com/license
|
||||
///
|
||||
|
||||
/* Spotlights */
|
||||
|
||||
.spotlights {
|
||||
margin: 0 0 _size(element-margin) 0;
|
||||
|
||||
section {
|
||||
@include vendor('display', 'flex');
|
||||
@include vendor('align-items', 'center');
|
||||
@include vendor('flex-direction', 'row');
|
||||
border-top: solid 1px;
|
||||
margin-top: _size(section-spacing) * 0.85;
|
||||
padding-top: _size(section-spacing) * 0.85;
|
||||
|
||||
.image {
|
||||
position: relative;
|
||||
width: 35%;
|
||||
|
||||
img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
-ms-flex: 1;
|
||||
margin: 0 0 0 _size(section-spacing);
|
||||
width: 65%;
|
||||
|
||||
> :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
border-top: 0;
|
||||
margin-top: 0;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
&:nth-child(2n) {
|
||||
@include vendor('flex-direction', 'row-reverse');
|
||||
|
||||
.content {
|
||||
margin: 0 _size(section-spacing) 0 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
section {
|
||||
$section-spacing: _size(section-spacing) * 0.75;
|
||||
|
||||
@include vendor('align-items', 'flex-start');
|
||||
|
||||
.image {
|
||||
top: 0.35em;
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
.content {
|
||||
margin: 0 0 0 $section-spacing;
|
||||
width: 60%;
|
||||
}
|
||||
|
||||
&:nth-child(2n) {
|
||||
.content {
|
||||
margin: 0 $section-spacing 0 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
section {
|
||||
margin-top: _size(element-margin);
|
||||
padding-top: _size(element-margin);
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=xsmall') {
|
||||
section {
|
||||
display: block;
|
||||
|
||||
.image {
|
||||
display: block;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
margin: 0 0 _size(element-margin) 0;
|
||||
}
|
||||
|
||||
.content {
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin color-spotlights($p: null) {
|
||||
.spotlights {
|
||||
section {
|
||||
border-top-color: _palette($p, border);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include color-spotlights;
|
114
assets/sass/components/_table.scss
Normal file
114
assets/sass/components/_table.scss
Normal file
|
@ -0,0 +1,114 @@
|
|||
///
|
||||
/// Prototype 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;
|
||||
border-left: 0;
|
||||
border-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 0.75em 0.75em;
|
||||
}
|
||||
|
||||
th {
|
||||
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;
|
||||
}
|
||||
|
||||
tfoot {
|
||||
border-top: solid 2px;
|
||||
}
|
||||
|
||||
&.alt {
|
||||
border-collapse: separate;
|
||||
|
||||
tbody {
|
||||
tr {
|
||||
td {
|
||||
border: solid 1px;
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin color-table($p: null) {
|
||||
table {
|
||||
tbody {
|
||||
tr {
|
||||
border-color: _palette($p, border);
|
||||
|
||||
&:nth-child(2n + 1) {
|
||||
background-color: _palette($p, border-bg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
th {
|
||||
color: _palette($p, fg-bold);
|
||||
}
|
||||
|
||||
thead {
|
||||
border-bottom-color: _palette($p, border);
|
||||
}
|
||||
|
||||
tfoot {
|
||||
border-top-color: _palette($p, border);
|
||||
}
|
||||
|
||||
&.alt {
|
||||
tbody {
|
||||
tr {
|
||||
td {
|
||||
border-color: _palette($p, border);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include color-table;
|
112
assets/sass/components/_wrapper.scss
Normal file
112
assets/sass/components/_wrapper.scss
Normal file
|
@ -0,0 +1,112 @@
|
|||
///
|
||||
/// Prototype by Pixelarity
|
||||
/// pixelarity.com | hello@pixelarity.com
|
||||
/// License: pixelarity.com/license
|
||||
///
|
||||
|
||||
/* Wrapper */
|
||||
|
||||
.wrapper {
|
||||
@include padding(7em, 0);
|
||||
position: relative;
|
||||
|
||||
> .inner {
|
||||
margin: 0 auto;
|
||||
width: _size(inner);
|
||||
}
|
||||
|
||||
&.style1 {
|
||||
background: _palette(bg);
|
||||
border-bottom: solid 1px darken(_palette(bg-alt), 5);
|
||||
}
|
||||
|
||||
&.style2 {
|
||||
}
|
||||
|
||||
&.split {
|
||||
> .inner {
|
||||
@include vendor('display', 'flex');
|
||||
|
||||
> * {
|
||||
-ms-flex: 1;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
> :nth-child(2n - 1) {
|
||||
margin-right: (_size(section-spacing) * 0.5);
|
||||
}
|
||||
|
||||
> :nth-child(2n) {
|
||||
margin-left: (_size(section-spacing) * 0.5);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=xlarge') {
|
||||
@include padding(5em, 0);
|
||||
}
|
||||
|
||||
@include breakpoint('<=large') {
|
||||
> .inner {
|
||||
width: 100%;
|
||||
padding: 0 (_size(section-spacing) * 0.75);
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=medium') {
|
||||
&.split {
|
||||
text-align: center;
|
||||
|
||||
ul.actions {
|
||||
@include vendor('justify-content', 'center');
|
||||
width: 100%;
|
||||
margin-left: 0;
|
||||
|
||||
li {
|
||||
&:first-child {
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> .inner {
|
||||
@include vendor('flex-direction', 'column-reverse');
|
||||
@include vendor('align-items', 'center');
|
||||
|
||||
> * {
|
||||
-ms-flex: none;
|
||||
margin-bottom: _size(section-spacing);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
> :nth-child(2n - 1) {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
> :nth-child(2n) {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
> :first-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
@include padding(3em, 0);
|
||||
|
||||
> .inner {
|
||||
padding: 0 1.5em;
|
||||
}
|
||||
|
||||
&.split {
|
||||
> .inner {
|
||||
> * {
|
||||
margin-bottom: _size(element-margin);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue