a new start
This commit is contained in:
46
_sass/pooleparty/__link__/_base.scss
Normal file
46
_sass/pooleparty/__link__/_base.scss
Normal file
@@ -0,0 +1,46 @@
|
||||
// THIS FILE IS AUTOGENERATED, DO NOT MODIFY!
|
||||
//
|
||||
// To change the contents of this file,
|
||||
// edit `_sass/pooleparty/_base.pre.scss`
|
||||
// and run `npm run build:css`.
|
||||
//
|
||||
// During development you can run `npm run watch:css`
|
||||
// to continuosly rebuild this file.
|
||||
|
||||
// Copyright (c) 2017 Florian Klampfer <https://qwtel.com/>
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
* {
|
||||
// box-sizing: border-box;
|
||||
// -webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@media (display-mode: standalone) {
|
||||
body {
|
||||
overscroll-behavior-y: contain;
|
||||
}
|
||||
}
|
||||
|
||||
:focus {
|
||||
outline-color: var(--accent-color)!important;
|
||||
}
|
||||
|
||||
::selection {
|
||||
background: var(--accent-color-faded);
|
||||
}
|
||||
|
||||
220
_sass/pooleparty/__link__/_code.scss
Normal file
220
_sass/pooleparty/__link__/_code.scss
Normal file
@@ -0,0 +1,220 @@
|
||||
// THIS FILE IS AUTOGENERATED, DO NOT MODIFY!
|
||||
//
|
||||
// To change the contents of this file,
|
||||
// edit `_sass/pooleparty/_code.pre.scss`
|
||||
// and run `npm run build:css`.
|
||||
//
|
||||
// During development you can run `npm run watch:css`
|
||||
// to continuosly rebuild this file.
|
||||
|
||||
// Copyright (c) 2020 Florian Klampfer <https://qwtel.com/>
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
code, pre {
|
||||
font-family: var(--code-font-family);
|
||||
}
|
||||
|
||||
code {
|
||||
@extend .color-transition;
|
||||
padding: .25em .5em;
|
||||
background-color: var(--gray-bg);
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
.figure-base {
|
||||
@extend .color-transition;
|
||||
margin-left: -1rem;
|
||||
margin-right: -1rem;
|
||||
|
||||
// Prevent code linebreaks and allow side-scrolling for better readability on mobile
|
||||
overflow-x: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
@include border-radius();
|
||||
}
|
||||
|
||||
.pre-base {
|
||||
@extend .figure-base;
|
||||
padding: 1rem;
|
||||
margin-bottom: 1.5rem;
|
||||
background-color: var(--gray-bg);
|
||||
|
||||
// HACK: prevents painting for some reason
|
||||
backface-visibility: hidden;
|
||||
|
||||
@media print {
|
||||
width: 100%!important;
|
||||
page-break-inside: avoid;
|
||||
break-inside: avoid-page;
|
||||
}
|
||||
}
|
||||
|
||||
pre {
|
||||
@extend .pre-base;
|
||||
margin-top: 0;
|
||||
display: block;
|
||||
font-size: .83em;
|
||||
line-height: 1.5em;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
pre > code {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
min-width: 100%;
|
||||
padding: 0;
|
||||
color: inherit;
|
||||
background-color: transparent;
|
||||
font-size: 1em;
|
||||
|
||||
// .__hl {
|
||||
// @extend .color-transition;
|
||||
// display: inline-block;
|
||||
// position: absolute;
|
||||
// left: -1rem;
|
||||
// right: -1rem;
|
||||
// background: var(--accent-color-highlight);
|
||||
// border-left: .25rem solid var(--accent-color-faded);
|
||||
// z-index: -1;
|
||||
// }
|
||||
}
|
||||
|
||||
.pre-header-common {
|
||||
@extend .color-transition;
|
||||
height: 2rem;
|
||||
border: none;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
|
||||
div.highlight {
|
||||
position: relative;
|
||||
|
||||
> .pre-header {
|
||||
@extend .figure-base;
|
||||
@extend .pre-header-common;
|
||||
display: block;
|
||||
color: var(--gray)!important;
|
||||
background-color: var(--gray-bg);
|
||||
overflow: clip;
|
||||
|
||||
> span {
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
> * {
|
||||
display: inline-block;
|
||||
padding: .3rem 1rem .2rem;
|
||||
}
|
||||
}
|
||||
|
||||
> button {
|
||||
@extend .pre-header-common;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: -1rem;
|
||||
color: var(--menu-text);
|
||||
background: none;
|
||||
border-left: 1px solid var(--border-color);
|
||||
border-right: 1px solid var(--border-color);
|
||||
border-top-left-radius: 0;
|
||||
padding-left: 1rem;
|
||||
padding-right: 1rem;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
opacity: 0;
|
||||
transition: opacity 300ms;
|
||||
|
||||
&:hover {
|
||||
background: var(--gray-bg);
|
||||
}
|
||||
|
||||
&.copy-success {
|
||||
> .icon-copy {
|
||||
animation-name: icon-copy;
|
||||
animation-duration: 1.5s;
|
||||
animation-timing-function: ease;
|
||||
}
|
||||
> .icon-checkmark {
|
||||
animation-name: icon-checkmark;
|
||||
animation-duration: 1.5s;
|
||||
animation-timing-function: ease;
|
||||
}
|
||||
}
|
||||
> .icon-copy {
|
||||
display: inline-block;
|
||||
}
|
||||
> .icon-checkmark {
|
||||
position: absolute;
|
||||
|
||||
top: 50%;
|
||||
margin-top: -3em;
|
||||
|
||||
left: 0;
|
||||
right: 0;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover > button {
|
||||
opacity: 1;
|
||||
transition: opacity 100ms;
|
||||
}
|
||||
|
||||
> .pre-header ~ pre.highlight {
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0;
|
||||
padding-top: .65rem;
|
||||
}
|
||||
|
||||
> .pre-header ~ button {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
body.no-break-layout {
|
||||
div.highlight > button {
|
||||
border-right: none;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes icon-checkmark {
|
||||
0% {
|
||||
transform: translateY(0);
|
||||
}
|
||||
15%, 85% {
|
||||
transform: translateY(2.5em);
|
||||
}
|
||||
100% {
|
||||
transform: translateY(5em);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes icon-copy {
|
||||
0% {
|
||||
transform: translateY(0);
|
||||
}
|
||||
15% {
|
||||
transform: translateY(2.5em);
|
||||
}
|
||||
15.01%, 85% {
|
||||
transform: translateY(-2.5em);
|
||||
}
|
||||
100% {
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
25
_sass/pooleparty/__link__/_footer.scss
Normal file
25
_sass/pooleparty/__link__/_footer.scss
Normal file
@@ -0,0 +1,25 @@
|
||||
// THIS FILE IS AUTOGENERATED, DO NOT MODIFY!
|
||||
//
|
||||
// To change the contents of this file,
|
||||
// edit `_sass/pooleparty/_footer.pre.scss`
|
||||
// and run `npm run build:css`.
|
||||
//
|
||||
// During development you can run `npm run watch:css`
|
||||
// to continuosly rebuild this file.
|
||||
|
||||
// Copyright (c) 2017 Florian Klampfer <https://qwtel.com/>
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
footer { margin-bottom: 2rem; }
|
||||
80
_sass/pooleparty/__link__/_footnotes.scss
Normal file
80
_sass/pooleparty/__link__/_footnotes.scss
Normal file
@@ -0,0 +1,80 @@
|
||||
// THIS FILE IS AUTOGENERATED, DO NOT MODIFY!
|
||||
//
|
||||
// To change the contents of this file,
|
||||
// edit `_sass/pooleparty/_footnotes.pre.scss`
|
||||
// and run `npm run build:css`.
|
||||
//
|
||||
// During development you can run `npm run watch:css`
|
||||
// to continuosly rebuild this file.
|
||||
|
||||
// Copyright (c) 2017 Florian Klampfer <https://qwtel.com/>
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
// Footnote number within body text
|
||||
a[href^="#fn:"],
|
||||
// Back to footnote link
|
||||
a[href^="#fnref:"] {
|
||||
margin-left: .1rem;
|
||||
font-weight: var(--font-weight-bold);
|
||||
|
||||
@media screen and (max-width: $break-point-4) {
|
||||
font-weight: normal;
|
||||
&::before { content: "["; }
|
||||
&::after { content: "]"; }
|
||||
}
|
||||
}
|
||||
|
||||
sup {
|
||||
line-height: 1;
|
||||
|
||||
&[id^="fnref"] {
|
||||
@media screen and (max-width: $break-point-4) {
|
||||
vertical-align: baseline;
|
||||
font-size: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// List of footnotes
|
||||
.footnotes {
|
||||
margin-top: 5rem;
|
||||
margin-bottom: 5rem;
|
||||
|
||||
> ol {
|
||||
color: var(--gray);
|
||||
|
||||
> li {
|
||||
padding: .5rem;
|
||||
margin-left: .5rem;
|
||||
> p { margin: 0; }
|
||||
&:focus {
|
||||
outline: none;
|
||||
color: var(--gray-text);
|
||||
background: var(--gray-bg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&::before {
|
||||
@extend .color-transition;
|
||||
content: "";
|
||||
display: block;
|
||||
margin: 1rem 0;
|
||||
border: 0;
|
||||
border-top: 1px solid var(--border-color);
|
||||
}
|
||||
}
|
||||
|
||||
25
_sass/pooleparty/__link__/_message.scss
Normal file
25
_sass/pooleparty/__link__/_message.scss
Normal file
@@ -0,0 +1,25 @@
|
||||
// THIS FILE IS AUTOGENERATED, DO NOT MODIFY!
|
||||
//
|
||||
// To change the contents of this file,
|
||||
// edit `_sass/pooleparty/_message.pre.scss`
|
||||
// and run `npm run build:css`.
|
||||
//
|
||||
// During development you can run `npm run watch:css`
|
||||
// to continuosly rebuild this file.
|
||||
|
||||
// Copyright (c) 2017 Florian Klampfer <https://qwtel.com/>
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
91
_sass/pooleparty/__link__/_pagination.scss
Normal file
91
_sass/pooleparty/__link__/_pagination.scss
Normal file
@@ -0,0 +1,91 @@
|
||||
// THIS FILE IS AUTOGENERATED, DO NOT MODIFY!
|
||||
//
|
||||
// To change the contents of this file,
|
||||
// edit `_sass/pooleparty/_pagination.pre.scss`
|
||||
// and run `npm run build:css`.
|
||||
//
|
||||
// During development you can run `npm run watch:css`
|
||||
// to continuosly rebuild this file.
|
||||
|
||||
// Copyright (c) 2017 Florian Klampfer <https://qwtel.com/>
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
.pagination {
|
||||
@extend .color-transition;
|
||||
width: calc(100% + 2rem);
|
||||
margin: 0 -1rem 1rem;
|
||||
color: var(--gray);
|
||||
text-align: center;
|
||||
|
||||
> ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Pagination items can be `span`s or `a`s
|
||||
.pagination-item {
|
||||
> * {
|
||||
display: block;
|
||||
padding: .25rem 1rem;
|
||||
border: solid var(--border-color);
|
||||
border-width: 1px 0;
|
||||
transition: border-color 1s ease;
|
||||
}
|
||||
|
||||
> a, > a:hover, > a:focus {
|
||||
border-color: var(--border-color)!important;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&:first-child > * {
|
||||
margin-bottom: -1px;
|
||||
}
|
||||
|
||||
// Only provide a hover state for linked pagination items
|
||||
> a:hover, > a:focus {
|
||||
background-color: var(--gray-bg);
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 23.5em) {
|
||||
.pagination {
|
||||
width: 100%;
|
||||
margin: 3rem 0;
|
||||
}
|
||||
|
||||
.pagination-item {
|
||||
> * {
|
||||
float: left;
|
||||
width: 50%;
|
||||
border-width: 1px;
|
||||
}
|
||||
|
||||
&:first-child > * {
|
||||
margin-bottom: 0;
|
||||
border-top-left-radius: 0.25rem;
|
||||
border-bottom-left-radius: 0.25rem;
|
||||
}
|
||||
|
||||
&:last-child > * {
|
||||
margin-left: -1px;
|
||||
border-top-right-radius: 0.25rem;
|
||||
border-bottom-right-radius: 0.25rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
55
_sass/pooleparty/__link__/_posts.scss
Normal file
55
_sass/pooleparty/__link__/_posts.scss
Normal file
@@ -0,0 +1,55 @@
|
||||
// THIS FILE IS AUTOGENERATED, DO NOT MODIFY!
|
||||
//
|
||||
// To change the contents of this file,
|
||||
// edit `_sass/pooleparty/_posts.pre.scss`
|
||||
// and run `npm run build:css`.
|
||||
//
|
||||
// During development you can run `npm run watch:css`
|
||||
// to continuosly rebuild this file.
|
||||
|
||||
// Copyright (c) 2017 Florian Klampfer <https://qwtel.com/>
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
|
||||
clap-button {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
--clap-button-color: var(--accent-color);
|
||||
}
|
||||
|
||||
clap-button + p.message {
|
||||
margin: -2rem auto 0;
|
||||
max-width: 32rem;
|
||||
font-size: smaller
|
||||
}
|
||||
|
||||
hr.dingbat {
|
||||
border: 0;
|
||||
&:after{
|
||||
content: "\2756";
|
||||
display: block;
|
||||
text-align: center;
|
||||
font-size: 1.5rem;
|
||||
color: var(--menu-text);
|
||||
}
|
||||
}
|
||||
|
||||
@media print {
|
||||
.page {
|
||||
margin-bottom: 0
|
||||
}
|
||||
}
|
||||
|
||||
46
_sass/pooleparty/__link__/_read-more.scss
Normal file
46
_sass/pooleparty/__link__/_read-more.scss
Normal file
@@ -0,0 +1,46 @@
|
||||
// THIS FILE IS AUTOGENERATED, DO NOT MODIFY!
|
||||
//
|
||||
// To change the contents of this file,
|
||||
// edit `_sass/pooleparty/_read-more.pre.scss`
|
||||
// and run `npm run build:css`.
|
||||
//
|
||||
// During development you can run `npm run watch:css`
|
||||
// to continuosly rebuild this file.
|
||||
|
||||
// Copyright (c) 2017 Florian Klampfer <https://qwtel.com/>
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
.read-more {
|
||||
@extend .faded;
|
||||
margin-top: 1.5rem;
|
||||
margin-bottom: 3rem;
|
||||
text-align: right;
|
||||
|
||||
&::after {
|
||||
content: " \2192";
|
||||
font-family: 'icomoon'!important;
|
||||
speak: none;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-variant: normal;
|
||||
text-transform: none;
|
||||
line-height: 1;
|
||||
font-size: smaller;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
}
|
||||
|
||||
33
_sass/pooleparty/__link__/_related.scss
Normal file
33
_sass/pooleparty/__link__/_related.scss
Normal file
@@ -0,0 +1,33 @@
|
||||
// THIS FILE IS AUTOGENERATED, DO NOT MODIFY!
|
||||
//
|
||||
// To change the contents of this file,
|
||||
// edit `_sass/pooleparty/_related.pre.scss`
|
||||
// and run `npm run build:css`.
|
||||
//
|
||||
// During development you can run `npm run watch:css`
|
||||
// to continuosly rebuild this file.
|
||||
|
||||
// Copyright (c) 2017 Florian Klampfer <https://qwtel.com/>
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
|
||||
|
||||
.comments {
|
||||
@media print {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
176
_sass/pooleparty/__link__/_table.scss
Normal file
176
_sass/pooleparty/__link__/_table.scss
Normal file
@@ -0,0 +1,176 @@
|
||||
// THIS FILE IS AUTOGENERATED, DO NOT MODIFY!
|
||||
//
|
||||
// To change the contents of this file,
|
||||
// edit `_sass/pooleparty/_table.pre.scss`
|
||||
// and run `npm run build:css`.
|
||||
//
|
||||
// During development you can run `npm run watch:css`
|
||||
// to continuosly rebuild this file.
|
||||
|
||||
// Copyright (c) 2017 Florian Klampfer <https://qwtel.com/>
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
table:not(.rouge-table) {
|
||||
@extend .figure-base;
|
||||
border-collapse: collapse;
|
||||
border-radius: 0!important;
|
||||
display: block;
|
||||
margin-bottom: 1.5rem;
|
||||
|
||||
td, th {
|
||||
@extend .color-transition;
|
||||
padding: .5em .75em;
|
||||
|
||||
&:first-child {
|
||||
padding-left: 1rem;
|
||||
border-left: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
padding-right: 1rem;
|
||||
border-right: 1px solid var(--border-color);
|
||||
}
|
||||
}
|
||||
|
||||
> *:first-child {
|
||||
border-top: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
> *:last-child {
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
thead {
|
||||
@extend .color-transition;
|
||||
background-color: var(--body-bg);
|
||||
}
|
||||
|
||||
thead + tbody,
|
||||
tbody + tbody,
|
||||
tfoot {
|
||||
@extend .color-transition;
|
||||
border-top: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
tbody tr:nth-child(even) td,
|
||||
tbody tr:nth-child(even) th {
|
||||
@extend .color-transition;
|
||||
background-color: var(--body-bg);
|
||||
}
|
||||
|
||||
tbody tr:nth-child(odd) td,
|
||||
tbody tr:nth-child(odd) th {
|
||||
@extend .color-transition;
|
||||
background-color: var(--gray-bg);
|
||||
}
|
||||
}
|
||||
|
||||
// CSS only Responsive Tables
|
||||
// http://dbushell.com/2016/03/04/css-only-responsive-tables/
|
||||
// by David Bushell
|
||||
@mixin scroll-table() {
|
||||
white-space: nowrap; // optional - looks better for small cell values
|
||||
}
|
||||
|
||||
@mixin flip-table() {
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
|
||||
thead, tbody {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
thead {
|
||||
flex-shrink: 0;
|
||||
min-width: min-content;
|
||||
border-left: 1px solid var(--border-color);
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
|
||||
th {
|
||||
padding-left: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
tbody {
|
||||
position: relative;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
tr {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: min-content;
|
||||
flex-shrink: 0;
|
||||
|
||||
&:last-child {
|
||||
border-right: 1px solid var(--border-color);
|
||||
td {
|
||||
padding-right: 1em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
td, th {
|
||||
display: block;
|
||||
|
||||
&:first-child {
|
||||
padding-left: .5em;
|
||||
border-left: none;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
padding-right: .5em;
|
||||
border-right: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
table.stretch-table {
|
||||
display: table;
|
||||
width: 100% !important;
|
||||
width: calc(100% + 2em) !important;
|
||||
// @media screen and (max-width: $break-point-4) {
|
||||
// display: block!important;
|
||||
// @include scroll-table();
|
||||
// }
|
||||
}
|
||||
|
||||
table.scroll-table {
|
||||
@include scroll-table();
|
||||
}
|
||||
|
||||
table.flip-table {
|
||||
@include flip-table();
|
||||
}
|
||||
|
||||
@media screen and (max-width: $break-point-4) {
|
||||
table.scroll-table-small {
|
||||
@include scroll-table();
|
||||
}
|
||||
|
||||
table.flip-table-small {
|
||||
@include flip-table();
|
||||
}
|
||||
}
|
||||
|
||||
@media print {
|
||||
table:not(.rouge-table) {
|
||||
width: 100%!important;
|
||||
}
|
||||
}
|
||||
|
||||
180
_sass/pooleparty/__link__/_type.scss
Normal file
180
_sass/pooleparty/__link__/_type.scss
Normal file
@@ -0,0 +1,180 @@
|
||||
// THIS FILE IS AUTOGENERATED, DO NOT MODIFY!
|
||||
//
|
||||
// To change the contents of this file,
|
||||
// edit `_sass/pooleparty/_type.pre.scss`
|
||||
// and run `npm run build:css`.
|
||||
//
|
||||
// During development you can run `npm run watch:css`
|
||||
// to continuosly rebuild this file.
|
||||
|
||||
// Copyright (c) 2017 Florian Klampfer <https://qwtel.com/>
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
.heading {
|
||||
font-family: var(--font-family-heading);
|
||||
font-weight: var(--font-weight-heading);
|
||||
}
|
||||
|
||||
.f1 {
|
||||
@extend .heading;
|
||||
font-size: 2rem;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.f2 {
|
||||
@extend .heading;
|
||||
font-size: 1.5rem;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.f3 {
|
||||
@extend .heading;
|
||||
font-size: 1.2em;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.f4 {
|
||||
@extend .heading;
|
||||
font-size: 1.08rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.f5 {
|
||||
@extend .heading;
|
||||
font-size: 1.04rem;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.f6 {
|
||||
@extend .heading;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .heading {
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
h1 + h2, .h1 + .h2, h1 + .h2, .h1 + h2,
|
||||
h2 + h3, .h2 + .h3, h2 + .h3, .h2 + h3,
|
||||
h3 + h4, .h3 + .h4, h3 + .h4, .h3 + h4,
|
||||
h4 + h5, .h4 + .h5, h4 + .h5, .h4 + h5,
|
||||
h5 + h6, .h5 + .h6, h5 + .h6, .h5 + h6 {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
dt, strong {
|
||||
font-weight: var(--font-weight-bold);
|
||||
}
|
||||
|
||||
dt:after{
|
||||
content: " :";
|
||||
color: var(--menu-text);
|
||||
}
|
||||
|
||||
dd {
|
||||
margin-bottom: .5rem;
|
||||
}
|
||||
|
||||
abbr {
|
||||
font-size: 85%;
|
||||
font-weight: var(--font-weight-bold);
|
||||
text-transform: uppercase;
|
||||
|
||||
&[title] {
|
||||
cursor: help;
|
||||
border-bottom: 1px dotted var(--border-color);
|
||||
}
|
||||
}
|
||||
|
||||
blockquote {
|
||||
@extend .color-transition;
|
||||
padding: .5rem 1rem;
|
||||
margin: .8rem 0;
|
||||
color: var(--gray);
|
||||
border-left: .25rem solid var(--border-color);
|
||||
|
||||
&.lead {
|
||||
font-size: 1.2em;
|
||||
margin-top: 1.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
border-left-width: 0.4rem;
|
||||
}
|
||||
|
||||
> p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.heading {
|
||||
font-weight: var(--font-weight-heading);
|
||||
}
|
||||
|
||||
.fine, .smaller {
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
.faded {
|
||||
@extend .color-transition;
|
||||
color: var(--gray);
|
||||
}
|
||||
|
||||
.centered {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h1[id], h2[id], h3[id], h4[id], h5[id], h6[id] {
|
||||
position: relative;
|
||||
|
||||
> .permalink {
|
||||
text-decoration: none;
|
||||
border: none;
|
||||
opacity: 0;
|
||||
transition: opacity 400ms;
|
||||
|
||||
@media print {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover > .permalink {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
& > .permalink:hover,
|
||||
& > .permalink:focus {
|
||||
opacity: 1;
|
||||
transition: opacity 200ms;
|
||||
}
|
||||
}
|
||||
|
||||
.content-hash::before {
|
||||
content: '#'
|
||||
}
|
||||
.content-json::before {
|
||||
content: '{}'
|
||||
}
|
||||
|
||||
@media print {
|
||||
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, dt {
|
||||
page-break-inside: avoid;
|
||||
break-inside: avoid-page;
|
||||
page-break-after: avoid;
|
||||
break-after: avoid-page;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user