partial bet
by murgiaMarco
HTML
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="frameworkstyles.css" />
</head>
<body style="background-color:black">
<div style="max-width: 75vw;margin: auto;margin-top:40px;background-color: white;">
<ul id="containerTable" class="no-bullets">
<li><button class="accordion">
<div class="row">
<div class="col-1 accordionIcon"></div>
<div class="col-2">
2.68%
</div>
<div class="col-1">
Calcio
</div>
<div class="col-3">
Italia - Marocco
</div>
<div class="col-3">
17 ottobre 2023 18:00
</div>
<div class="col-2">
1.59/2.95
</div>
</div>
</button>
<div class="panel">
<div class="row">
<div class="col-3">
Italia - Marocco
</div>
<div class="col-3">
17 ottobre 2023 18:00
</div>
<div class="col-3">
<input class="counterInput" type="number" id="quantity" name="quantity" min="1" value="162.44">
<input class="counterInput" type="number" id="quantity2" name="quantity" min="1" value="87.56">
</div>
<div class="col-1">
8,28€
</div>
</div>
</div>
</li>
</ul>
</div>
<script src="directoriesMock.js"></script>
<script src="datitestMock.js"></script>
<script src="framework.js"></script>
</body>
</html>
CSS
* {
box-sizing: border-box;
}
.row::after {
content: "";
clear: both;
display: table;
}
[class*="col-"] {
float: left;
padding: 15px;
}
.col {width: 8.33%;}
.col-1 {width: 8.33%;}
.col-2 {width: 16.66%;}
.col-3 {width: 25%;}
.col-4 {width: 33.33%;}
.col-5 {width: 41.66%;}
.col-6 {width: 50%;}
.col-7 {width: 58.33%;}
.col-8 {width: 66.66%;}
.col-9 {width: 75%;}
.col-10 {width: 83.33%;}
.col-11 {width: 91.66%;}
.col-12 {width: 100%;}
.accordion {
background-color: transparent;
color: #444;
cursor: pointer;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
li { background: #eee; }
li:nth-child(odd) { background: white; }
.row {
display: flex;
align-items: stretch;
}
.accordion .row div {
border-right:0.04rem solid #bababa;
padding: 10px;
height: 100%;
margin: auto auto;
}
.active, .accordion:hover {
background-color: #a9b9ff;
border-radius: 18px 18px 0 0;
}
.counterInput{
width:4rem;
}
.panel {
padding: 0 18px;
box-shadow: 1px 4px 20px 0 #000;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
border-radius: 0 0 18px 18px;
}
.accordion.active + div.panel {
padding-bottom:14px;
margin-bottom: 20px;
}
.accordionIcon:after {
content: '\02795'; /* Unicode character for "plus" sign (+) */
font-size: 13px;
color: #777;
float: left;
margin-right: 5px;
}
.active .accordionIcon:after {
content: "\2796"; /* Unicode character for "minus" sign (-) */
}
ul.no-bullets {
list-style-type: none;
margin: 0;
padding: 0;
}