Last active
December 11, 2015 23:08
-
-
Save magicmarkker/4674021 to your computer and use it in GitHub Desktop.
Sass snippet to create a css banner on (currently) left side of a block element
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=banner | |
float: none | |
position: relative | |
width: 20% | |
font-size: 1.2em | |
font-weight: normal | |
padding: 6px 10px 6px 30px | |
margin: 0px 10px 10px -30px | |
color: #626262 | |
background-color: darken(#f5f5f5, 10%) | |
-webkit-box-shadow: 0px 2px 4px #888 | |
-moz-box-shadow: 0px 2px 4px #888 | |
box-shadow: 0px 2px 4px #888 | |
&:after | |
content: ' ' | |
position: absolute | |
width: 0 | |
height: 0 | |
left: 0px | |
top: 100% | |
border-width: 0 10px 10px 0 | |
border-style: solid | |
border-color: #666 #666 transparent transparent | |
&.no-float | |
float: none!important | |
clear: both | |
h4 | |
+banner |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment