mirror of
https://github.com/oxen-io/oxen-observer.git
synced 2023-12-14 09:22:54 +01:00
0bce9ab758
This works and displays a little differently than before: - Only one search box for block/tx/SN instead of one for block/tx and one for SN - Put the search box at the top right when the page is wide enough. - When a search result is found we redirect to its proper URL rather than displaying on the search URL
369 lines
5.7 KiB
CSS
369 lines
5.7 KiB
CSS
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-size: 80%;
|
|
background-color: #1a1a1a;
|
|
font-family: sans-serif;
|
|
color: white;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
text-align: left;
|
|
font-weight: normal;
|
|
margin-bottom: 0.2em;
|
|
}
|
|
|
|
#header>#header-content {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
padding-top: 12px;
|
|
padding-bottom: 12px;
|
|
}
|
|
#header h1 {
|
|
flex: 50%;
|
|
min-width: 500px;
|
|
}
|
|
#header form.top-search {
|
|
flex: 50%;
|
|
min-width: 500px;
|
|
display: flex;
|
|
}
|
|
#header form.top-search input[type="text"] {
|
|
flex-grow: 1;
|
|
flex-shrink: 1;
|
|
}
|
|
#header form.top-search input[type="submit"] {
|
|
flex: 0 0 12ex;
|
|
margin-right: 0;
|
|
}
|
|
|
|
|
|
|
|
.general_info {
|
|
font-size: 12px;
|
|
margin-top: 5px;
|
|
margin-bottom: 3px;
|
|
}
|
|
.info_list>span:not(:first-child):before {
|
|
content: " | ";
|
|
}
|
|
.info_list>span {
|
|
font-weight: bold;
|
|
}
|
|
.info_list>span>label {
|
|
font-weight: normal;
|
|
}
|
|
.info_list>span>label.omg {
|
|
font-weight: bold;
|
|
}
|
|
p>label, span>label, h3>label, h4>label, td>label, .info-item>label {
|
|
color: #30a532;
|
|
}
|
|
label.warning {
|
|
color: red;
|
|
}
|
|
.nowrap-spans {
|
|
text-indent: -2em;
|
|
padding-left: 2em;
|
|
}
|
|
.nowrap-spans>span {
|
|
white-space: nowrap;
|
|
}
|
|
.info-item:before {
|
|
content: " | ";
|
|
white-space: nowrap;
|
|
}
|
|
.info-item {
|
|
word-wrap: break-word;
|
|
padding-left: 6em;
|
|
text-indent: -4em;
|
|
}
|
|
.info-item>label {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.Subtitle {
|
|
font-size: 1.0em;
|
|
color: rgba(255, 255, 255, 0.8);
|
|
margin: 0;
|
|
margin-top: 0.5em;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
.PaginationControl,
|
|
.PageButton {
|
|
background-color: #008522;
|
|
min-height: 1.5em;
|
|
padding: 5px;
|
|
padding-top: 8px;
|
|
margin-right: 1em;
|
|
font-weight: bold;
|
|
font-size: 1em;
|
|
color: white;
|
|
border: none;
|
|
font-family: sans-serif;
|
|
}
|
|
|
|
.PageButton.disabled {
|
|
background-color: #808080;
|
|
}
|
|
|
|
.PaginationControl select {
|
|
font-size: inherit;
|
|
background-color: #1a1a1a;
|
|
color: #008522;
|
|
border: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.PageButton:hover {
|
|
background-color: #006a1b;
|
|
}
|
|
.PageButton.disabled:hover {
|
|
background-color: #707070;
|
|
}
|
|
|
|
.Wrapper {
|
|
width: 80%;
|
|
margin: auto;
|
|
}
|
|
|
|
.Header {
|
|
margin: 0;
|
|
}
|
|
|
|
.Header > a:link {
|
|
text-decoration: none;
|
|
color: white; !important
|
|
}
|
|
|
|
.Table {
|
|
width: 100%;
|
|
}
|
|
|
|
table thead tr,
|
|
.TableHeader {
|
|
font-weight: bold;
|
|
background-color: #008522;
|
|
}
|
|
|
|
.TitleUnderliner {
|
|
height: 2px;
|
|
width: 100%;
|
|
background-color: #008522;
|
|
margin-bottom: 1em;
|
|
}
|
|
.TitleDivider {
|
|
height: 2px;
|
|
width: 100%;
|
|
background-color: #008522;
|
|
margin: 1em 0;
|
|
}
|
|
|
|
.LinkNoUnderline {
|
|
text-decoration: none !important;
|
|
}
|
|
|
|
.LinkNoUnderline:hover {
|
|
color: white;
|
|
}
|
|
|
|
.center {
|
|
margin: auto;
|
|
width: 96%;
|
|
/*border: 1px solid #73AD21;
|
|
padding: 10px;*/
|
|
}
|
|
|
|
tr, li, #pages, .info {
|
|
height: 2em;
|
|
margin: auto;
|
|
}
|
|
|
|
#pages {
|
|
margin-top: 1em;
|
|
margin-bottom: 1em;
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
td {
|
|
text-align: center;
|
|
}
|
|
|
|
a:link, a:visited {
|
|
text-decoration: underline;
|
|
color: white;
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration: underline;
|
|
color: #78be20;
|
|
}
|
|
|
|
form {
|
|
display: inline-block;
|
|
}
|
|
|
|
.top-search input[type="text"] {
|
|
padding: 2px;
|
|
border: solid 1px rgba(255, 255, 255, 0.25);
|
|
background-color: #1a1a1a;
|
|
height: 2em;
|
|
width: 80%;
|
|
font-size: 1em;
|
|
color: white;
|
|
}
|
|
|
|
.top-search input[type="text"]:focus,
|
|
.top-search input[type="text"].focus {
|
|
border: solid 1px #008522;
|
|
}
|
|
h1, h2, h3, h4, h5, h6 { color: white; }
|
|
|
|
.tabs {
|
|
position: relative;
|
|
min-height: 220px; /* This part sucks */
|
|
clear: both;
|
|
margin: 25px 0;
|
|
}
|
|
|
|
.tab {
|
|
float: left;
|
|
}
|
|
|
|
.tab label {
|
|
background: rgba(0, 133, 34, 0.5);
|
|
padding: 10px;
|
|
margin-right: 2px;
|
|
margin-left: -1px;
|
|
position: relative;
|
|
left: 1px;
|
|
}
|
|
|
|
.tab [type=radio] {
|
|
display: none;
|
|
}
|
|
|
|
.content {
|
|
position: absolute;
|
|
top: 28px;
|
|
left: 0;
|
|
background: #1a1a1a;
|
|
right: 0;
|
|
bottom: 0;
|
|
padding-top: 20px;
|
|
padding-right: 20px;
|
|
padding-bottom: 20px;
|
|
border-top: 2px solid #008522;
|
|
}
|
|
|
|
[type=radio]:checked ~ label {
|
|
background: #008522 ;
|
|
z-index: 2;
|
|
}
|
|
|
|
[type=radio]:checked ~ label ~ .content {
|
|
z-index: 1;
|
|
}
|
|
|
|
input#toggle-1[type=checkbox] {
|
|
position: absolute;
|
|
/*top: -9999px;*/
|
|
left: -9999px;
|
|
|
|
}
|
|
label#show-decoded-inputs {
|
|
/*-webkit-appearance: push-button;*/
|
|
/*-moz-appearance: button;*/
|
|
/*margin: 60px 0 10px 0;*/
|
|
cursor: pointer;
|
|
display: block;
|
|
}
|
|
|
|
div#decoded-inputs{
|
|
}
|
|
|
|
/* Toggled State */
|
|
input#toggle-1[type=checkbox]:checked ~ div#decoded-inputs {
|
|
display: block;
|
|
}
|
|
|
|
.Table.metadata td {
|
|
text-align: left;
|
|
}
|
|
|
|
.Table.metadata label {
|
|
text-align: right;
|
|
display: inline-block;
|
|
width: 50%;
|
|
}
|
|
|
|
|
|
td.sn-more {
|
|
font-style: italic;
|
|
font-size: 125%;
|
|
}
|
|
|
|
p.state-change-pubkey {
|
|
font-size: 120%;
|
|
}
|
|
th.voter-signature, td.voter-signature {
|
|
max-width: 300px;
|
|
}
|
|
td.voter-signature {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
td.quorum-pubkey span {
|
|
display: inline-block;
|
|
width: 80ex;
|
|
text-align: left;
|
|
}
|
|
|
|
th.subheader {
|
|
text-align: left;
|
|
border-bottom: 2px solid #008522;
|
|
}
|
|
|
|
td span.checkpoint-signed { color: #008522; }
|
|
td span.checkpoint-not-signed { color: #c50022; }
|
|
|
|
.omg {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.pending-mempool-stakes .tx {
|
|
max-width: 100px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
h3 .sn-count {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.TXType {
|
|
font-family: initial;
|
|
}
|
|
|
|
span.icon {
|
|
cursor: help;
|
|
}
|
|
|
|
.syntax-highlight>pre {
|
|
font-size: 125%;
|
|
overflow-x: auto;
|
|
tab-size: 4;
|
|
-o-tab-size: 4;
|
|
-moz-tab-size: 4;
|
|
border: 1px solid #008522;
|
|
padding: 10px;
|
|
}
|
|
|
|
.tx-inputs, .tx-outputs {
|
|
max-width: 1000px;
|
|
margin: auto;
|
|
}
|