Revert "Use SugarSS"

This reverts commit 7319a7a940.
This commit is contained in:
Oliver Davies 2019-07-15 12:31:50 +01:00
parent 39cb8f202d
commit baf9ac5809
20 changed files with 120 additions and 95 deletions

View file

@ -1,4 +0,0 @@
module.exports = {
"parser": "sugarss",
"plugins": {}
}

8
resources/css/app.css Normal file
View file

@ -0,0 +1,8 @@
@import 'tailwindcss/base';
@import 'custom-base';
@import 'tailwindcss/components';
@import 'highlightjs/styles/github-gist';
@import 'custom-components';
@import 'tailwindcss/utilities';

View file

@ -1,8 +0,0 @@
@import 'tailwindcss/base'
@import 'custom-base.sss'
@import 'tailwindcss/components'
@import 'highlightjs/styles/github-gist'
@import 'custom-components.sss'
@import 'tailwindcss/utilities'

View file

@ -1,10 +1,13 @@
.button .button {
@apply bg-blue-600 border-blue-600 border inline-block text-white no-underline py-2 px-3 rounded text-sm @apply bg-blue-600 border-blue-600 border inline-block text-white no-underline py-2 px-3 rounded text-sm;
&:focus &:focus {
@apply py-2 px-3 m-0 @apply py-2 px-3 m-0
}
&:active, &:active,
&:focus, &:focus,
&:hover &:hover {
@apply bg-white text-blue-600 @apply bg-white text-blue-600
}
}

View file

@ -1,2 +1,3 @@
.container .container {
@apply w-full max-w-5xl px-4 mx-auto @apply w-full max-w-5xl px-4 mx-auto
}

View file

@ -0,0 +1,5 @@
p.lead {
@screen md {
@apply text-lg
}
}

View file

@ -1,3 +0,0 @@
p.lead
@screen md
@apply text-lg

View file

@ -1,16 +1,19 @@
.markup .markup {
@apply leading-normal @apply leading-normal;
h2, h2,
h3, h3,
h4 h4 {
@apply text-black font-bold mb-3 @apply text-black font-bold mb-3
}
h2 h2 {
@apply mt-8 mb-3 @apply mt-8 mb-3
}
h3 h3 {
@apply text-lg mt-8 @apply text-lg mt-8
}
p, p,
ul, ul,
@ -19,28 +22,38 @@
table, table,
figure, figure,
pre, pre,
[v-pre] [v-pre] {
&:not(:last-child) &:not(:last-child) {
@apply mb-6 @apply mb-6
}
}
ul ul {
@apply list-disc ml-5 @apply list-disc ml-5
}
code code {
@apply bg-gray-200 font-mono text-sm @apply bg-gray-200 font-mono text-sm
}
p, p,
li li {
code code {
@apply inline-block border border-gray-300 font-bold mx-px p-1 leading-none @apply inline-block border border-gray-300 font-bold mx-px p-1 leading-none
}
}
pre code, pre code,
.hljs .hljs {
@apply block leading-loose overflow-x-scroll p-6 @apply block leading-loose overflow-x-scroll p-6
}
figure, figure,
img img {
@apply block @apply block
}
figcaption figcaption {
@apply italic text-sm text-gray-800 text-center mb-0 mt-1 @apply italic text-sm text-gray-800 text-center mb-0 mt-1
}
}

View file

@ -1,11 +1,15 @@
.note .note {
@apply bg-blue-200 border-blue-600 border-l-4 mb-4 p-4 rounded @apply bg-blue-200 border-blue-600 border-l-4 mb-4 p-4 rounded;
> *:not(:first-child) > *:not(:first-child) {
@apply mt-6 @apply mt-6
}
p a p a {
@apply text-black underline @apply text-black underline;
&:hover &:hover {
@apply no-underline @apply no-underline
}
}
}

View file

@ -0,0 +1,18 @@
.table {
@apply w-full;
th {
@apply bg-gray-200 text-left;
}
th,
td {
@apply px-4 py-2 border border-solid border-gray-300;
}
}
table.is-striped {
tbody > tr:not(:nth-child(odd)) td {
@apply bg-gray-100;
}
}

View file

@ -1,13 +0,0 @@
.table
@apply w-full
th
@apply bg-gray-200 text-left
th,
td
@apply px-4 py-2 border border-solid border-gray-300
table.is-striped
tbody > tr:not(:nth-child(odd)) td
@apply bg-gray-100

View file

@ -0,0 +1,9 @@
.video-full {
@apply w-full relative;
padding-top: 56.25%;
iframe,
embed {
@apply absolute h-full left-0 top-0 w-full
}
}

View file

@ -1,7 +0,0 @@
.video-full
@apply w-full relative
padding-top: 56.25%
iframe,
embed
@apply absolute h-full left-0 top-0 w-full

View file

@ -1,2 +1,3 @@
.widget .widget {
@apply block mb-6 @apply block mb-6
}

View file

@ -0,0 +1,7 @@
.wrap {
@apply w-full max-w-3xl mx-auto;
&.is-wide {
@apply max-w-5xl
}
}

View file

@ -1,5 +0,0 @@
.wrap
@apply w-full max-w-3xl mx-auto
&.is-wide
@apply max-w-5xl

View file

@ -1,20 +1,27 @@
h1, h2, h3 h1, h2, h3 {
@apply font-bold @apply font-bold
}
h1 h1 {
@apply text-3xl @apply text-3xl
}
h2 h2 {
@apply text-2xl @apply text-2xl
}
img img {
@apply max-w-full h-auto @apply max-w-full h-auto
}
a a {
@apply text-blue-600 no-underline @apply text-blue-600 no-underline;
&:hover &:hover {
@apply underline @apply underline
}
}
blockquote blockquote {
@apply border-l-4 border-blue-600 pl-4 px-6 py-2 @apply border-l-4 border-blue-600 pl-4 px-6 py-2
}

View file

@ -0,0 +1,9 @@
@import 'components/button';
@import 'components/container';
@import 'components/lead';
@import 'components/markup';
@import 'components/note';
@import 'components/table';
@import 'components/video';
@import 'components/widget';
@import 'components/wrap';

View file

@ -1,9 +0,0 @@
@import 'components/button.sss'
@import 'components/container.sss'
@import 'components/lead.sss'
@import 'components/markup.sss'
@import 'components/note.sss'
@import 'components/table.sss'
@import 'components/video.sss'
@import 'components/widget.sss'
@import 'components/wrap.sss'

View file

@ -3,7 +3,7 @@ let mix = require('laravel-mix')
require('laravel-mix-purgecss') require('laravel-mix-purgecss')
mix.disableNotifications() mix.disableNotifications()
.postCss('resources/css/app.sss', 'source/dist/css', [ .postCss('resources/css/app.css', 'source/dist/css', [
require('postcss-import')(), require('postcss-import')(),
require('tailwindcss')('tailwind.config.js'), require('tailwindcss')('tailwind.config.js'),
require('postcss-nested')(), require('postcss-nested')(),
@ -23,14 +23,3 @@ mix.disableNotifications()
whitelistPatterns: [/language/, /hljs/], whitelistPatterns: [/language/, /hljs/],
whitelistPatternsChildren: [/^markdown$/] whitelistPatternsChildren: [/^markdown$/]
}) })
mix.webpackConfig({
module: {
rules: [
{
test: /\.sss?$/,
loader: 'postcss-loader'
}
]
}
})