-
Notifications
You must be signed in to change notification settings - Fork 115
general cleanup #184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
general cleanup #184
Changes from all commits
ab1acba
93822b6
1911608
594b8e0
937d2a5
3d588fb
427fee1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,3 +47,4 @@ component-libraries: | |
pages: | ||
paths: | ||
- ../../source/_patterns/05-pages | ||
- ../../source/_patterns/05-pages/homepage |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,3 +78,4 @@ plugins: | |
pages: | ||
paths: | ||
- ../../../source/_patterns/05-pages | ||
- ../../../source/_patterns/05-pages/homepage |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
/// This guarantees both de-duplication and existence of required, generated CSS. | ||
/// | ||
|
||
@import 'config'; | ||
@import 'variables'; | ||
|
||
// Bootstrap CSS-generating output | ||
@import '~bootstrap/scss/root'; | ||
|
@@ -21,7 +21,8 @@ | |
@import '~bootstrap/scss/code'; | ||
|
||
// Custom CSS-generating output | ||
@import 'type'; | ||
@import 'forms'; | ||
@import 'tables'; | ||
@import 'transitions'; | ||
@import 'printing/type'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is much clearer. Thank you! |
||
@import 'printing/forms'; | ||
@import 'printing/tables'; | ||
@import 'printing/transitions'; | ||
@import 'printing/html-elements'; |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/// | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are we going to aim to have this more fully documented on the front end docs project? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes. this is mostly a companion to the large comment in _base.scss, the other "main" sass file, to hopefully really underscore the printing/nonprinting difference. that distinction should/will be covered thoroughly in the FE docs |
||
/// Global VARIABLES and HELPERS | ||
/// | ||
/// Place global config here like Bootstrap's _variables.scss. | ||
/// This kind of config is often required prior to importing any libraries (ie Bootstrap Sass), and | ||
/// does not produce any CSS, just variables and maps. | ||
/// | ||
/// All .scss files NEED TO INCLUDE this file as the top import to ensure consistent settings. | ||
/// Particle does not glob Sass! Because there is no printing CSS output in this file, webpack will | ||
/// safely squash any duplication. | ||
/// | ||
/// @example | ||
/// ```scss | ||
/// @import '../../00-base/variables'; | ||
/// ``` | ||
/// This guarantees every component is styled with the same presets. | ||
/// | ||
|
||
// Custom non-printing tools | ||
@import 'non-printing/functions'; | ||
@import 'non-printing/colors'; | ||
@import 'non-printing/mixins'; | ||
|
||
// (Other non-printing .scss), ie font families, spacing, etc | ||
$spacing: ( | ||
s: 5px, | ||
m: 25px, | ||
l: 50px, | ||
); | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Comment right here that this is where we can override bootstrap variables (that aren't just overriden in a component later on). |
||
// Bootstrap non-printing tools | ||
@import "~bootstrap/scss/functions"; | ||
@import "~bootstrap/scss/variables"; | ||
@import "~bootstrap/scss/mixins"; | ||
|
||
// import anything else non-printing that may depend on variables in this file! | ||
// @import 'non-printing/project-specific-mixins' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
<h1>Spacing</h1> | ||
{% for spacingVarName, spacingVarData in baseScssVars if '$spacing--' in spacingVarName %} | ||
{% set value = spacingVarData.value ~ spacingVarData.unit %} | ||
|
||
<div style="margin: 5px;"> | ||
{% for spacing, value in scssSpacing %} | ||
<div style="margin: 10px;"> | ||
<div style="height: {{ value }}; width: {{ value }}; outline: solid 1px black; display: inline-block; margin-right: 5px;"></div> | ||
<span>{{ valule }} : <code>{{ spacingVarName }}</code></span> | ||
<span>{{ value }} : <code>$spacing({{ spacing }})</code></span> | ||
</div> | ||
{% endfor %} | ||
|
||
<p>To add to these items, use Sass variables that start with <code>$spacing--</code> in <code>_spacing.scss</code></p> | ||
<p>To add to these items, adjust <code>$spacing()</code> in <code>_variables.scss</code></p> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@import '../variables'; | ||
|
||
// Use this file for any global layout rules you want applied after | ||
// Bootstrap's Reboot does it's thing, but don't necessarily fit into | ||
// another pattern here. | ||
// | ||
// @see https://v4-alpha.getbootstrap.com/content/reboot/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{#{% include '@organisms/header' %}#} | ||
|
||
<main class="site-content"> | ||
{% block content %} | ||
<h2>Site Content Here</h2> | ||
{% endblock %} | ||
</main> | ||
|
||
{#{% include '@organisms/footer' %}#} |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{% extends "@templates/site-container.twig" %} | ||
{% block content %} | ||
<h6>I should fail pa11y</h6> | ||
|
||
<h1 class="homepage__header">this is a pattern lab only demo of the HOMEPAGE</h1> | ||
|
||
<p class="homepage__text">asdfafdsd blerp</p> | ||
{% endblock %} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import $ from 'jquery'; | ||
|
||
const defaultSettings = { color: 'orange' }; | ||
|
||
export const name = 'homepage'; | ||
|
||
export function disable() {} | ||
|
||
export function enable(context = $(document), settings = defaultSettings) { | ||
$('.homepage__header', context).css('color', settings.color); | ||
$('.homepage__text', context).html('overwritten from homepage js'); | ||
} | ||
|
||
export default enable; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. If we update this in the grid component, this will update correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these values are coming from bootstrap's $grid-breakpoints(). if needed, they would get overridden probably inside of _variables.scss, similar to how we are able to override $theme-colors()