Major restyling. Now with better HTML and CSS practices!

This commit is contained in:
2018-11-29 00:07:30 +01:00
parent 6c5b5e3432
commit e44d43af0e
2 changed files with 87 additions and 181 deletions
+57 -144
View File
@@ -8,165 +8,87 @@ body {
}
h1 {
margin-left: 3%;
}
h2 {
padding-left: 40pt;
}
.leaderboard {
width: 35%;
position: fixed;
top: 0;
bottom: 0;
left: 0;
padding-top: 8pt;
height: auto;
background-color: rgba(0,0,0,0.8);
color: #d4d0cd;
margin-left: 3%;
}
.right-pane {
width: 65%;
width: 70%;
height: 100%;
position: absolute;
top: 0;
left: 35%;
padding-top: 8pt;
}
.lb-entry {
padding: 0;
height: 60pt;
position: relative;
}
.lb-entry img {
height: 50pt;
width: auto;
position: absolute;
top: 50%;
left: 25pt;
margin-top: -25pt;
}
.lb-entry span.score {
position: absolute;
font-size: 16pt;
top: 50%;
margin-top: -8pt;
left: 70%;
}
.lb-entry span.name {
position: absolute;
font-size: 16pt;
top: 50%;
margin-top: -8pt;
left: 30%;
}
.cook-entry {
padding: 0;
/*height: 90pt;*/
position: relative;
}
.cook-card {
background-color: #F1EDEA;
height: 100pt;
margin-left: 20pt;
-webkit-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.5);
-moz-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.5);
box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.5);
}
.cook-card img {
height: 50pt;
width: auto;
position: absolute;
top: 50%;
left: 40pt;
margin-top: -25pt;
}
#cook-small-thumb {
height: 20pt;
width: auto;
position: relative;
left: 0;
.leaderboard {
position: fixed;
width: 30%;
top: 0;
left: 0;
height: 100%;
background-color: rgba(0,0,0,0.8);
color: #d4d0cd;
overflow: auto;
}
.cook-card span {
position: absolute;
font-size: 16pt;
top: 50%;
margin-top: -8pt;
left: 120pt;
.lb-entry {
display: flex;
justify-content: space-around;
}
.cook-card p {
position: absolute;
left: 140pt;
margin: -16pt 0 0 0;
font-size: 11pt;
height: 24pt;
top: 50%;
text-align: center;
.lb-entry img {
height: 80px;
width: 80px;
margin: 10px 0;
}
.eater-entry {
padding: 0;
position: relative;
.lb-entry span {
margin: auto 0;
font-size: 20px;
}
.eater-card {
.flex-card {
margin: 8px auto;
display: flex;
width: fit-content;
min-width: 240px;
background-color: #F1EDEA;
height: 70pt;
width: 200pt;
margin: 6pt 0 6pt 20pt;
margin-left: 3%;
-webkit-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.5);
-moz-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.5);
box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.5);
}
.eater-card img {
height: 50pt;
width: auto;
position: absolute;
top: 50%;
left: 40pt;
margin-top: -25pt;
.flex-card img {
height: 80px;
width: 80px;
margin: 16px 20px;
}
.eater-card span {
position: absolute;
font-size: 16pt;
top: 50%;
margin-top: -8pt;
left: 120pt;
.flex-card .flex-small-thumb {
height: 32px;
width: 32px;
display: inline-block;
margin: -6px 0 0 0;
}
.eater-entry span {
position: absolute;
font-size: 16pt;
top: 50%;
margin-top: -8pt;
left: 120pt;
.flex-card span {
margin: auto 20px;
font-size: 20px;
}
/*.rect-button {
width: 100pt;
height: 26pt;
background-color: #EE7500;
position: absolute;
color: white;
top: 50%;
right: 32pt;
margin-top: -13pt;
cursor: pointer;
}*/
.flex-card .rect-button {
margin: auto 20px;
}
.flex-card p {
font-size: 14px;
text-align: center;
line-height: 200%;
}
.rect-button span {
font-size: 12pt;
@@ -179,27 +101,18 @@ h2 {
color: white;
}
.add-button {
height: 50pt;
width: 50pt;
position: absolute;
top: 50%;
left: 40pt;
margin-top: -25pt;
.round-button {
display: flex;
align-items: center;
justify-content: center;
color: white;
border-radius: 25pt;
background-color: #EE7500;
cursor: pointer;
}
.add-button span {
font-size: 34pt;
position: absolute;
top: 50%;
margin-top: -18pt;
left: 0;
width: 100%;
text-align: center;
width: 80px;
height: 80px;
border-radius: 40px;
font-size: 48px;
margin: 16px 20px;
}
.user-card {