mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-26 20:40:41 +00:00
498 lines
6.9 KiB
CSS
498 lines
6.9 KiB
CSS
:root {
|
|
--midBlue: #3366cc;
|
|
--lightBlue: #3d72d7;
|
|
}
|
|
|
|
body {
|
|
overflow-x:hidden;
|
|
margin: 0px;
|
|
line-height: 1.5em;
|
|
font-size: 16px;
|
|
color: #111;
|
|
background-color: white;
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
|
|
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif !important;
|
|
}
|
|
|
|
table {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.info-table table tbody tr td:first-of-type {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.full-width {
|
|
margin-left: calc(50% - 50vw);
|
|
margin-right: calc(50% - 50vw);
|
|
}
|
|
|
|
.logo {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
|
|
font-size: 28px;
|
|
font-weight: bold;
|
|
|
|
}
|
|
.logo b {
|
|
font-weight: inherit;
|
|
color: var(--midBlue);
|
|
}
|
|
|
|
/*
|
|
.light {
|
|
}
|
|
|
|
.content{
|
|
}
|
|
*/
|
|
|
|
.top-nav {
|
|
line-height: 30px;
|
|
border-bottom: 1px solid #d0d0d0;
|
|
margin: 0px;
|
|
background-image: linear-gradient(#fff, #f4f5f5);
|
|
box-shadow: 0px 4px 15px 0px rgb(239, 239, 239);
|
|
margin-bottom:1em;
|
|
}
|
|
|
|
.hide {
|
|
display:none;
|
|
}
|
|
|
|
.active a {
|
|
font-weight: bold;
|
|
}
|
|
|
|
body .content code {
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
code:not(code[class*="language-"]) {
|
|
background: #3465a41f;
|
|
border-radius: 2px;
|
|
padding: 2px 5px;
|
|
}
|
|
|
|
.dark-hero {
|
|
background: url(/img/topo.svg), linear-gradient(#1f1f1f, #2d2d2d) ;
|
|
height: 240px;
|
|
line-height: 240px;
|
|
text-align: center;
|
|
vertical-align: center;
|
|
color: whitesmoke;
|
|
margin-top: -2em;
|
|
box-shadow:
|
|
inset 0px 11px 8px -10px #262626,
|
|
inset 0px -11px 8px -10px #262626;
|
|
border-bottom: 1px solid whitesmoke;
|
|
}
|
|
.dark-hero * {
|
|
opacity: 0;
|
|
transition: all 500ms ease-in;
|
|
}
|
|
.dark-hero sub {
|
|
display: inline-block;
|
|
position: relative;
|
|
top: 40px;
|
|
}
|
|
.dark-hero.appear * {
|
|
opacity: 1;
|
|
top: 10px;
|
|
}
|
|
.dark-hero .logo {
|
|
font-size: 100px;
|
|
}
|
|
.dark-hero .blue {
|
|
color: var(--lightBlue);
|
|
}
|
|
|
|
p {
|
|
margin: 0.5em 0;
|
|
}
|
|
|
|
blockquote {
|
|
border-left: 4px solid whitesmoke;
|
|
margin: 1em;
|
|
padding-left: 0.5em;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
}
|
|
|
|
.hero {
|
|
text-align: center;
|
|
font-size: 5em;
|
|
margin: 0;
|
|
line-height: 1em;
|
|
}
|
|
|
|
time {
|
|
font-weight: bold;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: var(--midBlue)
|
|
}
|
|
|
|
.center {
|
|
text-align: center;
|
|
}
|
|
|
|
.nav {
|
|
margin-bottom: 1em;
|
|
}
|
|
.nav ul {
|
|
list-style: none;
|
|
padding-left: 12px;
|
|
}
|
|
|
|
.hamburger {
|
|
display: none;
|
|
}
|
|
|
|
h2:not(:first-child) {
|
|
margin-top: 42px;
|
|
}
|
|
h3 {
|
|
margin-top: 32px;
|
|
}
|
|
h4 {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
*, *::before, *::after {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
ul {
|
|
margin-left: 12px;
|
|
}
|
|
|
|
ul li {
|
|
padding: 4px;
|
|
}
|
|
|
|
ol {
|
|
margin-left: 12px;
|
|
}
|
|
|
|
ol li {
|
|
padding: 4px;
|
|
}
|
|
|
|
@media(max-width:45rem) {
|
|
#nav {
|
|
height: 0px;
|
|
overflow: hidden;
|
|
text-align: center;
|
|
font-size: 22px;
|
|
}
|
|
#nav.show {
|
|
height: initial;
|
|
overflow: visible;
|
|
}
|
|
.hero {
|
|
font-size: 2.5em;
|
|
}
|
|
pre[class*="language-"] {
|
|
overflow-x: scroll !important;
|
|
border-radius: 0 !important;
|
|
}
|
|
.info-table {
|
|
overflow-x: scroll !important;
|
|
}
|
|
.no-mobile {
|
|
display: none !important;
|
|
}
|
|
.hamburger {
|
|
display: revert;
|
|
float: right;
|
|
}
|
|
.nav {
|
|
text-align: center;
|
|
font-size: 1.2em;
|
|
line-height: 1.3em;
|
|
}
|
|
}
|
|
|
|
@media(min-width:45em) {
|
|
.col {
|
|
display: table-cell;
|
|
}
|
|
.\31 {
|
|
width: 5%;
|
|
}
|
|
.\33 {
|
|
width: 22%;
|
|
}
|
|
.\34 {
|
|
width: 30%;
|
|
}
|
|
.\35 {
|
|
width: 40%;
|
|
}
|
|
.\32 {
|
|
width: 15%;
|
|
}
|
|
.content .row .nav,
|
|
.logo-wrapper{
|
|
width:12rem;
|
|
}
|
|
.row {
|
|
display: table;
|
|
table-layout: fixed;
|
|
/* border-spacing: 1em 0; */
|
|
}
|
|
}
|
|
|
|
.w-100,
|
|
.row {
|
|
width: 100%;
|
|
}
|
|
|
|
.card:focus {
|
|
outline: 0;
|
|
border: solid var(--midBlue);
|
|
}
|
|
|
|
hr {
|
|
outline: 0;
|
|
}
|
|
|
|
.card {
|
|
padding: 1em;
|
|
border: solid #eee;
|
|
}
|
|
|
|
a[href]:hover, .btn:hover {
|
|
opacity: .6;
|
|
}
|
|
|
|
.c {
|
|
padding: 0 .7em;
|
|
max-width: 40em;
|
|
margin: auto;
|
|
}
|
|
|
|
.c.wide-content {
|
|
max-width: 50em;
|
|
}
|
|
|
|
.btn.primary {
|
|
color: white;
|
|
background: var(--midBlue);
|
|
border: solid var(--midBlue);
|
|
}
|
|
|
|
td {
|
|
padding: 0.2em 0.2em 0.2em 0;
|
|
text-align: left;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
th {
|
|
padding: 0.2em 0.2em 0.2em 0;
|
|
text-align: left;
|
|
border-bottom: 2px solid #eee;
|
|
}
|
|
|
|
.btn {
|
|
padding: 1em;
|
|
letter-spacing: .1em;
|
|
text-transform: uppercase;
|
|
background: white;
|
|
border: solid;
|
|
cursor:pointer;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
pre {
|
|
overflow: auto;
|
|
font-size: 0.9em;
|
|
background-color: #272822;
|
|
}
|
|
|
|
table.delete-row-example .htmx-swapping {
|
|
opacity: 0;
|
|
transition: visibility 0s 1s, opacity 1s linear;
|
|
}
|
|
|
|
/* MENU */
|
|
|
|
.menu{
|
|
padding:1em 0;
|
|
}
|
|
|
|
.github-stars iframe{
|
|
max-width:95px
|
|
}
|
|
|
|
/* Content */
|
|
|
|
.content {
|
|
padding-top:1em;
|
|
}
|
|
|
|
h1,h2,h3,h4{
|
|
margin-bottom: .65em;
|
|
font-weight: 600;
|
|
line-height: 1em;
|
|
}
|
|
|
|
/* UL in content */
|
|
:not(.nav) ul{
|
|
padding-left: 1em;
|
|
}
|
|
|
|
.nav ul{
|
|
padding-left: 0;
|
|
}
|
|
|
|
.nav ul ul {
|
|
padding-left:12px;
|
|
}
|
|
|
|
|
|
@media(min-width:45em) {
|
|
|
|
/* Menu */
|
|
.menu,
|
|
.navigation > div{
|
|
display:flex;
|
|
align-items:center;
|
|
}
|
|
.navigation{
|
|
flex:1;
|
|
display:flex;
|
|
justify-content: space-between;
|
|
padding-left: calc(1em + 1.5vw);
|
|
}
|
|
.navigation-items > *:not(:last-child){
|
|
margin-right: calc(.5em + .7vw);
|
|
}
|
|
.github-stars{
|
|
display:flex;
|
|
align-items:center;
|
|
}
|
|
.github-stars a{
|
|
margin:0 calc(.5em + .7vw);
|
|
}
|
|
|
|
/* Content */
|
|
.content .col:not(:nth-child(1)):not(.nav) {
|
|
padding-left: calc(1em + 1.5vw);
|
|
}
|
|
.content .nav > p,
|
|
.content .nav #contents{
|
|
position: sticky;
|
|
|
|
}
|
|
|
|
.content .nav #contents{
|
|
top: 3.5em;
|
|
}
|
|
.content .nav #contents > ul {
|
|
max-height: calc(100vh - 5rem);
|
|
overflow-y: scroll;
|
|
}
|
|
|
|
.content .nav > p
|
|
{
|
|
position: sticky;
|
|
top: 2vh;
|
|
}
|
|
|
|
.shift-up-img {
|
|
position:relative;
|
|
top:-120px
|
|
}
|
|
|
|
}
|
|
|
|
@media(max-width:45rem) {
|
|
.github-stars{
|
|
text-align:center;
|
|
margin-top:1em;
|
|
}
|
|
.github-stars a{
|
|
display:block;
|
|
}
|
|
}
|
|
|
|
|
|
.logo-wrapper {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
table td:first-child code {
|
|
display: block;
|
|
background: none;
|
|
}
|
|
|
|
|
|
.search-box {
|
|
transition: all .2s ease-in-out;
|
|
width: 2.5rem;
|
|
padding: 4px 6px;
|
|
border: 2px solid #eee;
|
|
border-radius: 10px;
|
|
margin-right: 10px;
|
|
outline: 0;
|
|
}
|
|
|
|
.search-box::placeholder {
|
|
text-align: right;
|
|
}
|
|
|
|
.search-box:hover, .search-box:not(:placeholder-shown) {
|
|
border: 2px solid var(--midBlue);
|
|
}
|
|
|
|
.search-box:active, .search-box:focus, .search-box:not(:placeholder-shown) {
|
|
width: 10rem;
|
|
}
|
|
|
|
footer {
|
|
margin-top: 2em;
|
|
padding-top: 2em;
|
|
padding-bottom: 5em;
|
|
background-color: #f6f6f6;
|
|
}
|
|
|
|
footer .footer-menu {
|
|
text-align: right;
|
|
}
|
|
|
|
@media(max-width:45rem) {
|
|
footer .footer-haiku {
|
|
margin-bottom: 3em;
|
|
}
|
|
|
|
footer .footer-menu {
|
|
padding-top: 3em;
|
|
border-top: 1px solid #eee;
|
|
text-align: left;
|
|
}
|
|
}
|
|
pre[class|="language"] {
|
|
line-height: 1.3;
|
|
padding: .5rem;
|
|
margin: .5rem 0;
|
|
border-radius: .25rem;
|
|
color: lightgray;
|
|
}
|
|
.zola-anchor {
|
|
margin-left: -1.3rem;
|
|
margin-right: .3rem;
|
|
opacity: 40%;
|
|
}
|
|
.zola-anchor:hover {
|
|
opacity: 95%;
|
|
}
|