etcskel-32m/assets/css/main.css

327 lines
6.6 KiB
CSS
Raw Normal View History

2022-12-02 18:14:59 +00:00
/* 32m custom styles */
/* Note the default style are mobile versions, with overrides for desktop. */
2022-12-02 18:14:59 +00:00
:root {
--red32m: #A02827;
--white32m: #FFFFFF;
--grey32m: #ECECEC;
--lrmargin: 2vw;
--desktop-lrmargin: 25vw;
2022-12-20 21:34:56 +00:00
--typeface: 'Fivo Sans';
--typeface-body: 'Fivo Sans';
2022-12-02 18:14:59 +00:00
--font-weight-bold: 700;
--font-weight-medium: 400;
2022-12-20 21:38:26 +00:00
--font-size-normal: 1.3rem;
2022-12-20 21:36:29 +00:00
--font-size-large: 1.3em;
--font-size-xlarge: 1.5em;
2022-12-02 18:14:59 +00:00
}
html {
background: none;
padding: 0 !important;
margin: 0 !important;
}
body {
background-color: var(--white32m);
font-family: var(--typeface);
font-weight: var(--weight-medium);
width: 100%;
margin: 0 !important;
padding: 0 !important;
border-radius: none;
box-shadow: none;
max-width: 100%;
2022-12-20 21:38:26 +00:00
font-size: var(--font-size-normal);
2022-12-02 18:14:59 +00:00
}
2022-12-06 17:20:15 +00:00
p#copyright-footer {
2022-12-06 17:33:37 +00:00
display: none;
2022-12-06 17:20:15 +00:00
}
2022-12-02 18:14:59 +00:00
div#page {
font-family: var(--typeface);
font-weight: var(--weight-medium);
width: 100%;
margin: 0;
padding: 0;
border-radius: none;
box-shadow: none;
max-width: 100%;
}
body.home {
background-color: var(--red32m);
color: var(--white32m);
padding: 0;
margin: auto;
2022-12-02 18:14:59 +00:00
}
body > div#page header#masthead {
background-color: var(--red32m);
2022-12-02 18:14:59 +00:00
}
body.home > div#page header#masthead {
background-color: var(--white32m);
}
body.home > div#page article header {
display: none;
}
2022-12-02 18:14:59 +00:00
body.home > div#page article div.entry-content {
color: white;
font-weight: var(--weight-bold);
font-size: var(--font-size-normal);
2022-12-02 18:14:59 +00:00
}
body.home form#search-form {
display: none;
}
2022-12-29 18:32:44 +00:00
header#masthead {
display: flex;
flex-direction: column;
}
2022-12-02 18:14:59 +00:00
h1.site-title {
display: none;
}
div.site-logo > a > img.custom-logo {
width: 8.5rem;
height: 8.5rem;
2022-12-02 18:14:59 +00:00
}
div.site-logo {
margin: auto;
2022-12-02 18:14:59 +00:00
}
div#content {
margin-left: var(--lrmargin);
margin-right: var(--lrmargin);
}
footer#colophon {
background: var(--grey32m);
margin: 0;
padding: 0;
2022-12-29 19:11:31 +00:00
margin-top: 2em;
2022-12-02 18:14:59 +00:00
}
footer#colophon > p {
margin-left: var(--lrmargin);
margin-right: var(--lrmargin);
}
2022-12-06 18:07:07 +00:00
footer#colophon div.widget-area {
margin-left: var(--lrmargin);
margin-right: var(--lrmargin);
}
footer#colophon {
background: none;
color: var(--red32m);
}
2022-12-02 18:14:59 +00:00
body.home footer#colophon {
background: none;
color: var(--white32m);
}
footer#colophon a,
footer#colophon a:link,
footer#colophon a:visited,
footer#colophon a:hover {
background: none;
color: var(--red32m);
text-decoration: none;
}
footer#colophon a:hover {
background: none;
color: var(--red32m);
text-decoration: underline;
}
2022-12-06 18:08:47 +00:00
body.home footer#colophon a,
body.home footer#colophon a:link,
body.home footer#colophon a:visited,
body.home footer#colophon a:hover {
color: var(--white32m);
}
body.home footer#colophon a:hover {
color: var(--white32m);
}
nav#site-navigation {
display: flex;
height: auto;
margin: auto;
}
2022-12-02 18:49:15 +00:00
nav#site-navigation ul#primary-menu-list {
display: flex;
margin: 0;
padding: 0;
2022-12-02 18:49:15 +00:00
}
nav#site-navigation ul#primary-menu-list li.menu-item {
margin: 1em;
list-style-type: none;
}
nav#site-navigation ul#primary-menu-list li.menu-item a,
nav#site-navigation ul#primary-menu-list li.menu-item a:hover,
nav#site-navigation ul#primary-menu-list li.menu-item a:visited {
color: var(--white32m);
text-decoration: underline;
text-transform: uppercase;
2022-12-02 18:49:15 +00:00
}
body.home nav#site-navigation ul#primary-menu-list li.menu-item a,
body.home nav#site-navigation ul#primary-menu-list li.menu-item a:hover,
body.home nav#site-navigation ul#primary-menu-list li.menu-item a:visited {
color: var(--red32m);
}
2022-12-07 18:07:38 +00:00
.compact-keyvalue-table .wp-block-columns {
margin: 0;
padding: 0;
}
.compact-keyvalue-table .wp-block-column {
margin: 0;
padding: 0;
flex-grow: 0;
2022-12-07 18:07:38 +00:00
}
.compact-keyvalue-table .wp-block-column p {
margin: 0;
padding: 0.25em;
2022-12-07 18:07:38 +00:00
}
2022-12-02 18:49:15 +00:00
2022-12-07 18:17:49 +00:00
.compact-keyvalue-table.ckt-right .wp-block-column p {
2022-12-29 18:59:05 +00:00
text-align: left;
2022-12-07 18:17:49 +00:00
}
2022-12-07 18:19:22 +00:00
.widget-area div#address-widget p {
2022-12-07 18:17:49 +00:00
margin: 0;
padding: 0.25em;
2022-12-07 18:17:49 +00:00
}
2022-12-29 19:11:31 +00:00
:where(.wp-block-columns.is-layout-flex) {
gap: 0.25em;
}
2022-12-29 18:59:05 +00:00
/* override wordpress automatic squishing for mobile */
2022-12-29 19:01:41 +00:00
footer#colophon div.widget-area div.compact-keyvalue-table {
flex-basis: auto !important;
}
footer#colophon .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
2022-12-29 18:59:05 +00:00
flex-basis: auto !important;
}
2023-01-11 01:41:14 +00:00
/* Normal desktop size */
2023-01-11 01:51:50 +00:00
@media (min-width: 785px) {
2022-12-29 18:32:44 +00:00
header#masthead {
display: flex;
flex-direction: row;
}
body.home > div#page article div.entry-content {
color: white;
font-weight: var(--weight-bold);
font-size: var(--font-size-xlarge);
}
2022-12-07 18:22:07 +00:00
body.home > div#page header#masthead {
margin-bottom: 15vh;
2022-12-07 18:22:07 +00:00
}
div#content {
margin-bottom: 20vh;
}
2022-12-02 18:14:59 +00:00
div.site-logo {
2022-12-29 18:32:44 +00:00
margin: 0;
2022-12-02 18:14:59 +00:00
margin-left: var(--desktop-lrmargin);
}
div#content {
margin-left: var(--desktop-lrmargin);
margin-right: var(--desktop-lrmargin);
}
2022-12-29 19:11:31 +00:00
footer#colophon {
margin: 0;
}
2022-12-02 18:14:59 +00:00
footer#colophon > p {
margin-left: var(--desktop-lrmargin);
margin-right: var(--desktop-lrmargin);
}
2022-12-06 17:33:37 +00:00
2022-12-06 18:07:07 +00:00
footer#colophon > div.widget-area {
margin-left: var(--desktop-lrmargin);
margin-right: var(--desktop-lrmargin);
}
2022-12-06 17:33:37 +00:00
nav#site-navigation {
2022-12-06 17:40:39 +00:00
margin-right: var(--desktop-lrmargin);
height: 5.5rem;
2022-12-06 17:33:37 +00:00
}
nav#site-navigation ul#primary-menu-list {
padding-left: 2em;
margin-top: 1em;
margin-bottom: 1em;
}
footer#colophon .compact-keyvalue-table {
2023-01-11 01:48:41 +00:00
white-space: nowrap;
}
footer#colophon .compact-keyvalue-table.ckt-right .wp-block-column p {
2022-12-29 18:59:05 +00:00
text-align: right;
}
footer#colophon .compact-keyvalue-table .wp-block-column p {
padding: 0;
}
footer#colophon .widget-area div#address-widget p {
padding: 0;
}
2022-12-29 19:45:21 +00:00
footer#colophon div.widget-area div.compact-keyvalue-table {
flex-basis: 50% !important;
}
footer#colophon .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
flex-basis: 50% !important;
}
2022-12-02 18:14:59 +00:00
}
2023-01-11 01:41:14 +00:00
/* Very small screens should cause the menu to fold up and the header to get smol */
@media (max-width: 400px) {
div.site-logo > a > img.custom-logo {
width: 5.5rem;
height: 4.5rem;
}
header#masthead > div.site-branding { heigt: 0px; margin: 0px; padding: 0px;}
header#masthead > p.site-description { heigt: 0px; margin: 0px; padding: 0px;}
header#masthead li.menu-item { margin: 0.25em; }
nav#site-navigation ul#primary-menu-list { flex-wrap: wrap; padding: 0.5em; }
}