Created
February 19, 2014 17:13
-
-
Save peterpme/9096641 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: purple; | |
$color-brand-orange: orange; | |
$color-brand-green: #000; | |
$color-brand-blue: blue; | |
$color-brand-pink: 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; | |
} | |
/* By The Numbers */ | |
.segment.with-chart .blue &{ | |
@extend %segment-with-chart; | |
background:$color-brand-blue; | |
} | |
.segment.with-chart .purple &{ | |
@extend %segment-with-chart; | |
background:$color-brand-purple; | |
} | |
.segment.with-chart .pink &{ | |
@extend %segment-with-chart; | |
background:$color-brand-pink; | |
} | |
.segment.with-chart .green &{ | |
@extend %segment-with-chart; | |
background:$color-brand-green; | |
} | |
.segment.with-chart .orange &{ | |
@extend %segment-with-chart; | |
background:$color-brand-orange; | |
} | |
// Broke as hell don't use it. | |
// @mixin closeBtnCreator($color,$background:white){ | |
// .segment.with-chart.#{$color} &{ | |
// background:$background; | |
// @extend %segmentVars; | |
// } | |
// } | |
// @include closeBtnCreator($color-brand-green,black); | |
// @include closeBtnCreator($color-brand-orange); | |
// @include closeBtnCreator($color-brand-blue); | |
// @include closeBtnCreator($color-brand-pink); | |
// @include closeBtnCreator($color-brand-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 .blue .btn-close-container, .segment.with-chart .purple .btn-close-container, .segment.with-chart .pink .btn-close-container, .segment.with-chart .green .btn-close-container, .segment.with-chart .orange .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 */ | |
/* By The Numbers */ | |
} | |
.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; | |
} | |
.segment.with-chart .blue .btn-close-container { | |
background: blue; | |
} | |
.segment.with-chart .purple .btn-close-container { | |
background: purple; | |
} | |
.segment.with-chart .pink .btn-close-container { | |
background: pink; | |
} | |
.segment.with-chart .green .btn-close-container { | |
background: black; | |
} | |
.segment.with-chart .orange .btn-close-container { | |
background: orange; | |
} | |
.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