nomnom/scss/style.scss

297 lines
5 KiB
SCSS
Raw Normal View History

// vim: tabstop=2 shiftwidth=2 expandtab
@import url('fonts.css');
@import 'params';
2020-05-05 16:09:33 +02:00
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
html {
background-color: $bg_color;
color:$fg_color;
height: 100%;
}
body {
font-family:Open Sans,Arial;
2020-05-05 16:09:33 +02:00
font-size: $font_size_small;
line-height:1.4;
2020-05-05 16:09:33 +02:00
@media (min-width: $width_med) {
font-size: $font_size_med;
}
@media (min-width: $width_large) {
font-size: $font_size_large;
}
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 {
2020-05-05 16:09:33 +02:00
@media (min-width: $width_large) {
float: left;
position: fixed;
2020-05-05 16:09:33 +02:00
margin-top: 30px;
margin-bottom: 0px;
}
2020-05-05 16:09:33 +02:00
@media (min-width: $width_large) {
width: $ingred_width_large;
margin-left: $ingred_hmargin_large;
margin-right: $ingred_hmargin_large;
}
@media (min-width: $width_xlarge) {
width: $ingred_width_xlarge;
margin-left: $ingred_hmargin_xlarge;
margin-right: $ingred_hmargin_xlarge;
}
margin: 30px $hmargin_small;
box-sizing: border-box;
padding: 20px;
border: 1px solid $secondary_bg_color;
border-radius: 10px;
text-align: left;
.ingred-title {
font-size: 1.3em;
font-weight: bold;
}
2019-05-13 13:43:42 +02:00
.ingred-portions {
text-align: right;
font-style: italic;
}
2019-05-11 20:53:33 +02:00
.ingred-qt {
color: $ingred_qt_color;
}
ul {
padding-left: 25px;
}
}
#content {
2020-05-05 16:09:33 +02:00
display: flex;
justify-content: center;
margin: 30px $hmargin_small;
height: 100%;
2020-05-05 16:09:33 +02:00
.content-inner {
width: 100%;
}
@media (min-width: $width_large) {
.content-inner {
width: $content_width_large;
}
margin-right: 0;
margin-left: $ingred_width_large + $ingred_hmargin_large;
}
@media (min-width: $width_xlarge) {
.content-inner {
width: $content_width_xlarge;
}
margin-right: 0;
margin-left: $ingred_width_xlarge + $ingred_hmargin_xlarge;
}
@media (min-width: $width_contentcenter) {
margin-right: 0;
margin-left: 0;
}
h1 {
font-size: 1.4em;
2019-08-04 17:11:50 +02:00
color: $title_h1_color;
}
h2 {
font-size: 1.3em;
text-indent: 2ex;
2019-08-04 17:11:50 +02:00
color: $title_h2_color;
}
h3 {
font-size: 1.1em;
text-indent: 4ex;
2019-08-04 17:11:50 +02:00
color: $title_h3_color;
}
2020-05-05 20:56:43 +02:00
table {
width: 100%;
border-collapse: collapse;
border: 2px solid $secondary_bg_color;
border-radius: 10px;
thead {
border-bottom: 2px solid darken($secondary_bg_color, 10%);
}
td,th {
padding: 10px;
border: 1px solid darken($secondary_bg_color, 10%);
}
}
.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;
}
2019-08-04 17:11:50 +02:00
.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;
}
}
}