Skip to content

Commit

Permalink
Remove Tailwind reset, separate feed execution script
Browse files Browse the repository at this point in the history
  • Loading branch information
devowhippit committed Mar 26, 2018
1 parent 3635506 commit b6dd129
Show file tree
Hide file tree
Showing 9 changed files with 83 additions and 23 deletions.
27 changes: 22 additions & 5 deletions bundle/styles/site.concat.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/************
* Normalize
************/
@tailwind preflight;
/*************
* Components
*************/
Expand Down Expand Up @@ -60,9 +56,30 @@
/**********
* Elements
***********/
/**
* Base
*/
html {
-webkit-box-sizing: border-box;
box-sizing: border-box;
font-family: sans-serif; }

*, :after, :before {
-webkit-box-sizing: inherit;
box-sizing: inherit; }

[class*='border'] {
border-style: solid;
border-width: 0; }

/**
* Code
*/
pre {
font-family: monospace, monospace;
font-size: 1em;
margin: 0; }

code, pre {
display: inline-block; }

Expand Down Expand Up @@ -157,4 +174,4 @@ p code {
************/
@tailwind utilities;

/*# sourceMappingURL=data:application/json;base64,ewoJInZlcnNpb24iOiAzLAoJImZpbGUiOiAic2l0ZS5jb25jYXQuc2NzcyIsCgkic291cmNlcyI6IFsKCQkic3JjL3Njc3Mvc2l0ZS1kZWZhdWx0LnNjc3MiLAoJCSJzcmMvc2Nzcy9faW1wb3J0cy5zY3NzIiwKCQkic3JjL29iamVjdHMvZmVlZC9fZmVlZC5zY3NzIiwKCQkic3JjL2NvbmZpZy9fdmFyaWFibGVzLnNjc3MiLAoJCSJzcmMvZWxlbWVudHMvY29kZS9fY29kZS5zY3NzIiwKCQkic3JjL2VsZW1lbnRzL2xpbmtzL19saW5rcy5zY3NzIiwKCQkic3JjL2VsZW1lbnRzL2xheW91dHMvbGF5b3V0cy5zY3NzIiwKCQkic3JjL2VsZW1lbnRzL2ljb25zL19pY29ucy5zY3NzIiwKCQkic3JjL3Njc3MvZnVuY3Rpb25zL19zdHItcmVwbGFjZS5zY3NzIgoJXSwKCSJuYW1lcyI6IFtdLAoJIm1hcHBpbmdzIjogIkFDS0E7O2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VBQUUsWUFBWSxHQUN0Qjs7QUFZQyxBQUFBLGFBQWEsQ0FBRDtFQUNWLEtBQUssRUwwQk0sS0FBSztFS3pCaEIsTUFBTSxFTHlCVyxLQUFLO0VLeEJ0QixnQkFBZ0IsRUFBRSwyQkFBMEI7RUFDNUMsaUJBQWlCLEVBQUUsU0FBUztFQUM1QixlQUFlLEVBQUUsSUFBSSxHQUN0Qjs7QUFFRCxBQUFBLFVBQVUsQ0FBRDtFQUNQLEtBQUssRUxrQk0sS0FBSztFS2pCaEIsTUFBTSxFTGlCVyxLQUFLLEdLaEJ2Qjs7QVB5Qkg7O2FBRWE7QUFLYixTQUFTLENBQVQsU0FBUyIKfQ== */
2 changes: 1 addition & 1 deletion config/rollup.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const Main = {
// Create packages for our other modules
for (let i = 0; i < modules.length; i++) {
modules[i] = {
input: `${modules[i].path.toLowerCase()}/${modules[i].name}.js`,
input: `${modules[i].path}/${modules[i].name}.js`,
output: {
name: modules[i].name,
file: `./dist/scripts/modules/${modules[i].name}.js`,
Expand Down
12 changes: 11 additions & 1 deletion dist/feed.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/styles/site.min.css

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions src/elements/base/_base.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* Base
*/

// Tailwind.css requires this border box setting for it's dimension based utilities
html {
-webkit-box-sizing: border-box;
box-sizing: border-box;
font-family: sans-serif
}

*, :after, :before {
-webkit-box-sizing: inherit;
box-sizing: inherit
}

// Tailwind.css requires this border setting for it's borders to work properly
[class*='border'] {
border-style: solid;
border-width: 0
}
6 changes: 6 additions & 0 deletions src/elements/code/_code.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
@import 'config/variables';

// Declarations
pre {
font-family: monospace, monospace;
font-size: 1em;
margin: 0
}

code, pre {
display: inline-block;
}
Expand Down
12 changes: 11 additions & 1 deletion src/objects/feed/feed.slm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


= mixin('feed', 'code = false', 'demo = false')
= mixin('feed', 'code = false', 'demo = false', 'script = false')
- if this.code
div class='${class_demo_class_containers}'
div class='code-block'
Expand Down Expand Up @@ -52,3 +52,13 @@

- if this.demo
#feed style='color: lightsteelblue'

- if this.script
script src='scripts/modules/Feed.js'
javascript:
new Feed({
selector: '#feed',
feed: 'https://medium.com/feed/@nycopportunity/',
postCtaText: 'Read the full article on Medium',
log: true
}).init();
12 changes: 8 additions & 4 deletions src/scss/_imports.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@
// if @font-face is used it needs to be first imported first.
// @import 'elements/fonts/fonts';

/************
* Normalize
************/
// /************
// * Normalize
// ************/

// This injects Tailwind's base styles, which is a combination of
// Normalize.css and some additional base styles.
// https://github.com/tailwindcss/tailwindcss/blob/master/css/preflight.css
// This is not included because it would interfere with nyc.gov styles. Anything
// needed from the preflight to make Tailwind.css utilites work can be included
// in the Base elements.

@tailwind preflight;
// @tailwind preflight;

/*************
* Components
Expand Down Expand Up @@ -49,6 +52,7 @@
// scaffolding like typography or grid systems. Uitilities will have their own
// namespace prefixes based on their attributes.

@import 'elements/base/base';
@import 'elements/code/code';
@import 'elements/links/links';
@import 'elements/layouts/layouts';
Expand Down
10 changes: 1 addition & 9 deletions src/views/feed.slm
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,5 @@
div class='border-8 p-4 border-secondary-white'
= mixin('feed', false)


= content('script')
script src='scripts/modules/Feed.js'
javascript:
new Feed({
selector: '#feed',
feed: 'https://medium.com/feed/@nycopportunity/',
postCtaText: 'Read the full article on Medium',
log: true
}).init();
= mixin('feed', false, false, true)

0 comments on commit b6dd129

Please sign in to comment.