Skip to content

Instantly share code, notes, and snippets.

@danjdewhurst
Last active October 18, 2017 11:01
Show Gist options
  • Save danjdewhurst/22c0abb20508d081ec866f2b3b85d5da to your computer and use it in GitHub Desktop.
Save danjdewhurst/22c0abb20508d081ec866f2b3b85d5da to your computer and use it in GitHub Desktop.
Core WordPress Styles CSS Converted Into SCSS
.alignnone {
margin: 0 20px 20px 0;
}
.aligncenter,
div.aligncenter {
display: block;
margin: 0 auto 0 auto;
}
.alignright {
float:right;
margin: 0 0 20px 20px;
}
.alignleft {
float: left;
margin: 0 20px 20px 0;
}
a img {
&.alignright {
float: right;
margin: 0 0 20px 20px;
}
&.alignnone {
margin: 0 20px 20px 0;
}
&.alignleft {
float: left;
margin: 0 20px 20px 0;
}
&.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
}
.wp-caption {
background: #fff;
border: 1px solid #f0f0f0;
max-width: 96%;
padding: 0 3px 10px;
text-align: center;
&.alignnone {
margin: 0 20px 20px 0;
}
&.alignleft {
margin: 0 20px 20px 0;
}
&.alignright {
margin: 0 0 20px 20px;
}
img {
border: 0 none;
height: auto;
margin: 0;
max-width: 98.5%;
padding: 0;
width: auto;
}
p {
&.wp-caption-text {
font-size: 11px;
line-height: 17px;
margin: 0;
padding: 0 4px 0;
}
}
}
.screen-reader-text {
clip: rect(1px, 1px, 1px, 1px);
position: absolute !important;
white-space: nowrap;
height: 1px;
width: 1px;
overflow: hidden;
&:focus {
background-color: #f1f1f1;
border-radius: 3px;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
clip: auto !important;
color: #21759b;
display: block;
font-size: 14px;
font-size: 0.875rem;
font-weight: bold;
height: auto;
left: 0;
line-height: normal;
padding: 15px 23px 14px;
text-decoration: none;
top: 0;
width: auto;
z-index: 100000;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment