Created
February 19, 2014 23:07
-
-
Save socklint/9103556 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
<!doctyp html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Test</title> | |
</head> | |
<body> | |
<div class="all"> | |
<p>Test</p> | |
</div> | |
</body> | |
</html> |
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
// ---- | |
// Sass (v3.3.0.rc.4) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
/* | |
Variables, Nesting, Partials, Import, Mixins, Extend (Inheritance), Operators | |
*/ | |
// Colors: | |
$color-text:#fff; // standard darkish gray | |
// co-mn-ua = color main unadulterated: | |
$co-mn-ua:rgb(232,110,164); // mahaffie red | |
// co-mn-lt = color main lightened (e.g. for a link background): | |
$co-mn-lt:lighten(desaturate($co-mn-ua,10%),60%); // main light bg | |
// co-mn-dk = color main darkened (e.g. for blocks of copy): | |
$co-mn-dk:darken(desaturate($co-mn-ua,10%),10%); | |
// co-bg-ua = color main unadulterated: | |
$co-bg-ua:#e89c11; // mahaffie gold | |
$serif-std:'Playfair Display',serif; | |
// Mixins: | |
@mixin border-radius($radius) { | |
-webkit-border-radius: $radius; | |
-moz-border-radius: $radius; | |
-ms-border-radius: $radius; | |
-o-border-radius: $radius; | |
border-radius: $radius; | |
} | |
@mixin dd($color){ | |
color: darken(desaturate($color,10%),10%); | |
} | |
// debug: | |
.remove{ | |
display:none!important; | |
} | |
.removal-candidate{ | |
@extend .remove | |
} | |
// reset: | |
body { | |
font-family:$serif-std; | |
font-weight: 400; | |
} | |
body, p, h1, h2, h3, h4, h5, h6, ul, ol, li, dl, dt, dd { | |
line-height: 1.75; | |
font-size: 11pt; | |
color: darken($co-mn-ua,15%); | |
} | |
div { | |
outline:1px solid rgba(0,0,0,.33); | |
background-color:rgba(255,255,255,.1); | |
margin: 0; | |
padding: 0; | |
border: none; | |
} | |
p, h1, h2, h3, h4, h5, h6, ul, ol, dl { | |
margin: 15px 0px; | |
} | |
// everything else: | |
div#main { | |
background: white !important; | |
@include border-radius(10px); | |
h1 { | |
color: darken($co-mn-ua,50%); | |
font-weight: 700; | |
font-style: italic; | |
font-size: 16.5pt; | |
} | |
h2 { | |
padding-bottom: 0; | |
margin-bottom: 0; | |
} | |
p.explanatory-note { | |
font-style: italic; | |
color: #aaa; | |
margin-top: 0; | |
padding-top: 0; | |
} | |
} | |
#all #banner h1 { | |
text-align: center; | |
color: #3c1616 !important; | |
} | |
div#navigation { | |
background: #f4e2e1 !important; | |
background-color: white; | |
float: left; | |
width: 100%; | |
text-align: center; | |
margin-bottom: 20px; | |
border-top: 1px solid #eccbcb; | |
border-bottom: 1px solid #eccbcb; | |
&:hover { | |
border-top: 1px solid #dfa6a5; | |
border-bottom: 1px solid #dfa6a5; | |
} | |
&>ul{ | |
padding-left: 0; | |
margin-left: 15px; | |
&>li{ | |
float:left; | |
list-style-type: none; | |
margin-right: 15px; | |
padding-left: 0; | |
margin-left: 0; | |
} | |
} | |
a { | |
color: $co-mn-ua; | |
text-decoration: none; | |
display: inline-block; | |
&:link { | |
color: desturate($co-mn-ua, 50%); | |
} | |
&:visited { | |
color: desturate($co-mn-ua, 25%); | |
} | |
&:hover { | |
background-color: $co-mn-ua; | |
color: white; | |
margin: 0 -5px; | |
padding: 0 5px; | |
text-decoration: none; | |
outline: 1px double $co-mn-ua; | |
} | |
} | |
} | |
#content a { | |
color: $co-mn-ua; | |
&:link { | |
color: desturate($co-mn-ua, 50%); | |
} | |
&:visited { | |
color: desturate($co-mn-ua, 25%); | |
} | |
&:hover { | |
background-color: lighten(desaturate($co-mn-ua,10%),60%); | |
@include dd($co-mn-ua); | |
text-decoration: none; | |
} | |
} | |
@media only screen and (min-width: 800px) { | |
body { | |
background: $co-mn-ua; | |
} | |
div{ | |
&#all { | |
margin: 10px auto; | |
text-align: center; | |
width: 800px; | |
} | |
&#not_quite_almost_all { | |
text-align: left; | |
} | |
&#main { | |
float: left; | |
width: 750px; | |
box-shadow: 0px 5px 10px #000; | |
margin-bottom: 30px; | |
padding: 2px 15px; | |
} | |
&#navigation { | |
width: 774px; | |
margin-left: -15px; | |
margin-right: -15px; | |
padding: 0 3px; | |
} | |
&#content { | |
width: 750px; | |
} | |
&#beliefs { | |
width: 750px; | |
float: left; | |
} | |
&#church_info { | |
text-align: center; | |
width: 260px; | |
float: left; | |
} | |
&#chapel_photo { | |
text-align: center; | |
width: 490px; | |
float: right; | |
} | |
&#meeting_location { | |
text-align: center; | |
width: 490px; | |
margin-left: 250px; | |
} | |
&#pastor_info { | |
float: right; | |
padding-top: 75px; | |
text-align: center; | |
width: 350px; | |
} | |
} | |
img#meeting_place { | |
width: 450px; | |
height: 315px; | |
} | |
} | |
@media only screen and (max-width: 799px) { | |
body { | |
background: white; | |
} | |
div { | |
margin: 0 !important; | |
padding: 0 !important; | |
border: none !important; | |
&#main { | |
background: #eee; | |
width: 100%; | |
> * { | |
margin: 0px 10px; | |
padding: 10px 0; | |
} | |
} | |
&#preface { | |
background: #ccc; | |
} | |
&#navigation { | |
margin: 0 -50px; | |
} | |
} | |
img#meeting_place { | |
width: 300px !important; | |
height: 210px !important; | |
} | |
} | |
@media only screen and (max-width: 400px) { | |
img#meeting_place { | |
width: 150px !important; | |
height: 105px !important; | |
} | |
} |
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
/* | |
Variables, Nesting, Partials, Import, Mixins, Extend (Inheritance), Operators | |
*/ | |
.remove, .removal-candidate { | |
display: none !important; } | |
body { | |
font-family: "Playfair Display", serif; | |
font-weight: 400; } | |
body, p, h1, h2, h3, h4, h5, h6, ul, ol, li, dl, dt, dd { | |
line-height: 1.75; | |
font-size: 11pt; | |
color: #de2c7b; } | |
div { | |
outline: 1px solid rgba(0, 0, 0, 0.33); | |
background-color: rgba(255, 255, 255, 0.1); | |
margin: 0; | |
padding: 0; | |
border: none; } | |
p, h1, h2, h3, h4, h5, h6, ul, ol, dl { | |
margin: 15px 0px; } | |
div#main { | |
background: white !important; | |
-webkit-border-radius: 10px; | |
-moz-border-radius: 10px; | |
-ms-border-radius: 10px; | |
-o-border-radius: 10px; | |
border-radius: 10px; } | |
div#main h1 { | |
color: #4b0c28; | |
font-weight: 700; | |
font-style: italic; | |
font-size: 16.5pt; } | |
div#main h2 { | |
padding-bottom: 0; | |
margin-bottom: 0; } | |
div#main p.explanatory-note { | |
font-style: italic; | |
color: #aaa; | |
margin-top: 0; | |
padding-top: 0; } | |
#all #banner h1 { | |
text-align: center; | |
color: #3c1616 !important; } | |
div#navigation { | |
background: #f4e2e1 !important; | |
background-color: white; | |
float: left; | |
width: 100%; | |
text-align: center; | |
margin-bottom: 20px; | |
border-top: 1px solid #eccbcb; | |
border-bottom: 1px solid #eccbcb; } | |
div#navigation:hover { | |
border-top: 1px solid #dfa6a5; | |
border-bottom: 1px solid #dfa6a5; } | |
div#navigation > ul { | |
padding-left: 0; | |
margin-left: 15px; } | |
div#navigation > ul > li { | |
float: left; | |
list-style-type: none; | |
margin-right: 15px; | |
padding-left: 0; | |
margin-left: 0; } | |
div#navigation a { | |
color: #e86ea4; | |
text-decoration: none; | |
display: inline-block; } | |
div#navigation a:link { | |
color: desturate(#e86ea4, 50%); } | |
div#navigation a:visited { | |
color: desturate(#e86ea4, 25%); } | |
div#navigation a:hover { | |
background-color: #e86ea4; | |
color: white; | |
margin: 0 -5px; | |
padding: 0 5px; | |
text-decoration: none; | |
outline: 1px double #e86ea4; } | |
#content a { | |
color: #e86ea4; } | |
#content a:link { | |
color: desturate(#e86ea4, 50%); } | |
#content a:visited { | |
color: desturate(#e86ea4, 25%); } | |
#content a:hover { | |
background-color: white; | |
color: #d64d8a; | |
text-decoration: none; } | |
@media only screen and (min-width: 800px) { | |
body { | |
background: #e86ea4; } | |
div#all { | |
margin: 10px auto; | |
text-align: center; | |
width: 800px; } | |
div#not_quite_almost_all { | |
text-align: left; } | |
div#main { | |
float: left; | |
width: 750px; | |
box-shadow: 0px 5px 10px #000; | |
margin-bottom: 30px; | |
padding: 2px 15px; } | |
div#navigation { | |
width: 774px; | |
margin-left: -15px; | |
margin-right: -15px; | |
padding: 0 3px; } | |
div#content { | |
width: 750px; } | |
div#beliefs { | |
width: 750px; | |
float: left; } | |
div#church_info { | |
text-align: center; | |
width: 260px; | |
float: left; } | |
div#chapel_photo { | |
text-align: center; | |
width: 490px; | |
float: right; } | |
div#meeting_location { | |
text-align: center; | |
width: 490px; | |
margin-left: 250px; } | |
div#pastor_info { | |
float: right; | |
padding-top: 75px; | |
text-align: center; | |
width: 350px; } | |
img#meeting_place { | |
width: 450px; | |
height: 315px; } } | |
@media only screen and (max-width: 799px) { | |
body { | |
background: white; } | |
div { | |
margin: 0 !important; | |
padding: 0 !important; | |
border: none !important; } | |
div#main { | |
background: #eee; | |
width: 100%; } | |
div#main > * { | |
margin: 0px 10px; | |
padding: 10px 0; } | |
div#preface { | |
background: #ccc; } | |
div#navigation { | |
margin: 0 -50px; } | |
img#meeting_place { | |
width: 300px !important; | |
height: 210px !important; } } | |
@media only screen and (max-width: 400px) { | |
img#meeting_place { | |
width: 150px !important; | |
height: 105px !important; } } |
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
<!doctyp html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Test</title> | |
</head> | |
<body> | |
<div class="all"> | |
<p>Test</p> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment