v2 first draft
This commit is contained in:
parent
035b55a9ca
commit
2375fe7637
41 changed files with 837 additions and 239 deletions
BIN
assets/sass/.DS_Store
vendored
Normal file
BIN
assets/sass/.DS_Store
vendored
Normal file
Binary file not shown.
46
assets/sass/barebones.scss
Executable file
46
assets/sass/barebones.scss
Executable file
|
@ -0,0 +1,46 @@
|
|||
/**
|
||||
Theme Name: Barebones
|
||||
Theme URI: http://github.com/benchmarkstudios/barebones
|
||||
Author: Benchmark
|
||||
*/
|
||||
|
||||
@charset 'UTF-8';
|
||||
|
||||
// 1. Configuration
|
||||
@import
|
||||
'config/variables',
|
||||
'config/mixins';
|
||||
|
||||
// 2. Vendors
|
||||
@import
|
||||
'vendor/simple-grid/simple-grid';
|
||||
|
||||
// 3. Utilities
|
||||
@import
|
||||
'utils/reset',
|
||||
'utils/a11y',
|
||||
'utils/responsive',
|
||||
'utils/helpers';
|
||||
|
||||
// 4. Base stuff
|
||||
@import
|
||||
'base/base',
|
||||
'base/fonts',
|
||||
'base/images',
|
||||
'base/forms',
|
||||
'base/typography';
|
||||
|
||||
// 5. Layout-related sections
|
||||
@import
|
||||
'layout/main',
|
||||
'layout/header',
|
||||
'layout/footer';
|
||||
|
||||
// 6. Components
|
||||
@import
|
||||
'components/buttons',
|
||||
'components/nav';
|
||||
|
||||
// 7. Page-specific styles
|
||||
@import
|
||||
'pages/home';
|
35
assets/sass/base/_base.scss
Normal file
35
assets/sass/base/_base.scss
Normal file
|
@ -0,0 +1,35 @@
|
|||
body {
|
||||
color: $base-colour;
|
||||
font-family: $base-font-stack;
|
||||
@include font-size($base-font-size);
|
||||
line-height: $base-line-height;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
p,
|
||||
hr,
|
||||
ul,
|
||||
ol,
|
||||
dl,
|
||||
address {
|
||||
margin-bottom: $base-spacing-unit;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Basic styles for links
|
||||
*/
|
||||
|
||||
a {
|
||||
color: $brand-color;
|
||||
text-decoration: none;
|
||||
&:hover {
|
||||
color: $text-color;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
3
assets/sass/base/_fonts.scss
Normal file
3
assets/sass/base/_fonts.scss
Normal file
|
@ -0,0 +1,3 @@
|
|||
// -----------------------------------------------------------------------------
|
||||
// This file contains all @font-face declarations, if any.
|
||||
// -----------------------------------------------------------------------------
|
8
assets/sass/base/_images.scss
Normal file
8
assets/sass/base/_images.scss
Normal file
|
@ -0,0 +1,8 @@
|
|||
img {
|
||||
max-width: 100%;
|
||||
vertical-align: top;
|
||||
&[width],
|
||||
&[height] {
|
||||
max-width: none;
|
||||
}
|
||||
}
|
16
assets/sass/base/_lists.scss
Normal file
16
assets/sass/base/_lists.scss
Normal file
|
@ -0,0 +1,16 @@
|
|||
ul,
|
||||
ol {
|
||||
margin-left: $base-spacing-unit;
|
||||
}
|
||||
|
||||
li {
|
||||
> ul,
|
||||
> ol {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.list--unstyled {
|
||||
list-style: none;
|
||||
margin-left: 0;
|
||||
}
|
18
assets/sass/utilities/_responsive.scss
Normal file
18
assets/sass/utilities/_responsive.scss
Normal file
|
@ -0,0 +1,18 @@
|
|||
@each $breakpoint in $breakpoints {
|
||||
|
||||
$key : nth($breakpoint, 1);
|
||||
$value : nth($breakpoint, 2);
|
||||
|
||||
.visible-#{$key} {
|
||||
@media only screen and #{$value} {
|
||||
display: block !important;
|
||||
}
|
||||
}
|
||||
|
||||
.hidden-#{$key} {
|
||||
@media only screen and #{$value} {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -1,42 +0,0 @@
|
|||
/**
|
||||
Theme Name: Bare Bones
|
||||
Theme URI: http://github.com/benchmarkstudios/barebones
|
||||
Author: Benchmark
|
||||
*/
|
||||
|
||||
// 1. Vendors
|
||||
@import
|
||||
'vendor/simple-grid/simple-grid';
|
||||
|
||||
// 2. Configuration and helpers
|
||||
@import
|
||||
'utilities/variables',
|
||||
'utilities/mixins',
|
||||
'utilities/reset',
|
||||
'utilities/a11y',
|
||||
'utilities/responsive',
|
||||
'utilities/wordpress';
|
||||
|
||||
// 3. Base stuff
|
||||
@import
|
||||
'base/shared',
|
||||
'base/images',
|
||||
'base/forms',
|
||||
'base/lists',
|
||||
'base/headings',
|
||||
'base/links';
|
||||
|
||||
// 4. Layout-related sections
|
||||
@import
|
||||
'layout/main',
|
||||
'layout/header',
|
||||
'layout/footer';
|
||||
|
||||
// 5. Components
|
||||
@import
|
||||
'modules/buttons',
|
||||
'modules/nav';
|
||||
|
||||
// 6. Page-specific styles
|
||||
@import
|
||||
'pages/home';
|
|
@ -1,8 +0,0 @@
|
|||
img {
|
||||
max-width: 100%;
|
||||
vertical-align: top;
|
||||
&[width],
|
||||
&[height] {
|
||||
max-width: none;
|
||||
}
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
ul,
|
||||
ol {
|
||||
margin-left: $base-spacing-unit;
|
||||
}
|
||||
|
||||
li {
|
||||
> ul,
|
||||
> ol {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.list-unstyled {
|
||||
list-style: none;
|
||||
margin-left: 0;
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
body {
|
||||
color: $base-colour;
|
||||
font-family: $base-font-stack;
|
||||
@include font-size($base-font-size);
|
||||
line-height: $base-line-height;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
p,
|
||||
hr,
|
||||
ul,
|
||||
ol,
|
||||
dl,
|
||||
address {
|
||||
margin-bottom: $base-spacing-unit;
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
@each $breakpoint in $breakpoints {
|
||||
|
||||
$key : nth($breakpoint, 1);
|
||||
$value : nth($breakpoint, 2);
|
||||
|
||||
.visible-#{$key} {
|
||||
@media only screen and #{$value} {
|
||||
display: block !important;
|
||||
}
|
||||
}
|
||||
|
||||
.hidden-#{$key} {
|
||||
@media only screen and #{$value} {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue