mobile css support

This commit is contained in:
Micah Gomez 2019-12-24 14:57:17 -07:00
parent bda6f2a71e
commit d10eaf2171

View file

@ -1,138 +1,199 @@
/*Color scheme: /*Color scheme:
#455144 grey/green #455144 grey/green
#3F4C1B Dark Green #3F4C1B Dark Green
#689323 Standard Green #689323 Standard Green
#8BB174 Pale Green #8BB174 Pale Green
#B5CA8D Desaturated Yellow-Green #B5CA8D Desaturated Yellow-Green
*/ */
html, body { /*Meta stuff*/
background-repeat: no-repeat; html, body {
background-attachment: fixed; background-repeat: no-repeat;
margin: 0; background-attachment: fixed;
scrollbar-width: none; margin: 0;
} scrollbar-width: none;
@media (prefers-color-scheme: dark) { }
body { @media (prefers-color-scheme: dark) {
background-image: linear-gradient(#8BB174, rgba(70, 70, 73, 1.00)); body {
/*background-color: rgba(70,70,73,1.00);*/ background-image: linear-gradient(#8BB174, rgba(70, 70, 73, 1.00));
color: white; /*background-color: rgba(70,70,73,1.00);*/
} color: white;
} }
@media (prefers-color-scheme: light) { }
body { @media (prefers-color-scheme: light) {
background-image: linear-gradient(#8BB174, linen); body {
/*background-color: linen;*/ background-image: linear-gradient(#8BB174, linen);
color: black; /*background-color: linen;*/
} color: black;
} }
.element::-webkit-scrollbar { }
display: none; .element::-webkit-scrollbar {
} display: none;
/*Standard Body CSS Starts*/ }
body { /*Standard Body CSS Starts*/
margin: 0; body {
font-family: 'Ubuntu', sans-serif; margin: 0;
/*background-color: linen;*/ font-family: 'Ubuntu', sans-serif;
} /*background-color: linen;*/
h1 { }
color: #728A31; h1 {
font-size: 36pt; color: #728A31;
} font-size: 36pt;
h3 { }
color: #689323; h3 {
font-size: 28pt; color: #689323;
text-align: center; font-size: 28pt;
font-weight: 300; text-align: center;
} font-weight: 300;
h2 { }
color: #315F10; h2 {
font-size: 18pt; color: #315F10;
font-weight: 50; font-size: 18pt;
} font-weight: 50;
h4 { }
color: #3F4C1B; h4 {
font-size: 12pt; color: #3F4C1B;
font-family: Courier New, Courier; font-size: 12pt;
font-weight: 300; font-family: Courier New, Courier;
} font-weight: 300;
p { }
color: #3F4C1B; p {
font-size: 18pt; color: #3F4C1B;
text-align: left; font-size: 18pt;
} text-align: left;
a { }
text-decoration: none; a {
color: #315F10; text-decoration: none;
} color: #315F10;
ul > li { }
display: inline-block; ul > li {
/* You can also add some margins here to make it look prettier */ display: inline-block;
margin: 0px 25px; /* You can also add some margins here to make it look prettier */
zoom: 1; margin: 0px 25px;
vertical-align: middle; zoom: 1;
} vertical-align: middle;
/*Standard Body CSS Ends*/ }
/*special Body Info Starts*/ /*Standard Body CSS Ends*/
.bodycontent { /*special Body Info Starts*/
text-align: left; .bodycontent {
padding: 75px 100px; text-align: left;
} padding: 75px 100px;
.headingcontent { }
margin-left: auto; .headingcontent {
margin-right: auto; margin-left: auto;
display: block; margin-right: auto;
width: 100%px; display: block;
} width: 100%;
.tilecontent { }
margin-left: auto; .tilecontent {
margin-right: auto; margin-left: auto;
display: block; margin-right: auto;
margin-top: 30px; display: block;
width: 100%; margin-top: 30px;
} width: 100%;
.contentbutton { }
display: block; .contentbutton {
margin-left: auto; display: block;
margin-right: auto; margin-left: auto;
padding: 5px 25px; margin-right: auto;
border-radius: 8px; padding: 5px 25px;
width: 100%; border-radius: 8px;
border: none; width: 100%;
background-image: linear-gradient(to right, rgba(139, 177, 116, 1.00), rgba(120, 150, 120, 1.00) 33%); border: none;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3); background-image: linear-gradient(to right, rgba(139, 177, 116, 1.00), rgba(120, 150, 120, 1.00) 33%);
transition: 1s; box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
} transition: 1s;
.contentbutton:hover { }
box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7); .contentbutton:hover {
transition: 0.25s; box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7);
} transition: 0.25s;
.smbutton { }
background-color: rgba(139, 177, 116, 1); .smbutton {
padding: 10px; background-color: rgba(139, 177, 116, 1);
margin: 0px 15px; padding: 10px;
border-radius: 12.632px; margin: 0px 15px;
transition: 1s; border-radius: 12.632px;
} margin-bottom: 20px;
.smbutton:hover { transition: 1s;
box-shadow: 5px 5px 10px black; }
transition: 0.25s; .smbutton:hover {
} box-shadow: 5px 5px 10px black;
.descriptionContent { transition: 0.25s;
display: block; }
padding: 25px; .descriptionContent {
margin-left: 10%; padding: 20px 0;
border-radius: 8px; border-radius: 8px;
width: 85%; border: none;
border: none; background-color: rgba(139, 177, 116, 1.00);
background-color: rgba(139, 177, 116, 1.00); box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3); transition: 1s;
transition: 1s; }
} .descriptionContentText {
.descriptionContentImage { width: 65%;
border-radius: 10px; float: left;
width: 200px; }
} .descriptionContentTextFullWidth{
.footer-placeholder { width: auto;
text-align: center; }
width: 100%; .descriptionContentImage {
width: 100px;
float: left;
border-radius: 10px;
margin-top: 15px;
margin-left: 15px;
margin-right: 25px;
}
.footer-placeholder {
text-align: center;
width: 100%;
}
/*mobile setup*/
/* If the screen size is 601px or more, set the font-size of <div> to 80px */
@media only screen and (min-width: 601px) {
p {
font-size: 16pt;
}
.bodycontent {
padding: 75px 100px;
}
.descriptionContentImage {
width: 100px;
}
.descriptionContentText {
width: 75%;
}
h2 {
font-size: 18pt;
}
.footer-placeholder {
width: 100%;
}
}
/* If the screen size is 600px or less, set the font-size of <div> to 30px */
@media only screen and (max-width: 600px) {
p {
font-size: 12pt;
}
li > p{
font-size: 10pt;
}
.bodycontent {
padding: 25px 20px;
}
.descriptionContentImage {
width: 50px;
}
.descriptionContentText{
width: 65%;
}
h2 {
font-size: 14pt;
}
.footer-placeholder {
width: 80%;
margin: auto;
}
}
.descriptionContentTextFullWidth{
width: auto;
} }