mobile css support

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

View file

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