Skip to content

Commit

Permalink
Convert the site to Tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonlbeggs committed Nov 15, 2020
1 parent 0e0ee56 commit b9d1568
Show file tree
Hide file tree
Showing 65 changed files with 6,107 additions and 8,622 deletions.
8 changes: 8 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"plugins": [
["prismjs", {
"languages": ["javascript", "css", "markup", "php"],
"css": false
}]
]
}
5,556 changes: 3,285 additions & 2,271 deletions package-lock.json

Large diffs are not rendered by default.

11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
},
"devDependencies": {
"algoliasearch": "^4.6.0",
"babel-plugin-prismjs": "^2.0.1",
"cross-env": "^5.1",
"laravel-mix": "^4.0.7",
"resolve-url-loader": "^2.3.1",
"sass": "^1.15.2",
"sass-loader": "^7.1.0",
"laravel-mix": "^5.0.9",
"postcss-import": "^12.0.0",
"postcss-nested": "^4.2.3",
"prismjs": "^1.22.0",
"tailwindcss": "^2.0.0-alpha.20",
"vue-template-compiler": "^2.6.8"
}
}
4 changes: 1 addition & 3 deletions public/css/app.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/img/social/linkedin.min.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion public/js/app.js

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions public/js/app.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*! algoliasearch-lite.umd.js | 4.6.0 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */

/**
* Prism: Lightweight, robust, elegant syntax highlighting
*
* @license MIT <https://opensource.org/licenses/MIT>
* @author Lea Verou <https://lea.verou.me>
* @namespace
* @public
*/
4 changes: 2 additions & 2 deletions public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"/js/app.js": "/js/app.js?id=9a4d608e7b4ef7d1ae45",
"/css/app.css": "/css/app.css?id=fb4ab1fe02a78265eb76"
"/js/app.js": "/js/app.js?id=9c9d9c0395a3952f8d44",
"/css/app.css": "/css/app.css?id=8e7bdba04d2bcd720d27"
}
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
#carbonads {
margin-top: 2.375em;
background: $white;
background: theme('colors.white');
padding: 1em;
max-width: 10.125em;

img {
display: block;
margin-bottom: .75em;
}

.carbon-text {
display: block;
font-size: .625em;
line-height: 1.4em;
margin-bottom: 1rem;
color: rgba($black, .8);
color: theme('colors.gray.700');
}

.carbon-poweredby {
font-size: .625em;
text-transform: uppercase;
letter-spacing: 2px;
color: rgba($black, .4);
color: theme('colors.gray.600');
}
}
}
179 changes: 179 additions & 0 deletions resources/css/_docs.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
.callout p {
margin-bottom: 0;
}

.docs_main {
a[name] {
position: relative;
display: block;
visibility: hidden;
top: -45px;
}

table {
border-collapse: collapse;
width: 100%;
font-size: 13px;
margin-bottom: 2em;

th,
td {
border: 1px solid theme('colors.gray.300');
padding: 10px;
text-align: left;
}

th {
font-size: 16px;
}
}

@screen sm {
a[name] {
position: relative;
display: block;
visibility: hidden;
top: -30px;
}
}
}

.docs_main {
.page_title {
display: none;
}

h1 {
font-size: 2.5em;
letter-spacing: 0em;
}

h2 {
font-size: 1.75em;
letter-spacing: 0;
}

h3 {
font-size: 1.25em;
letter-spacing: 0;
font-weight: 500;
}

h4 {
font-size: 1em;
font-weight: 500;
letter-spacing: 0;
}

h4 a, h3 a, h2 a {
color: theme('colors.gray.900');
}

h4 a:before,
h3 a:before,
h2 a:before {
content: "#";
font-weight: 400;
position: absolute;
color: theme('colors.red.600');
opacity: .6;
}

h3 a:before,
h2 a:before {
margin-left: -25px;
font-size: 28px;
}

h4 a:before {
margin-left: -18px;
font-size: 17px;
}

code {
font-size: 0.8rem;
font-weight: 500;
line-height: 1.9;
color: theme('colors.gray.900');
}

p {
font-size: 1rem;
line-height: 1.8em;

code {
font-size: 0.8rem;
}
}

ul:not(:first-of-type), .content-list ul {
list-style-type: none;
margin: 0 0 2.5em 0; padding: 0;

li {
position: relative;
display: block;
padding-left: 1.25em;
margin-bottom: 1rem;
font-size: .89em;
color: theme('colors.gray.700');
line-height: 1.714em;

a {
text-decoration: none;
}

code {
font-size: .875em;
}

&::before {
content: "";
position: absolute;
top: .40em; left: 0;
width: 9px; height: 10px;
background: url(/img/icons/ul_marker.min.svg) no-repeat center;
background-size: contain;
}
}
}
}

.docs_main h1 + ul {
margin-bottom: 4em;
list-style-type: none;
margin: 0;
padding: 0;

li {
display: block;
margin-bottom: .5em;

a {
position: relative;
font-size: .89em;
font-weight: 500;
color: theme('colors.gray.900');
text-decoration: none;

&::before {
content: "# ";
color: theme('colors.red.600');
}
}
}

ul {
margin-top: .5em;
padding: 0;
margin-bottom: 0;

li {
padding-left: 1.5em;

a {
font-weight: 400;
}
}
}
}
Loading

0 comments on commit b9d1568

Please sign in to comment.