Created
February 20, 2014 02:22
-
-
Save peterpme/9105865 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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
<div class="box"> | |
<p>sdkfjhsd fksdjfh sdfsdf sdf</p> | |
</div> |
This file contains hidden or 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
// ---- | |
// Sass (v3.3.0.rc.4) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
$color-brand-purple: #2c2c83; | |
$color-brand-orange: #ba5a3e; | |
$color-brand-green: #329648; | |
$color-brand-blue: #4b81c3; | |
$color-brand-pink: #c34aa1; | |
%bg-purple { | |
background-color: $color-brand-purple; | |
} | |
%bg-orange { | |
background-color: $color-brand-orange; | |
} | |
%bg-green { | |
background-color: $color-brand-green; | |
} | |
%bg-blue { | |
background-color: $color-brand-blue; | |
} | |
%bg-pink { | |
background-color: $color-brand-pink; | |
} | |
%segment-with-chart{ | |
width:26px; | |
height:26px; | |
font-size:18px; | |
color:white; | |
} | |
.btn-close-container{ | |
position:absolute; | |
top:0; | |
right:0; | |
font-family:sans-serif; | |
cursor:pointer; | |
border-radius:50%; | |
-webkit-border-radius:50%; | |
-moz-border-radius:50%; | |
%margin-reset{ | |
margin:0; | |
padding:0; | |
} | |
/* ====== GLOBAL REACH LANDING ====== */ | |
/* Overview Text */ | |
.segment--worldwide &{ | |
background:white; | |
color:#BED600; | |
bottom:10px; | |
right:10px; | |
top:auto; | |
width:30px; | |
height:30px; | |
font-size:17px; | |
} | |
// Not broke as hell - do use it | |
@mixin closeBtnCreator($color){ | |
.segment.with-chart.#{$color} & { | |
@extend %segment-with-chart; | |
@extend %bg-#{$color}; | |
} | |
} | |
@include closeBtnCreator(green); | |
@include closeBtnCreator(orange); | |
@include closeBtnCreator(blue); | |
@include closeBtnCreator(pink); | |
@include closeBtnCreator(orange); | |
.btn-close-inner{ | |
@extend %margin-reset; | |
width:100%; | |
height:100%; | |
top:0; | |
left:0; | |
display:table-cell; | |
vertical-align:middle; | |
} | |
& > .btn-close-outer{ | |
@extend .btn-close-inner; | |
display:table; | |
} | |
.btn-close-x{ | |
@extend %margin-reset; | |
text-align:center; | |
} | |
} |
This file contains hidden or 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
.segment.with-chart.orange .btn-close-container { | |
background-color: #ba5a3e; | |
} | |
.segment.with-chart.green .btn-close-container { | |
background-color: #329648; | |
} | |
.segment.with-chart.blue .btn-close-container { | |
background-color: #4b81c3; | |
} | |
.segment.with-chart.pink .btn-close-container { | |
background-color: #c34aa1; | |
} | |
.segment.with-chart.green .btn-close-container, .segment.with-chart.orange .btn-close-container, .segment.with-chart.blue .btn-close-container, .segment.with-chart.pink .btn-close-container { | |
width: 26px; | |
height: 26px; | |
font-size: 18px; | |
color: white; | |
} | |
.btn-close-container { | |
position: absolute; | |
top: 0; | |
right: 0; | |
font-family: sans-serif; | |
cursor: pointer; | |
border-radius: 50%; | |
-webkit-border-radius: 50%; | |
-moz-border-radius: 50%; | |
/* ====== GLOBAL REACH LANDING ====== */ | |
/* Overview Text */ | |
} | |
.btn-close-container .btn-close-inner, .btn-close-container > .btn-close-outer, .btn-close-container .btn-close-x { | |
margin: 0; | |
padding: 0; | |
} | |
.segment--worldwide .btn-close-container { | |
background: white; | |
color: #BED600; | |
bottom: 10px; | |
right: 10px; | |
top: auto; | |
width: 30px; | |
height: 30px; | |
font-size: 17px; | |
} | |
.btn-close-container .btn-close-inner, .btn-close-container > .btn-close-outer { | |
width: 100%; | |
height: 100%; | |
top: 0; | |
left: 0; | |
display: table-cell; | |
vertical-align: middle; | |
} | |
.btn-close-container > .btn-close-outer { | |
display: table; | |
} | |
.btn-close-container .btn-close-x { | |
text-align: center; | |
} |
This file contains hidden or 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
<div class="box"> | |
<p>sdkfjhsd fksdjfh sdfsdf sdf</p> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment