Skip to content

Instantly share code, notes, and snippets.

@dfravel
Created March 5, 2018 14:40
Show Gist options
  • Save dfravel/c6fee2bc3f7d6c9eb9839a17e303d86d to your computer and use it in GitHub Desktop.
Save dfravel/c6fee2bc3f7d6c9eb9839a17e303d86d to your computer and use it in GitHub Desktop.
Working on a custom WordPress theme for a client. Designer had created a staging site with some auto-generated css. I'm using that, the designer's PSDs (Layer 412 ... etc), some screenshots from the designer, and the client's live site to piece together this theme. _shame.scss has become the dumping ground for "I'll come back to this later"
.hidden {
display: none;
}
.clearfix {
&:before {
display: table;
content: " ";
}
&:after {
display: table;
content: " ";
clear: both;
}
}
.avatar {
display: none;
}
input[type="text"] {
color: #a3afbd;
background-color: rgba(0, 0, 0, 0.07);
border-left-color: rgba(0, 0, 0, 0);
border-right-color: rgba(0, 0, 0, 0);
font-size: 16px;
font-weight: 400;
border-left: 2px solid transparent;
border-right: 0 solid;
border-top: none;
border-bottom: none;
outline: 0 !important;
padding: 10px 1.3rem 10px 1.3rem;
border-radius: 0;
transition: color .2s ease-in;
&:focus {
color: #142547;
border-left-color: #0f73ed;
border-right-color: #0f73ed;
}
}
#searchsubmit {
height: 45px;
background-color: #0f73ed;
color: white;
margin-left: 0;
}
.navigation li a,
.navigation li a:hover,
.navigation li.active a,
.navigation li.disabled {
color: #fff;
text-decoration: none;
}
.navigation li {
display: inline;
}
.navigation li a,
.navigation li a:hover,
.navigation li.active a,
.navigation li.disabled {
background-color: #6FB7E9;
border-radius: 3px;
cursor: pointer;
padding: 12px;
padding: 0.75rem;
}
.navigation li a:hover,
.navigation li.active a {
background-color: #3C8DC5;
}
.on-page-navigation {
list-style: none;
padding-left: 0;
margin-bottom: 50px;
li {
padding-left: 0;
display: inline-block;
min-width: 170px;
max-width: 220px;
margin-bottom: 10px;
padding: 40px 50px 15px 10px;
background-color: #f4f4f4;
border-right: 5px solid;
box-shadow: 0 3px 6px -3px rgba(0, 0, 0, 0.3) !important;
@include media-breakpoint-down(sm) {
width: 100%;
display: block;
margin-bottom: 10px;
}
&:not(:last-child) {
border-right-color: rgba(15, 42, 61, .36);
}
&.current_page_item {
color: #fff;
background-color: #0f73ed;
>a {
color: $white;
text-decoration: none;
}
}
a {
color: #112143;
line-height: 1.2;
font-weight: 700;
padding-top: 30px;
position: relative;
text-align: center;
&:before {
position: absolute;
content: '';
top: 1rem;
left: 0;
width: 3rem;
height: 3px;
background-color: #e04625;
transition: background-color .2s linear;
}
}
&:hover {
color: #fff;
background-color: #0f73ed;
>a {
color: $white;
text-decoration: none;
}
}
}
}
.callout {
padding: 20px;
position: relative;
.module-head {
.title {
text-transform: uppercase;
color: #0f73ed;
font-size: 20px;
font-weight: 600;
padding-bottom: 10px;
}
&:after {
transition-delay: .5s;
position: absolute;
content: '';
left: 0;
width: 100px;
bottom: 0;
height: 3px;
background-color: #0f73ed;
transition: all .59s ease-in-out;
}
}
.textwidget {
p {
margin-top: 20px;
width: 80%;
padding: 100px 30px 30px 30px;
background-color: #0f73ed;
color: $white;
font-size: 15px;
font-style: italic;
box-shadow: 10px 10px 5px -5px rgba(150, 139, 150, 1);
}
&:before {
font-style: normal;
font-variant: normal;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
font-family: "Font Awesome 5 Pro";
font-size: 50px;
color: $white;
content: "\f10d";
position: absolute;
margin-top: 20px;
margin-left: 30px;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment