nomnom/scss/style.scss

233 lines
3.7 KiB
SCSS

// vim: tabstop=2 shiftwidth=2 expandtab
@import url('fonts.css');
@import 'params';
html {
background-color: $bg_color;
color:$fg_color;
height: 100%;
}
body {
font-family:Open Sans,Arial;
font-size:16px;
line-height:1.4;
text-align:justify;
margin: 0;
padding: 0;
min-height: 100%;
display: flex;
flex-direction: column;
}
#head {
background-color: $head_bg_color;
display: flex;
justify-content: space-between;
align-items: center;
margin: 0;
padding: 30px 60px;
color: $bg_color;
.sitetitle {
font-size: 1.4em;
font-weight: bold;
}
a, a:visited {
color: $bg_color;
}
}
#ingredients {
@media screen and (min-width: $break_large) {
float: left;
max-width: 300px;
margin: 0;
margin-top: 30px;
margin-left: 50px;
margin-right: 50px;
position: fixed;
box-sizing: border-box;
}
max-width: $content_max_width;
box-sizing: border-box;
margin: 30px auto;
padding: 20px;
border: 1px solid $secondary_bg_color;
border-radius: 10px;
text-align: left;
.ingred-title {
font-size: 1.3em;
font-weight: bold;
}
.ingred-portions {
text-align: right;
font-style: italic;
}
.ingred-qt {
color: $ingred_qt_color;
}
ul {
padding-left: 25px;
}
}
#content {
margin: 0 auto;
max-width: $content_max_width;
padding:2em 1em;
height: 100%;
h1 {
font-size: 1.4em;
color: $title_h1_color;
}
h2 {
font-size: 1.3em;
text-indent: 2ex;
color: $title_h2_color;
}
h3 {
font-size: 1.1em;
text-indent: 4ex;
color: $title_h3_color;
}
.pagenamerow {
display: flex;
align-items: center;
justify-content: space-between;
}
#pagename {
font-size: 1.5em;
font-weight: bold;
}
}
#foot {
font-size: 0.7em;
color: $footer_fg_color;
display: flex;
justify-content: flex-end;
align-items: center;
margin: 10px 20px;
margin-top: auto;
> div {
margin: 0 15px;
}
}
a, a:visited {
color: $link_color;
text-decoration:none;
}
ul {
list-style-type: circle;
}
.homepagecat {
margin-top: 50px;
}
.headbadges {
display: flex;
align-items: center;
margin-right: 20px;
margin-left: 30px;
}
.headbadge {
padding: 10px;
border-radius: 10px;
font-size: 1.2em;
margin-left: 10px;
/* Should be overriden */
border: 2px solid;
border-color: $secondary_bg_color;
color: $secondary_bg_color;
&-veganness {
&-vegan {
border-color: $veganness_vegan_color;
color: $veganness_vegan_color;
}
&-veganisable {
border-color: $veganness_veganisable_color;
color: $veganness_veganisable_color;
}
&-vege {
border-color: $veganness_vege_color;
color: $veganness_vege_color;
}
}
&-season {
&-winter {
border-color: $season_winter_color;
color: $season_winter_color;
}
&-summer {
border-color: $season_summer_color;
color: $season_summer_color;
}
}
}
.badges {
display: inline-block;
margin-left: 0.5ex;
}
.badge {
font-weight: bold;
display: inline-block;
border: 2px solid black;
padding: 0 0.5ex;
border-radius: 1.5ex;
margin: 0.2ex 0;
margin-left: 0.6ex;
font-size: 0.7em;
position: relative;
bottom: 0.2ex;
&-veganness {
&-vegan {
border-color: $veganness_vegan_color;
color: $veganness_vegan_color;
}
&-veganisable {
border-color: $veganness_veganisable_color;
color: $veganness_veganisable_color;
}
&-vege {
border-color: $veganness_vege_color;
color: $veganness_vege_color;
}
}
&-season {
&-winter {
border-color: $season_winter_color;
color: $season_winter_color;
}
&-summer {
border-color: $season_summer_color;
color: $season_summer_color;
}
}
}