Browse Source

balance list updated responsive

master
simongig 5 years ago
parent
commit
a2fee6d42f
2 changed files with 38 additions and 35 deletions
  1. 21
    21
      index.html
  2. 17
    14
      index_styles.css

+ 21
- 21
index.html View File

</ul> </ul>


</nav> </nav>

<div class="balance-list">
<div class="overview">
<div id="title">Balance:</div>
<div id="total-amount">500,00 Euro</div>
</div>
<div class="grid-wrapper">
<div class="box">
<div class="dropdown"></div>
<span class="entry">Beschreibung</span>
<span class="amount">Betrag</span>
<div class="balance-list-wrapper">
<div class="balance-list">
<div class="overview">
<div id="title">Balance:</div>
<div id="total-amount">500,00 Euro</div>
</div> </div>
<div class="box">
<div class="dropdown"></div>
<div class="entry">Beschreibung</div>
<div class="amount">Betrag</div>
</div>
<div class="box">
<div class="dropdown"></div>
<div class="entry">Beschreibung</div>
<div class="amount">Betrag</div>
<div class="grid-wrapper">
<div class="box">
<div class="dropdown"></div>
<span class="entry">Beschreibung</span>
<span class="amount">100,00 Euro</span>
</div>
<div class="box">
<div class="dropdown"></div>
<div class="entry">Beschreibung</div>
<div class="amount">50,00 Euro</div>
</div>
<div class="box">
<div class="dropdown"></div>
<div class="entry">Beschreibung</div>
<div class="amount">2,99 Euro</div>
</div>
</div> </div>
</div> </div>
</div> </div>

</body> </body>


</html> </html>

+ 17
- 14
index_styles.css View File

* { * {
padding: 0; padding: 0;
margin: 0rem;
margin: 0;
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
} }


.menu_left_element { .menu_left_element {
height: 100%; height: 100%;
text-decoration: none; text-decoration: none;
padding: 0.4rem; padding: 0.4rem;
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
font-size: 2.6rem; font-size: 2.6rem;
text-decoration-color: black; text-decoration-color: black;
} }


.grid-wrapper { .grid-wrapper {
display: grid; display: grid;
padding: 0 2em 0 2em;
grid-template-columns: 1fr; grid-template-columns: 1fr;
grid-template-rows: 80px 80px 80px; grid-template-rows: 80px 80px 80px;
grid-gap: 10px; grid-gap: 10px;
} }



.box { .box {
background-color: #C4C4C4; background-color: #C4C4C4;
display: grid; display: grid;
grid-template-columns: repeat(12, 1fr);
grid-template-areas: "dropdown entry entry entry entry entry entry entry entry entry amount amount";
font-size: 2em;
grid-template-columns: 20px 50% auto;
grid-gap: 5px;
font-size: 1.4em;
border-radius: 10px; border-radius: 10px;
} }


vertical-align: center; vertical-align: center;
align-items: center; align-items: center;
padding: 5px; padding: 5px;
grid-area: entry;
} }


.amount { .amount {
display: flex; display: flex;
vertical-align: center;
justify-content: flex-end;
align-items: center; align-items: center;
padding: 10px; padding: 10px;
text-align: right;
grid-area: amount;
}

.balance-list-wrapper {
display: flex;
justify-content: center;
} }


.balance-list { .balance-list {
display: grid; display: grid;
grid-template-areas: ;
width: 700px;
margin: 20px;
} }


.overview { .overview {
} }


.dropdown { .dropdown {
grid-area: dropdown;
background-image: url("./components/icons/caret-down-solid.svg"); background-image: url("./components/icons/caret-down-solid.svg");
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center;
fill: #F3f3F3
background-size: 15px;
background-position: right;
color: #f3f3f3;
} }

Loading…
Cancel
Save