Add and bootstrap tailwind

This commit is contained in:
Oliver Davies 2017-11-08 22:27:30 +00:00
parent 1003e50fef
commit 3a8d5362f2
3 changed files with 1217 additions and 74 deletions

View file

@ -1,49 +1,49 @@
@import (less) "~font-awesome/css/font-awesome.css";
@import (less) "~highlightjs/styles/github-gist.css";
@import "~tachyons-less/less/_colors";
@tailwind preflight;
@blue: #0678be;
@import "~tachyons-less/tachyons";
p,
li,
td {
a { color: @blue }
}
.button {
.bg-blue;
.bn;
.br2;
.dib;
.dim;
.link;
.no-underline;
.ph3;
.pv2;
.white-90;
// .button {
// .bg-blue;
// .bn;
// .br2;
// .dib;
// .dim;
// .link;
// .no-underline;
// .ph3;
// .pv2;
// .white-90;
&:hover {
background: darken(@blue, 10%);
cursor: pointer;
}
}
// &:hover {
// background: darken(@blue, 10%);
// cursor: pointer;
// }
// }
blockquote {
.ma0;
.pl3;
.bl;
.bw2;
.b--blue;
}
// blockquote {
// .ma0;
// .pl3;
// .bl;
// .bw2;
// .b--blue;
// }
img.with-border {
.ba;
.b--silver;
}
// img.with-border {
// .ba;
// .b--silver;
// }
@import "components/nav";
@import "components/post";
@import "components/talk";
// @import "components/nav";
// @import "components/post";
// @import "components/talk";
@tailwind utilities;

View file

@ -7,14 +7,14 @@
"outputJs": "source/assets/js"
},
"scripts": {
"autoprefixer": "postcss -u autoprefixer -r $npm_package_config_outputCss/*.css",
"build": "npm run init && npm-run-all -p build:css build:js copy:fonts",
"build:css": "npm run less -- && npm run autoprefixer",
"build:css": "npm run less -- && npm run postcss",
"build:js": "concat -o $npm_package_config_outputJs/site.js node_modules/jquery/dist/jquery.js node_modules/highlightjs/highlight.pack.js $npm_package_config_jsPath/vendor/*.js $npm_package_config_jsPath/main.js",
"copy:fonts": "cp -R node_modules/font-awesome/fonts/* $npm_package_config_outputFonts",
"dev": "npm run build && npm-run-all -p watch:css watch:js",
"init": "mkdir -p $npm_package_config_outputCss $npm_package_config_outputFonts $npm_package_config_outputJs",
"less": "lessc --npm-import='prefix=~' $npm_package_config_lessPath/main.less $npm_package_config_outputCss/site.css",
"postcss": "postcss -u autoprefixer tailwindcss -r $npm_package_config_outputCss/*.css",
"prod": "npm run build",
"watch": "npm-run-all -p watch:css watch:js",
"watch:css": "onchange $npm_package_config_lessPath -v -- npm-run-all -p build:css",
@ -33,6 +33,6 @@
"npm-run-all": "^4.1.1",
"onchange": "^3.2.1",
"postcss-cli": "^4.1.1",
"tachyons-less": "^1.0.4"
"tailwindcss": "^0.1.4"
}
}

1219
yarn.lock

File diff suppressed because it is too large Load diff