wasmo-theme/style.css

615 lines
12 KiB
CSS
Raw Normal View History

/*!
Theme Name: WasMormon Theme
Theme URI: https://circlecube.com
Description: Theme for mormon profile site
Author: Evan Mullins
Author URI: https://circlecube.com
Template: twentynineteen
2020-02-12 18:22:45 +00:00
Version: 1.7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wasmo
GitHub Theme URI: https://github.com/circlecube/wasmo-theme
*/
:root {
--color-orange: #f07c27;
--color-pink: #d80c81;
--color-blue: #00aeeb;
--color-blue-2: #007099;
--color-blue-3: #004b66;
--color-white: #ffffff;
--color-gray0: #f2f2f2;
--color-gray1: #e8e8ea;
--color-gray2: #a5a6ab;
--color-gray3: #333333;
--color-orange-light: rgba(240, 124, 39, 0.05);
}
.site-header {
background: var(--color-orange);
color: var(--color-white);
}
.site-header a,
.main-navigation .main-menu > li > a {
color: var(--color-white);
text-transform: uppercase;
font-family: sans-serif;
}
.site-title a:link,
.site-title a:visited,
.site-description,
.main-navigation .main-menu > li {
color: var(--color-white);
}
.site-header {
padding: 0rem 1rem 1rem;
}
2019-03-14 12:33:15 +00:00
.site-description {
font-size: 18px;
2019-03-14 12:33:15 +00:00
}
.site-title:not(:empty) + .site-description:not(:empty):before {
content: none;
2019-03-14 12:33:15 +00:00
}
.site-title {
text-transform: lowercase;
font-style: italic;
2019-03-14 12:33:15 +00:00
}
2019-03-14 13:20:24 +00:00
.site-logo {
max-width: 80px;
z-index: 99;
2019-03-14 13:20:24 +00:00
}
2019-03-14 12:33:15 +00:00
.site-logo + .site-title {
display: none;
2019-03-14 12:33:15 +00:00
}
2019-03-14 12:39:57 +00:00
2019-03-14 12:33:15 +00:00
.site-logo .custom-logo-link {
border-radius: 0;
width: 80px;
height: 80px;
2019-03-14 12:33:15 +00:00
}
2019-03-14 13:20:24 +00:00
.site-logo .custom-logo-link:hover,
.site-logo .custom-logo-link:active,
2019-03-14 12:33:15 +00:00
.site-logo .custom-logo-link:focus {
box-shadow: 0 0 0 2px var(--color-white);
2019-03-14 12:33:15 +00:00
}
@media only screen and (min-width: 768px) {
/* desktop */
.site-header {
2019-03-14 12:54:30 +00:00
padding: 1rem 0 1rem;
}
2019-03-14 12:39:57 +00:00
.site-logo {
position: relative;
margin-bottom: calc(0.66 * 1rem);
top: initial;
right: initial;
z-index: 99;
2019-03-14 12:39:57 +00:00
}
}
.site-footer {
background: var(--color-gray3);
}
.jetpack_widget_social_icons svg.icon {
color: var(--color-gray2);
2019-04-02 15:04:15 +00:00
}
/* menu visibility toggles */
.menu-item.not-logged-in {
display: initial;
}
.menu-item.logged-in {
display: none;
}
body.logged-in .menu-item.not-logged-in {
display: none;
}
body.logged-in .menu-item.logged-in {
display: initial;
}
.site-branding-container {
position: relative;
}
.utility-navigation {
float: right;
font-size: 0.67rem;
}
.utility-navigation ul {
list-style: none;
margin: 0;
padding: 0;
}
.utility-navigation li {
display: inline-block;
margin-left: 0.67em;
}
.utility-navigation a:hover {
color: var(--color-blue-3);
}
.utility-navigation svg {
vertical-align: sub;
margin-right: 0.25rem;
}
/* Directory */
.entry .the-directory {
margin-bottom: 8rem;
max-width: 100%;
2019-04-16 13:31:51 +00:00
}
.entry .the-directory.directory-shortcode {
margin: 0 auto;
padding: 0;
max-width: 100%;
width: 100%;
2019-03-14 13:50:04 +00:00
}
.the-directory .directory {
width: 100%;
max-width: 100%;
2020-02-12 18:22:45 +00:00
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 1rem;
justify-content: space-between;
}
.the-directory .directory .person {
position: relative;
2020-02-12 18:22:45 +00:00
width: 100%;
padding-top: 100%;
margin: 0;
text-decoration: none;
}
@media only screen and (min-width: 768px) {
2020-02-12 18:22:45 +00:00
.the-directory .directory {
grid-template-columns: repeat(4, 1fr);
}
}
.directory .person .directory-img {
position: absolute;
width: 100%;
height: 0;
padding-top: 100%;
overflow: hidden;
top: 0;
left: 0;
2019-03-15 12:46:01 +00:00
}
.directory .person .directory-img img {
position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
top: 0;
left: 0;
}
.directory .person .directory-name {
position: absolute;
bottom: 0;
width: 100%;
z-index: 1;
2020-02-12 18:22:45 +00:00
background: rgba(0, 0, 0, 0.5);
padding: 0.25rem;
text-align: center;
text-decoration: none;
color: var(--color-white);
line-height: 1.1em;
2020-02-12 18:22:45 +00:00
opacity: 1;
transition: all 0.2s ease;
}
2020-02-12 18:22:45 +00:00
@media only screen and (min-width: 768px) {
.directory .person .directory-name {
opacity: 0;
}
.directory .person:hover .directory-name {
opacity: 1;
}
}
/* directory widget */
.widget .the-directory {
max-width: 90%;
margin: 0 auto 2rem;
}
.widget .the-directory .directory .person {
width: 30%;
padding-top: 30%;
}
@media only screen and (min-width: 768px) {
/* desktop - sidebar */
.widget .the-directory {
max-width: 100%;
margin: 0 auto 2rem;
}
.widget .the-directory .directory .person {
width: 30%;
padding-top: 30%;
}
.widget .directory .person:hover .directory-name {
opacity: 0;
}
}
/* profile */
article.user-profile {
padding-bottom: 8rem;
}
.acf-field textarea {
font-size: 18px;
overflow-wrap: normal;
white-space: normal;
word-break: normal;
padding: 0.5rem;
}
.acf-input .acf-url i {
top: 12px;
}
h1.hi,
h2.tagline {
margin: 0;
}
h1.hi:before,
h2.tagline:before {
content: none;
}
.entry .entry-content .content-header {
display: flex;
max-width: 100%;
width: 100%;
flex-direction: column;
}
2019-03-19 21:05:21 +00:00
.entry .content-header .content-right {
width: 100%;
2019-03-19 21:05:21 +00:00
}
2019-03-14 12:54:30 +00:00
.entry .content-header .content-left {
flex-basis: 200px;
min-width: 200px;
margin: 1rem 0;
text-align: center;
order: 0;
2019-03-14 12:39:57 +00:00
}
.content-left img {
max-width: 100%;
}
2019-03-15 12:46:18 +00:00
.entry .entry-content p {
line-height: 1.6;
font-size: 20px;
2019-03-15 12:46:18 +00:00
}
2019-03-18 19:24:30 +00:00
.buttons {
margin: 6rem 0;
2019-03-18 19:24:30 +00:00
}
2019-03-18 21:08:49 +00:00
.buttons .wp-block-button a {
margin: 0 1rem 1rem 0;
display: inline-block;
2019-03-18 21:08:49 +00:00
}
2019-03-18 19:27:06 +00:00
.entry .entry-content > *,
.entry .entry-summary > * {
/* max-width: 100%; */
2019-03-18 19:27:06 +00:00
}
@media only screen and (min-width: 768px) {
/* desktop */
.entry .entry-content .content-header {
flex-direction: row-reverse;
}
.entry .content-header .content-left {
margin: 0.75rem 1rem 1rem 0;
}
2019-03-14 12:33:15 +00:00
}
h2.tagline {
color: var(--color-gray2);
font-family: serif;
font-style: italic;
font-size: 1.5rem;
font-weight: normal;
line-height: 1.375em;
margin-top: 0.75rem;
}
.social-links {
list-style: none;
margin: 0;
padding: 0;
}
.social-links li {
display: inline-block;
}
.location {
font-size: 0.8rem;
color: var(--color-gray2);
font-style: italic;
}
2019-03-19 21:05:21 +00:00
.user-profile .edit-link {
display: block;
margin: 1rem 0;
2019-03-19 21:05:21 +00:00
}
2019-04-15 17:28:26 +00:00
.tags {
list-style: none;
margin: 0;
overflow: hidden;
2019-04-15 17:28:26 +00:00
padding: 0;
}
.tags li {
float: left;
2019-04-15 17:28:26 +00:00
}
.tag {
background: #eee;
border-radius: 3px 0 0 3px;
color: var(--color-gray3);
2019-04-15 17:28:26 +00:00
display: inline-block;
height: 26px;
line-height: 26px;
padding: 0 20px 0 23px;
position: relative;
margin: 0 10px 10px 0;
text-decoration: none;
transition: all 0.2s ease;
font-family: sans-serif;
font-size: 14px;
}
.tag::before {
background: #fff;
border-radius: 10px;
box-shadow: inset 0 1px rgba(0, 0, 0, 0.25);
content: "";
2019-04-15 17:28:26 +00:00
height: 6px;
left: 10px;
position: absolute;
width: 6px;
top: 10px;
transition: all 0.2s ease;
}
.tag::after {
background: #fff;
border-bottom: 13px solid transparent;
border-left: 10px solid #eee;
border-top: 13px solid transparent;
content: "";
2019-04-15 17:28:26 +00:00
position: absolute;
right: 0;
top: 0;
transition: all 0.2s ease;
}
.tag:hover {
background-color: var(--color-blue);
2019-04-15 17:28:26 +00:00
color: white;
}
.tag:hover::after {
border-left-color: var(--color-blue);
2019-04-15 17:28:26 +00:00
}
cite {
text-align: right;
display: block;
}
cite .directory-img {
width: 1.5rem;
height: 1.5rem;
}
cite .directory-img img {
object-fit: cover;
}
cite span {
display: inline-block;
vertical-align: text-top;
margin-left: 0.5rem;
2019-03-14 13:17:47 +00:00
}
.button-small,
.entry .entry-content .more-link {
font-size: 0.6rem;
padding: 0.5rem 0.76rem;
color: #fff;
transition: all 0.2s ease;
margin: 1rem 50% 0 0;
}
2019-03-14 13:17:47 +00:00
/* single blog post */
.single-post-main {
display: flex;
flex-direction: column;
}
2019-03-14 13:17:47 +00:00
@media only screen and (min-width: 768px) {
/* desktop */
2019-03-14 13:17:47 +00:00
.single-post-main {
display: flex;
flex-direction: row;
}
.single-post-main article {
width: 70%;
}
.single-post-main aside {
width: 20%;
font-size: 50%;
margin: 10rem 0 3rem;
}
}
/* blog home */
.blog-main {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-around;
margin: 0 auto;
max-width: 1080px;
}
.blog-main article.post {
margin: 0;
max-width: 33.33%;
min-width: 360px;
padding: 0 2rem;
}
.blog-main article.post .entry-header,
.blog-main article.post .entry-content,
.blog-main article.post .post-thumbnail {
margin-left: 0;
margin-right: 0;
max-width: 100%;
padding-left: 0;
padding-right: 0;
}
.blog-main article.post .entry-header {
font-size: 50%;
margin-top: 2rem;
}
.blog-main article.post .post-thumbnail {
margin-top: 1rem;
}
.entry .post-thumbnail {
margin-bottom: 0;
}
.entry .post-thumbnail.fit-ratio .post-thumbnail-inner {
filter: none;
width: 100%;
overflow: hidden;
position: relative;
height: 0;
padding-top: 56%;
}
.entry .post-thumbnail.fit-ratio .post-thumbnail-inner img {
object-fit: cover;
object-position: center center;
position: absolute;
top: 50%;
left: 50%;
width: 100%;
height: 100%;
display: block;
transform: translate(-50%, -50%);
}
.image-filters-enabled .entry .post-thumbnail:after {
content: none;
}
2019-03-14 13:17:47 +00:00
.widget .recent_posts {
list-style: none;
margin: 0 0 2rem;
padding: 0;
}
.widget .recent_posts h3 {
margin-top: 0;
font-size: 1.5em;
}
.widget .recent_posts .post-thumbnail {
margin: 0;
}
2019-03-14 13:17:47 +00:00
/* footer widget / lwa modal */
.lwa-modal {
width: 50%;
max-width: 500px;
min-width: 400px;
2019-03-14 13:17:47 +00:00
}
.lwa-avatar {
display: none;
2019-03-14 13:17:47 +00:00
}
2019-03-14 13:29:15 +00:00
.lwa-info a {
display: none;
2019-03-14 13:17:47 +00:00
}
2019-03-14 13:29:15 +00:00
.lwa-info a#wp-logout {
display: inline-block;
2019-03-14 13:29:15 +00:00
}
2019-03-14 13:23:55 +00:00
.widget a#wp-logout,
.widget a.lwa-links-modal {
color: var(--color-gray1);
border: 2px solid var(--color-gray1);
padding: 0.15rem 0.5rem;
border-radius: 5px;
font-size: 0.75rem;
text-transform: capitalize;
transition: all 0.2s ease;
2019-03-14 13:17:47 +00:00
}
2019-03-14 13:23:55 +00:00
.widget a#wp-logout:hover,
.widget a.lwa-links-modal:hover {
background: rgba(255, 255, 255, 0.15);
color: var(--color-white);
}
/* colors
a,
#colophon .site-info a:hover,
.main-navigation .main-menu > li > a:hover,
.main-navigation .main-menu > li > a:hover + svg,
.entry .entry-content .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color),
.entry .entry-content .wp-block-button.is-style-outline .wp-block-button__link:focus:not(.has-text-color),
.entry .entry-content .wp-block-button.is-style-outline .wp-block-button__link:active:not(.has-text-color) {
color: var(--color-blue);
}
blockquote {
border-left: 2px solid var(--color-blue);
}
.entry .entry-content .wp-block-button .wp-block-button__link:not(.has-background) {
background-color: var(--color-blue);
}
a:hover,
a:active {
color: var(--color-blue-2);
}
.main-navigation .sub-menu,
.entry .entry-content .wp-block-button .wp-block-button__link:not(.has-background):hover {
background-color: var(--color-blue-2);
}
.main-navigation .sub-menu > li > a:hover, .main-navigation .sub-menu > li > a:focus,
.main-navigation .sub-menu > li > .menu-item-link-return:hover,
.main-navigation .sub-menu > li > .menu-item-link-return:focus,
.main-navigation .sub-menu > li > a:hover:after, .main-navigation .sub-menu > li > a:focus:after,
.main-navigation .sub-menu > li > .menu-item-link-return:hover:after,
.main-navigation .sub-menu > li > .menu-item-link-return:focus:after {
background: var(--color-blue-3);
}
2019-03-22 18:25:10 +00:00
*/
.the-questions {
margin-top: 0;
}
.callout {
background: var(--color-orange-light);
border: 1px solid var(--color-blue);
padding: 2rem;
}
2020-02-10 11:05:42 +00:00
.site-info {
text-align: center;
}
.site-info a {
display: block;
}
.footer-navigation .footer-menu {
display: flex;
justify-content: center;
flex-direction: column;
}
@media only screen and (min-width: 768px) {
/* desktop */
.footer-navigation .footer-menu {
flex-direction: row;
}
}