mirror of
https://github.com/overte-org/overte.git
synced 2025-04-30 03:42:34 +02:00
Entities table styling
This commit is contained in:
parent
89d4bea73e
commit
c7712f2d05
2 changed files with 182 additions and 125 deletions
|
@ -8,10 +8,22 @@
|
||||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: Raleway-Regular;
|
||||||
|
src: url(../../resources/fonts/Raleway-Regular.ttf), /* Production */
|
||||||
|
url(../../interface/resources/fonts/Raleway-Regular.ttf); /* Development */
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: Raleway-Light;
|
||||||
|
src: url(../../resources/fonts/Raleway-Light.ttf),
|
||||||
|
url(../../interface/resources/fonts/Raleway-Light.ttf);
|
||||||
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: Raleway-Bold;
|
font-family: Raleway-Bold;
|
||||||
src: url(../../resources/fonts/Raleway-Bold.ttf), /* Production */
|
src: url(../../resources/fonts/Raleway-Bold.ttf),
|
||||||
url(../../interface/resources/fonts/Raleway-Bold.ttf); /* Development */
|
url(../../interface/resources/fonts/Raleway-Bold.ttf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
|
@ -20,6 +32,12 @@
|
||||||
url(../../interface/resources/fonts/Raleway-SemiBold.ttf);
|
url(../../interface/resources/fonts/Raleway-SemiBold.ttf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: FiraSans-SemiBold;
|
||||||
|
src: url(../../resources/fonts/FiraSans-SemiBold.ttf),
|
||||||
|
url(../../interface/resources/fonts/FiraSans-SemiBold.ttf);
|
||||||
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: HiFi-Glyphs;
|
font-family: HiFi-Glyphs;
|
||||||
src: url(../../resources/fonts/hifi-glyphs.ttf),
|
src: url(../../resources/fonts/hifi-glyphs.ttf),
|
||||||
|
@ -30,10 +48,10 @@ body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 24px 12px 24px 12px;
|
padding: 24px 12px 24px 12px;
|
||||||
|
|
||||||
background-color: #404040;
|
|
||||||
color: #afafaf;
|
color: #afafaf;
|
||||||
font-family: Arial;
|
background-color: #404040;
|
||||||
font-size: 9.0pt;
|
font-family: Raleway-Regular;
|
||||||
|
font-size: 15px;
|
||||||
|
|
||||||
-webkit-touch-callout: none;
|
-webkit-touch-callout: none;
|
||||||
-webkit-user-select: none;
|
-webkit-user-select: none;
|
||||||
|
@ -43,78 +61,92 @@ body {
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
td {
|
|
||||||
vertical-align: top;
|
table {
|
||||||
|
font-family: FiraSans-SemiBold;
|
||||||
|
font-size: 15px;
|
||||||
|
color: #afafaf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
thead {
|
||||||
.selectable {
|
font-family: Raleway-Regular;
|
||||||
-webkit-touch-callout: text;
|
font-size: 12px;
|
||||||
-webkit-user-select: text;
|
background-color: #1c1c1c;
|
||||||
-khtml-user-select: text;
|
border-bottom: 1px solid #575757;
|
||||||
-moz-user-select: text;
|
width: 100%;
|
||||||
-ms-user-select: text;
|
|
||||||
user-select: text;
|
|
||||||
|
|
||||||
cursor: text;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.color-box {
|
tbody {
|
||||||
display: inline-block;
|
width: 100%;
|
||||||
width: 15pt;
|
}
|
||||||
height: 15pt;
|
|
||||||
border: 0.75pt solid black;
|
tfoot {
|
||||||
margin: 1.5pt;
|
font-family: Raleway-Light;
|
||||||
|
font-size: 13px;
|
||||||
|
background-color: #1c1c1c;
|
||||||
|
border-top: 1px solid #575757;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
thead tr {
|
||||||
|
height: 30px;
|
||||||
|
padding-top: 3px;
|
||||||
|
padding-bottom: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
thead th {
|
||||||
|
height: 28px;
|
||||||
|
background-color: #1c1c1c;
|
||||||
|
}
|
||||||
|
|
||||||
|
tbody td {
|
||||||
|
height: 26px;
|
||||||
|
}
|
||||||
|
|
||||||
|
tfoot td {
|
||||||
|
height: 18px;
|
||||||
|
width: 100%;
|
||||||
|
background-color: #1c1c1c;
|
||||||
|
}
|
||||||
|
|
||||||
|
tr {
|
||||||
|
width: 100%;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.color-box.highlight {
|
tr:nth-child(odd) {
|
||||||
width: 13.5pt;
|
background-color: #2e2e2e;
|
||||||
height: 13.5pt;
|
|
||||||
border: 1.5pt solid black;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-header, .sub-section-header {
|
tr:nth-child(even) {
|
||||||
background: #AAA;
|
background-color: #1c1c1c;
|
||||||
border-bottom: 0.75pt solid #CCC;
|
|
||||||
background-color: #333333;
|
|
||||||
color: #999;
|
|
||||||
padding: 3pt;
|
|
||||||
padding-top: 6pt;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-header label, .sub-section-header label {
|
tr.selected {
|
||||||
font-weight: bold;
|
color: #000000;
|
||||||
font-size: 11pt;
|
background-color: #00b4ef;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sub-section-header {
|
th {
|
||||||
padding-top: 4px;
|
text-align: center;
|
||||||
|
word-wrap: nowrap;
|
||||||
|
white-space: nowrap;
|
||||||
|
padding-left: 12px;
|
||||||
|
padding-right: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sub-section-header label {
|
td {
|
||||||
font-size: 9pt;
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
word-wrap: nowrap;
|
||||||
|
padding-left: 12px;
|
||||||
|
padding-right: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.multi-property-section {
|
td.url {
|
||||||
}
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
.property-section {
|
|
||||||
display: block;
|
|
||||||
margin: 10 10;
|
|
||||||
height: 22.5pt;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.property-section label {
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.property-section span {
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.grid-section {
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -253,6 +285,75 @@ input[type=button].red:active {
|
||||||
background: linear-gradient(#94132e, #94132e);
|
background: linear-gradient(#94132e, #94132e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.selectable {
|
||||||
|
-webkit-touch-callout: text;
|
||||||
|
-webkit-user-select: text;
|
||||||
|
-khtml-user-select: text;
|
||||||
|
-moz-user-select: text;
|
||||||
|
-ms-user-select: text;
|
||||||
|
user-select: text;
|
||||||
|
|
||||||
|
cursor: text;
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-box {
|
||||||
|
display: inline-block;
|
||||||
|
width: 15pt;
|
||||||
|
height: 15pt;
|
||||||
|
border: 0.75pt solid black;
|
||||||
|
margin: 1.5pt;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-box.highlight {
|
||||||
|
width: 13.5pt;
|
||||||
|
height: 13.5pt;
|
||||||
|
border: 1.5pt solid black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-header, .sub-section-header {
|
||||||
|
background: #AAA;
|
||||||
|
border-bottom: 0.75pt solid #CCC;
|
||||||
|
background-color: #333333;
|
||||||
|
color: #999;
|
||||||
|
padding: 3pt;
|
||||||
|
padding-top: 6pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-header label, .sub-section-header label {
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 11pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub-section-header {
|
||||||
|
padding-top: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub-section-header label {
|
||||||
|
font-size: 9pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
.multi-property-section {
|
||||||
|
}
|
||||||
|
|
||||||
|
.property-section {
|
||||||
|
display: block;
|
||||||
|
margin: 10 10;
|
||||||
|
height: 22.5pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
.property-section label {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.property-section span {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.grid-section {
|
||||||
|
}
|
||||||
|
|
||||||
.color-picker {
|
.color-picker {
|
||||||
width: 50px;
|
width: 50px;
|
||||||
height: 10px;
|
height: 10px;
|
||||||
|
@ -294,7 +395,7 @@ input[type=button].red:active {
|
||||||
}
|
}
|
||||||
|
|
||||||
#search-area {
|
#search-area {
|
||||||
padding-right: 142px;
|
padding-right: 148px;
|
||||||
padding-bottom: 24px;
|
padding-bottom: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -303,9 +404,8 @@ input[type=button].red:active {
|
||||||
}
|
}
|
||||||
|
|
||||||
#radius-and-unit {
|
#radius-and-unit {
|
||||||
width: 142px;
|
|
||||||
float: right;
|
float: right;
|
||||||
margin-right: -152px;
|
margin-right: -148px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#radius {
|
#radius {
|
||||||
|
@ -317,96 +417,55 @@ input[type=button].red:active {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
padding-top: 24px; /* Space for header and footer outside of scroll region. */
|
padding-top: 28px; /* Space for header and footer outside of scroll region. */
|
||||||
margin-top: 24px;
|
margin-top: 28px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#entity-table-scroll, #entity-table {
|
#entity-table-scroll, #entity-table {
|
||||||
background-color: #2d2d2d;
|
background-color: #1c1c1c;
|
||||||
}
|
}
|
||||||
|
|
||||||
#entity-table {
|
#entity-table {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: -24px;
|
margin-top: -28px;
|
||||||
margin-bottom: -24px;
|
margin-bottom: -18px;
|
||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
font-family: Sans-Serif;
|
|
||||||
font-size: 9pt;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#col-type {
|
#col-type {
|
||||||
width: 15%;
|
width: 16%;
|
||||||
}
|
}
|
||||||
#col-name {
|
#col-name {
|
||||||
width: 30%;
|
width: 42%;
|
||||||
}
|
}
|
||||||
#col-url {
|
#col-url {
|
||||||
width: 54%;
|
width: 42%;
|
||||||
}
|
|
||||||
#col-id {
|
|
||||||
width: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#entity-table thead {
|
#entity-table thead {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 54px;
|
top: 52px; /* 24px below search field and 28px for header */
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#entity-table tfoot {
|
#entity-table tfoot {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: -18px;
|
bottom: -17px;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#entity-table tr {
|
|
||||||
width: 100%;
|
|
||||||
cursor: pointer;
|
|
||||||
border-bottom: 0.75pt solid rgb(63, 63, 63)
|
|
||||||
}
|
|
||||||
|
|
||||||
#entity-table tr.selected {
|
|
||||||
color: rgb(43, 43, 43);
|
|
||||||
background-color: #AAA;
|
|
||||||
}
|
|
||||||
|
|
||||||
#entity-table th, #entity-table tfoot {
|
|
||||||
background-color: #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
#entity-table th {
|
|
||||||
color: #fff;
|
|
||||||
border: 0pt black solid;
|
|
||||||
text-align: left;
|
|
||||||
word-wrap: nowrap;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
#entity-table td {
|
|
||||||
font-size: 9.0pt;
|
|
||||||
border: 0pt black solid;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
white-space: nowrap;
|
|
||||||
word-wrap: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
#entity-table td.url {
|
|
||||||
white-space: nowrap;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
#no-entities {
|
#no-entities {
|
||||||
display: none;
|
display: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 54px;
|
top: 80px;
|
||||||
font-size: 120%;
|
padding: 12px;
|
||||||
padding: 10pt;
|
font-family: FiraSans-SemiBold;
|
||||||
font-weight: bold;
|
font-size: 15px;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
|
color: #afafaf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -278,14 +278,12 @@
|
||||||
<col span="1" id="col-type" />
|
<col span="1" id="col-type" />
|
||||||
<col span="1" id="col-name" />
|
<col span="1" id="col-name" />
|
||||||
<col span="1" id="col-url" />
|
<col span="1" id="col-url" />
|
||||||
<col span="1" id="col-id" />
|
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th id="entity-type" data-sort="type">Type <span class="sort-order" style="display: inline"> ▾</span></th>
|
<th id="entity-type" data-sort="type">TYPE <span class="sort-order" style="display: inline"> ▾</span></th>
|
||||||
<th id="entity-name" data-sort="type">Name <span class="sort-order" style="display: inline"> ▾</span></th>
|
<th id="entity-name" data-sort="type">NAME <span class="sort-order" style="display: inline"> ▾</span></th>
|
||||||
<th id="entity-url" data-sort="url">URL <span class="sort-order" style="display: none"> ▾</span></th>
|
<th id="entity-url" data-sort="url">FILE <span class="sort-order" style="display: none"> ▾</span></th>
|
||||||
<th style="display: none"></th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="list" id="entity-table-body">
|
<tbody class="list" id="entity-table-body">
|
||||||
|
@ -298,7 +296,7 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Footer text</td>
|
<td colspan="4">Footer text</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in a new issue