added shadow mode

This commit is contained in:
Dave Lane 2023-07-27 19:57:59 +12:00
parent 16d319a514
commit 551d830194
3 changed files with 139 additions and 35 deletions

View file

@ -21,7 +21,7 @@
url('fonts/Roboto/Roboto-Thin.ttf') format('truetype');
}
body.style-1 {
body {
font-family: "Roboto";
width: 80%;
margin: auto;
@ -34,34 +34,70 @@ p { color: #444; }
a { text-decoration: none; }
button {
margin: 4px 0px;
padding: 8px;
margin: 4px 4px;
padding: 10px;
background-color: #3BAD5F;
color: #fff;
border-radius: 10px;
border: 0;
font-family: "Roboto";
font-size: 120%;
/* box-shadow: offset x, offset y, blur radius, color */
box-shadow: 4px 4px 5px #888;
}
button:hover { box-shadow: 6px 6px; }
button:hover { color: #000; }
button:active { box-shadow: none; }
.name {
/*.text { position: relative; }*/
#sample {
font-size: 200%;
padding: 12px;
background-color: #eee;
/*background-color: #eee;*/
border: thin #ededed;
display: block;
clear: both;
margin-bottom: 20px;
margin-bottom: 0px;
font-family: "Lobster";
line-height: 1em;
}
.blue { color: blue; }
.red { color: red; }
.green { color: green; }
.black { color: black; }
.shadow {
color: white;
text-shadow: 1px 1px 20px #000;
}
.bold { font-weight: bold; }
.italic { font-style: italic; }
.small-caps { font-variant: small-caps; }
.app {
background-color: #eee;
padding: 1em;
border-radius: 20px;
margin-bottom: 10px;
}
.text, .controls {
float: left;
}
.text {
vertical-align: top;
width: 25%;
min-width: 14em;
padding-right: 4px;
}
.contols {
width: auto;
padding-left: 4px;
}
.switches {
clear: both;
}