Update css

This commit is contained in:
2020-04-02 17:58:00 +02:00
parent a97909fea7
commit a8b4c625ef
5 changed files with 64 additions and 24 deletions

View File

@@ -13,12 +13,13 @@
<h1>Notes</h1> <h1>Notes</h1>
<div class="center"> <div class="center">
<div class="inline">
<form id="noteInput"> <form id="noteInput">
<input type="text" id="noteInputText"> <textarea id="noteInputText" style="resize: none;" rows="4" ></textarea>
<label for="noteInputSubmit">Legg til notis</label> <label for="noteInputSubmit">Legg til notis</label>
<input type="submit" id="noteInputSubmit"> <input type="submit" id="noteInputSubmit">
</form> </form>
</div>
<div id="notes" class="textboxGrid"></div> <div id="notes" class="textboxGrid"></div>
</div> </div>

View File

@@ -17,14 +17,14 @@
<span id="dataSpan"></span> <span id="dataSpan"></span>
</div> </div>
<table id="dataTable"> <table id="dataTable" class="inlineTable">
<tr> <tr>
<th>Nummer</th> <th>Nummer</th>
<th>Data</th> <th>Data</th>
</tr> </tr>
</table> </table>
<table id="history"></table> <table id="history" class="inlinetable"></table>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -78,6 +78,7 @@ input[type=color] {
table { table {
width: 100%; width: 100%;
display: table; display: table;
border-spacing: 0px;
} }
tbody { tbody {
@@ -125,9 +126,6 @@ tr:hover {
.center * { .center * {
margin: auto; margin: auto;
}
.center > {
display: block; display: block;
} }
@@ -136,11 +134,12 @@ tr:hover {
} }
.inline { .inline {
margin: 15px; margin: 15px 0px;
} }
.inline * { .inline * {
display: inline-block; display: inline-block;
vertical-align: middle;
} }
.leftalign * { .leftalign * {
@@ -163,8 +162,7 @@ tr:hover {
} }
.textboxGrid * { .textboxGrid * {
display: auto; display: block;
size: 100%;
margin: 0px; margin: 0px;
padding: 30px 0px; padding: 30px 0px;
text-align: center; text-align: center;
@@ -172,12 +170,13 @@ tr:hover {
} }
.textboxGrid .gridElement, .textboxGrid .linkGridElement { .textboxGrid .gridElement, .textboxGrid .linkGridElement {
display: initial;
border: 1px solid black; border: 1px solid black;
overflow-wrap: break-word; overflow-wrap: break-word;
} }
.textboxGrid .gridElement *, .textboxGrid .linkGridElement * { .textboxGrid .gridElement *, .textboxGrid .linkGridElement * {
margin: 3px; margin: auto;
padding: 0px 30px; padding: 0px 30px;
background-color: transparent; background-color: transparent;
} }
@@ -195,3 +194,20 @@ tr:hover {
.hoverable:hover { .hoverable:hover {
background-color: rgba(0, 0, 0, 0.2); background-color: rgba(0, 0, 0, 0.2);
} }
.inlineTable {
display: table;
margin: 20px 0px;
}
.inlineTable tbody {
display: table-row-group;
}
.inlineTable tr {
display: table-row;
}
.inlineTable tr th, .inlineTable tr td {
display: table-cell;
}

View File

@@ -7,9 +7,10 @@
height: max-content; height: max-content;
border-radius: $radius; border-radius: $radius;
* { margin: auto;} * {
margin: auto;
&>:not(table, .textboxGrid){ display: block;} display: block;
}
canvas { canvas {
border: 5px solid black; border: 5px solid black;
@@ -17,8 +18,11 @@
} }
.inline { .inline {
margin: $standardMargin; margin: $standardMargin 0px;
* {display: inline-block;} * {
display: inline-block;
vertical-align: middle;
}
} }
.leftalign * { .leftalign * {
@@ -40,9 +44,8 @@
} }
* { * {
display: auto; display: block;
size: 100%;
margin: 0px; margin: 0px;
padding: 30px 0px; padding: 30px 0px;
text-align: center; text-align: center;
@@ -53,11 +56,13 @@
.gridElement { .gridElement {
display: initial;
border: 1px solid black; border: 1px solid black;
overflow-wrap: break-word; overflow-wrap: break-word;
* { * {
margin: 3px; margin: auto;
padding: 0px 30px; padding: 0px 30px;
background-color: transparent; background-color: transparent;
} }
@@ -83,3 +88,21 @@
background-color: rgba($color: #000000, $alpha: 0.2); background-color: rgba($color: #000000, $alpha: 0.2);
} }
} }
.inlineTable {
display: table;
margin: 20px 0px;
tbody {
display: table-row-group;
}
tr {
display: table-row;
th, td {
display: table-cell;
}
}
}

View File

@@ -3,7 +3,6 @@
/* Colors */ /* Colors */
@import "colors"; @import "colors";
/* General styling */ /* General styling */
body { body {
@@ -95,6 +94,7 @@ input[type=submit] {
table { table {
width: 100%; width: 100%;
display: table; display: table;
border-spacing: 0px;
} }
tbody { tbody {