refactoring eventsheet
This commit is contained in:
@@ -3,60 +3,7 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Graduate');
|
||||
@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wdth,wght@50..200,200..900&display=swap');
|
||||
@import url('/font/helvetica-now/stylesheet.css');
|
||||
|
||||
@font-face {
|
||||
font-family: "Futura Now";
|
||||
src: url("/font/futura-now/futura-now.ttf") format("truetype");
|
||||
font-weight: 125 900;
|
||||
font-stretch: 50% 150%;
|
||||
}
|
||||
|
||||
@page {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/** For Print **/
|
||||
@media print {
|
||||
body {
|
||||
margin:0;
|
||||
}
|
||||
body .sheet {
|
||||
size: B5;
|
||||
padding: 0.175in;
|
||||
}
|
||||
}
|
||||
|
||||
/** For screen preview **/
|
||||
@media screen {
|
||||
body .sheet {
|
||||
padding: 0.175in;
|
||||
}
|
||||
body {
|
||||
background: #e0e0e0;
|
||||
}
|
||||
.sheet {
|
||||
background: white;
|
||||
box-shadow: 0 0.5mm 2mm rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
.sheet {
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
page-break-after: always;
|
||||
}
|
||||
|
||||
/** Paper sizes **/
|
||||
body.B5 .sheet {
|
||||
width: 176mm;
|
||||
height: 250mm;
|
||||
}
|
||||
|
||||
body.index-card .sheet {
|
||||
width: 3.5in;
|
||||
height: 5in;
|
||||
}
|
||||
@import url('/font/futura-now/stylesheet.css');
|
||||
|
||||
:root {
|
||||
--color-success: #b7e1cd;
|
||||
@@ -74,16 +21,60 @@ body.index-card .sheet {
|
||||
--color-grey-900: #212529;
|
||||
--row-height: 14px;
|
||||
--monospace-font: "Inconsolata", monospace;
|
||||
--section-border: 0.5px solid black;
|
||||
}
|
||||
|
||||
|
||||
/** For Print **/
|
||||
@media print {
|
||||
:root {
|
||||
margin: 0;
|
||||
}
|
||||
body {
|
||||
margin:0;
|
||||
}
|
||||
body .sheet {
|
||||
padding: 0.175in;
|
||||
background:white;
|
||||
}
|
||||
}
|
||||
|
||||
/** For screen preview **/
|
||||
@media screen {
|
||||
body .sheet {
|
||||
padding: 0.175in;
|
||||
}
|
||||
body {
|
||||
background: #e0e0e0;
|
||||
}
|
||||
.sheet {
|
||||
margin: auto;
|
||||
margin-bottom: 12px;
|
||||
box-shadow: 0 0.5mm 2mm rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
.sheet {
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
page-break-after: always;
|
||||
background: white;
|
||||
}
|
||||
|
||||
/** Paper sizes **/
|
||||
body.B5 .sheet { width: 176mm; height: 250mm;}
|
||||
body.index-card .sheet { width: 3.5in; height: 5in;}
|
||||
body.letter .sheet { width: 8.5in; height: 11in; }
|
||||
|
||||
body {
|
||||
font-family: "Helvetica Now", "Helvetica", sans-serif;
|
||||
position: relative;
|
||||
font-size: 11px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
table {
|
||||
position: inherit;
|
||||
font-size: inherit;
|
||||
border-collapse: collapse;
|
||||
empty-cells: show;
|
||||
@@ -92,57 +83,26 @@ table {
|
||||
overflow-x: hidden;
|
||||
overflow-y: hidden;
|
||||
width: 100%;
|
||||
border: 0.5px solid black;
|
||||
display: inline-table;
|
||||
th, td {
|
||||
overflow: hidden;
|
||||
padding: 0 2px 0 2px;
|
||||
|
||||
&:empty::after {
|
||||
content: "\00a0";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
table.striped {
|
||||
tr {
|
||||
border-bottom-width: 0.5px;
|
||||
border-color: grey;
|
||||
border-bottom-style: solid;
|
||||
|
||||
&:nth-child(odd) {
|
||||
background-color: rgb(242, 242, 242, 0.85);
|
||||
background-color: whitesmoke;
|
||||
}
|
||||
|
||||
&:nth-child(even) {
|
||||
background-color: rgb(256, 256, 256, 0.85);
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
th {
|
||||
font-stretch: extra-condensed;
|
||||
width: 1em;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
|
||||
td {
|
||||
&.player-name {
|
||||
text-transform: uppercase;
|
||||
font-stretch: 75%;
|
||||
}
|
||||
&.position, &.jersey-number {
|
||||
font-family: var(--monospace-font);
|
||||
width: 2ch;
|
||||
text-align: right;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
th, td {
|
||||
border-left: 0.5px solid grey;
|
||||
border-right: 0.5px solid grey;
|
||||
overflow: hidden;
|
||||
padding: 0 2px 0 2px;
|
||||
|
||||
&:empty::after {
|
||||
content: "\00a0";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.float-right {
|
||||
@@ -153,16 +113,7 @@ table {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.B5 > .eventsheet {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
grid-template-rows: 1fr 1fr;
|
||||
column-gap: 0.35in;
|
||||
row-gap: 0.35in;
|
||||
background-size: 100%;
|
||||
}
|
||||
|
||||
.eventsheet > section {
|
||||
section {
|
||||
box-sizing: content-box;
|
||||
overflow: hidden;
|
||||
/* outline: 0.5px dashed lightgrey; */
|
||||
@@ -176,160 +127,139 @@ table {
|
||||
align-items: stretch;
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
&.NW {
|
||||
grid-area: 1 / 1 / 2 / 2;
|
||||
.eventsheet.quarters {
|
||||
&, .section-divider {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
grid-template-rows: 1fr 1fr;
|
||||
column-gap: 0.35in;
|
||||
row-gap: 0.35in;
|
||||
}
|
||||
&.NE {
|
||||
grid-area: 1 / 2 / 2 / 3;
|
||||
}
|
||||
&.SW {
|
||||
grid-area: 2 / 1 / 3 / 2;
|
||||
}
|
||||
&.SE {
|
||||
grid-area: 2 / 2 / 3 / 3;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.eventsheet > .section-divider {
|
||||
position: absolute;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
grid-template-rows: repeat(2, 1fr);
|
||||
grid-column-gap: 0px;
|
||||
grid-row-gap: 0px;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
--divider-border: lightgrey dashed 1px;
|
||||
|
||||
.NW {
|
||||
grid-area: 1 / 1 / 2 / 2;
|
||||
border-right:var(--divider-border);
|
||||
border-bottom:var(--divider-border);
|
||||
}
|
||||
.NE {
|
||||
grid-area: 1 / 2 / 2 / 3;
|
||||
border-bottom:var(--divider-border);
|
||||
}
|
||||
.SW {
|
||||
grid-area: 2 / 1 / 3 / 2;
|
||||
border-right:var(--divider-border);
|
||||
}
|
||||
.SE {
|
||||
grid-area: 2 / 2 / 3 / 3;
|
||||
}
|
||||
|
||||
&.NW {
|
||||
grid-area: 1 / 1 / 2 / 2;
|
||||
}
|
||||
&.NE {
|
||||
grid-area: 1 / 2 / 2 / 3;
|
||||
}
|
||||
&.SW {
|
||||
grid-area: 2 / 1 / 3 / 2;
|
||||
}
|
||||
&.SE {
|
||||
grid-area: 2 / 2 / 3 / 3;
|
||||
}
|
||||
|
||||
> .section-divider {
|
||||
--divider-border: lightgrey dashed 1px;
|
||||
position: absolute;
|
||||
grid-column-gap: 0px;
|
||||
grid-row-gap: 0px;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
|
||||
.NW, .SW {
|
||||
border-right:var(--divider-border);
|
||||
}
|
||||
|
||||
.NW, .NE {
|
||||
border-bottom:var(--divider-border);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.lineup-card th {
|
||||
width: inherit;
|
||||
}
|
||||
|
||||
#lineup-card-dugout div.grid-container,
|
||||
#lineup-card-dugout-blank div.grid-container {
|
||||
display: grid;
|
||||
grid-template-columns: 60% auto;
|
||||
grid-template-rows: fit-content(16px) auto;
|
||||
grid-template-areas:
|
||||
"header header"
|
||||
"sarting-lineup-table substitution-table";
|
||||
}
|
||||
|
||||
#lineup-card-exchange div.grid-container,
|
||||
#lineup-card-exchange-blank div.grid-container {
|
||||
display: grid;
|
||||
grid-template-columns: auto;
|
||||
grid-template-rows: fit-content(16px) auto;
|
||||
grid-template-areas:
|
||||
"header"
|
||||
"sarting-lineup-table";
|
||||
}
|
||||
|
||||
#lineup-card-exchange .substitution,
|
||||
#lineup-card-exchange .homeaway,
|
||||
#lineup-card-exchange-blank .substitution,
|
||||
#lineup-card-exchange-blank .homeaway {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.lineup-card div.grid-container > header {
|
||||
grid-area: "header";
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.lineup-card div.grid-container > header:empty::after {
|
||||
content: "\00a0";
|
||||
}
|
||||
|
||||
div.grid-container > .starting-lineup-table {
|
||||
grid-area: "starting-lineup-table";
|
||||
}
|
||||
|
||||
div.grid-container > .substitution-table {
|
||||
grid-area: "substitution-table";
|
||||
}
|
||||
|
||||
section.lineup-card {
|
||||
.lineup-card {
|
||||
counter-reset: lineup-sequence-counter 0;
|
||||
@extend table, .striped;
|
||||
--border: 0.5px solid grey;
|
||||
|
||||
border: var(--section-border);
|
||||
|
||||
header {
|
||||
font-size: inherit;
|
||||
text-transform: uppercase;
|
||||
font-stretch: 85%;
|
||||
border-style: none;
|
||||
border-bottom: var(--border);
|
||||
&:empty::after {
|
||||
content: "\00a0";
|
||||
}
|
||||
}
|
||||
|
||||
th {
|
||||
width: inherit;
|
||||
&.sequence {
|
||||
counter-increment: lineup-sequence-counter 1;
|
||||
color: var(--color-grey-600);
|
||||
font-size: inherit;
|
||||
width: 2ch;
|
||||
font-stretch: 50%;
|
||||
border-right: var(--border);
|
||||
&.counter::before {
|
||||
content: counter(lineup-sequence-counter);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
thead th {
|
||||
color: var(--color-grey-600);
|
||||
font-size: 0.7em;
|
||||
border-bottom: var(--border);
|
||||
}
|
||||
|
||||
table {
|
||||
font-size: 21px;
|
||||
}
|
||||
th.sequence {
|
||||
counter-increment: lineup-sequence-counter 1;
|
||||
color: var(--color-grey-600);
|
||||
font-size: inherit;
|
||||
width: 2ch;
|
||||
|
||||
&.counter::before {
|
||||
content: counter(lineup-sequence-counter);
|
||||
td {
|
||||
/* height: 34px; */
|
||||
&.substitution {
|
||||
width: 8ch;
|
||||
&::after {
|
||||
content: "";
|
||||
}
|
||||
}
|
||||
&.position, &.jersey-number {
|
||||
width: 2ch;
|
||||
}
|
||||
&.position, &.jersey-number, &.substitution {
|
||||
font-family: var(--monospace-font);
|
||||
border-left: var(--border);
|
||||
text-align: right;
|
||||
padding-left: 2.5px;
|
||||
padding-right: 2.5px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
tr + tr {
|
||||
// border-top: 1px solid black;
|
||||
border-top: var(--border);
|
||||
}
|
||||
|
||||
&.dugout {
|
||||
td.player-name {
|
||||
width: 10ch;
|
||||
font-stretch: 75%;
|
||||
}
|
||||
.position, .jersey-number, .substitution {
|
||||
font-stretch: 75%;
|
||||
}
|
||||
}
|
||||
|
||||
&.exchange {
|
||||
.player-name {
|
||||
font-stretch: 100%;
|
||||
}
|
||||
|
||||
.homeaway, .substitution {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.lineup-card table {
|
||||
font-size: 21px;
|
||||
}
|
||||
|
||||
.lineup-card td {
|
||||
/* height: 34px; */
|
||||
}
|
||||
|
||||
.lineup-card td.substitution {
|
||||
width: 8ch;
|
||||
}
|
||||
|
||||
.lineup-card td.substitution::after {
|
||||
content: "";
|
||||
}
|
||||
|
||||
#lineup-card-exchange tr,
|
||||
#lineup-card-exchange-blank tr,
|
||||
#lineup-card-dugout .starting-lineup-table tr,
|
||||
#lineup-card-dugout-blank .starting-lineup-table tr,
|
||||
#lineup-card-dugout .substitution-table tr:nth-child(odd) {
|
||||
border-top: 1px solid black;
|
||||
}
|
||||
|
||||
#lineup-card-exchange tr,
|
||||
#lineup-card-exchange-blank tr,
|
||||
#lineup-card-dugout .starting-lineup-table tr,
|
||||
#lineup-card-dugout-blank .starting-lineup-table tr,
|
||||
#lineup-card-dugout .substitution-table tr:nth-child(even) {
|
||||
border-bottom: 1px solid black;
|
||||
}
|
||||
|
||||
td.substitution {
|
||||
border-left: 1px solid black;
|
||||
}
|
||||
|
||||
section.blank {
|
||||
filter: opacity(0.4);
|
||||
img, header {
|
||||
@@ -340,32 +270,6 @@ section.blank {
|
||||
}
|
||||
}
|
||||
|
||||
#lineup-card-exchange td.player-name {
|
||||
font-stretch: 100%;
|
||||
}
|
||||
|
||||
#lineup-card-dugout td.player-name {
|
||||
width: 10ch;
|
||||
}
|
||||
|
||||
.lineup-card .position,
|
||||
.lineup-card .jersey-number {
|
||||
width: 2ch;
|
||||
}
|
||||
|
||||
#lineup-card-dugout .position,
|
||||
#lineup-card-dugout .jersey-number {
|
||||
font-stretch: 75%;
|
||||
padding-left: 2.5px;
|
||||
padding-right: 2.5px;
|
||||
}
|
||||
|
||||
.lineup-card header {
|
||||
font-size: inherit;
|
||||
text-transform: uppercase;
|
||||
font-stretch: 85%;
|
||||
}
|
||||
|
||||
|
||||
#todays-game {
|
||||
> div {
|
||||
@@ -481,14 +385,15 @@ section.blank {
|
||||
|
||||
}
|
||||
|
||||
#defense-card {
|
||||
border: var(--section-border);
|
||||
}
|
||||
|
||||
#defense-pane {
|
||||
position: relative;
|
||||
grid-area: defense;
|
||||
padding: 4px 4px 0px 4px; /* top right bottom left */
|
||||
display: flex;
|
||||
border: 0.5px solid grey;
|
||||
// border-bottom: 0.5px solid grey;
|
||||
|
||||
.field-container {
|
||||
display: grid;
|
||||
@@ -510,11 +415,36 @@ section.blank {
|
||||
|
||||
$positions: "cf", "lf", "rf", "ss", "2b", "3b", "1b", "c", "p";
|
||||
|
||||
.player-name {
|
||||
font-stretch: 80%;
|
||||
}
|
||||
|
||||
table {
|
||||
--border: grey solid 0.5px;
|
||||
border: var(--border);
|
||||
tr {
|
||||
&:first-child th{
|
||||
border-bottom: var(--border);
|
||||
}
|
||||
& + tr {
|
||||
border-top: var(--border);
|
||||
}
|
||||
th.position {
|
||||
font-family: var(--monospace-font);
|
||||
width: 2ch;
|
||||
text-align: right;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@each $position in $positions {
|
||||
&.pos-#{$position} tr:first-child {
|
||||
th.position:empty::after {
|
||||
th.position:empty{
|
||||
border-right: var(--border);
|
||||
&::after {
|
||||
content: $position;
|
||||
}
|
||||
}}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -566,9 +496,11 @@ section.blank {
|
||||
align-items: end;
|
||||
margin-bottom: 4px;
|
||||
grid-area: 6 / 1 / 7 / 5;
|
||||
tr.substitute .position:empty::after{
|
||||
tr.substitute .position:empty{
|
||||
border-right: var(--border);
|
||||
&::after{
|
||||
content: "RP";
|
||||
}
|
||||
}}
|
||||
|
||||
}
|
||||
|
||||
@@ -599,46 +531,17 @@ section.blank {
|
||||
|
||||
}
|
||||
|
||||
|
||||
.slot-set table {
|
||||
width: 77px;
|
||||
}
|
||||
|
||||
.slot-set.pos-slot-p table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.index-card .defense-slot-set {
|
||||
width: 65px;
|
||||
}
|
||||
|
||||
.index-card .defense-slot-set .player-name {
|
||||
font-stretch: 70%;
|
||||
}
|
||||
|
||||
.container .row {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
header {
|
||||
background-color: #cadcf9;
|
||||
font-family: "Oswald";
|
||||
/* font-size: 8.8px; */
|
||||
/* outline: 1px solid black; */
|
||||
/* height: var(--row-height); */
|
||||
width: auto;
|
||||
// grid-area: header;
|
||||
text-align: center;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
border: 0.5px solid black;
|
||||
z-index: 1;
|
||||
border-bottom: var(--section-border);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.cell-checkbox {
|
||||
font-size: 0.75em;
|
||||
}
|
||||
@@ -723,20 +626,8 @@ header {
|
||||
background-color: #acc9fe;
|
||||
}
|
||||
|
||||
#roster-and-history .player-name {
|
||||
font-stretch: 95%;
|
||||
}
|
||||
|
||||
.starting {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#roster-and-history {
|
||||
// #today-availability {
|
||||
// font-stretch: normal;
|
||||
// text-transform: uppercase;
|
||||
// font-size: 0.8em;
|
||||
// }
|
||||
--border: var(--section-border);
|
||||
thead {
|
||||
border: black solid 1px;
|
||||
}
|
||||
@@ -747,6 +638,31 @@ header {
|
||||
/* outline: 0.5px black; */
|
||||
}
|
||||
|
||||
tr.starting-today td {
|
||||
&.jersey-number, &.player-name{
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
.player-name {
|
||||
font-stretch: 95%;
|
||||
}
|
||||
|
||||
.jersey-number {
|
||||
font-family: var(--monospace-font);
|
||||
width: 2ch;
|
||||
text-align: right;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.position {
|
||||
@extend td, .availability-on-day
|
||||
}
|
||||
|
||||
tr + tr {
|
||||
border-top: var(--border);
|
||||
}
|
||||
|
||||
td, th {
|
||||
border-left: none;
|
||||
border-right: none;
|
||||
@@ -896,33 +812,49 @@ td.is-present-checkbox.available-status-code-None > span {
|
||||
border: none;
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
.game-number, .homeaway{
|
||||
display: grid;
|
||||
align-content: center;
|
||||
width: 1.4em;
|
||||
}
|
||||
|
||||
.homeaway {
|
||||
font-weight: 800;
|
||||
font-size: xx-large;
|
||||
}
|
||||
|
||||
.game-number {
|
||||
font-size: large;
|
||||
font-stretch: extra-condensed;
|
||||
font-weight: 700;
|
||||
text-wrap: nowrap;
|
||||
}
|
||||
|
||||
.title {
|
||||
.title {
|
||||
display: grid;
|
||||
font-size: small;
|
||||
font-family: "Futura Now";
|
||||
flex-grow: 1;
|
||||
align-content: center;
|
||||
}
|
||||
|
||||
.homeaway {
|
||||
font-weight: 800;
|
||||
font-size: xx-large;
|
||||
}
|
||||
|
||||
.game-number, .homeaway{
|
||||
display: grid;
|
||||
align-content: center;
|
||||
width: 1.4em;
|
||||
}
|
||||
|
||||
.game-number {
|
||||
font-size: large;
|
||||
font-stretch: extra-condensed;
|
||||
font-weight: 700;
|
||||
text-wrap: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
th {
|
||||
background-color: whitesmoke;
|
||||
}
|
||||
|
||||
th, td {
|
||||
font-family: "Futura Now";
|
||||
border: solid 0.5px grey;
|
||||
}
|
||||
|
||||
.conjuction {
|
||||
text-align: center;
|
||||
font-family: "Futura Now";
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.head-to-head {
|
||||
padding:5px;
|
||||
display: flex;
|
||||
@@ -935,6 +867,7 @@ td.is-present-checkbox.available-status-code-None > span {
|
||||
font-size: x-large;
|
||||
align-items: center;
|
||||
font-family: 'Pacifico';
|
||||
text-transform: none;
|
||||
display: inline-flex;
|
||||
width: 100%;
|
||||
flex-grow:1;
|
||||
|
||||
Reference in New Issue
Block a user