status-frontend/src/styles/Home.module.css

217 lines
3.6 KiB
CSS
Raw Normal View History

2022-10-19 19:10:04 +02:00
.app {
2022-10-18 16:45:01 +02:00
padding: var(--spacer);
2022-10-18 16:27:41 +02:00
margin: 0 auto;
2022-10-18 22:51:23 +02:00
background: url('../../node_modules/@oceanprotocol/art/waves/waves.svg')
no-repeat center 13.5rem;
2022-10-19 17:40:44 +02:00
min-height: 100vh;
2022-09-29 16:25:10 +02:00
}
2022-10-18 20:14:49 +02:00
@media screen and (min-width: 50rem) {
2022-10-19 19:10:04 +02:00
.app {
2022-10-18 20:14:49 +02:00
padding: calc(var(--spacer) * 2);
}
}
2022-10-19 19:10:04 +02:00
.header,
.content,
.footer {
max-width: 70rem;
margin: 0 auto;
}
2022-09-29 16:25:10 +02:00
.footer {
2022-10-18 20:14:49 +02:00
padding: var(--spacer) 0;
2022-09-29 16:25:10 +02:00
}
.title {
2022-10-18 21:52:14 +02:00
margin-bottom: calc(var(--spacer) / 4);
2022-10-18 16:27:41 +02:00
font-size: 3rem;
2022-09-29 16:25:10 +02:00
}
.title,
.description {
text-align: center;
}
.description {
2022-10-18 16:45:01 +02:00
font-size: var(--font-size-large);
2022-10-18 21:52:14 +02:00
margin: 0 auto;
max-width: 50rem;
2022-09-29 16:25:10 +02:00
}
2022-10-18 16:45:01 +02:00
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
gap: var(--spacer);
2022-09-29 16:25:10 +02:00
}
2022-10-18 16:45:01 +02:00
.networkName {
2022-10-18 22:51:23 +02:00
margin-top: calc(var(--spacer) * 3);
2022-10-19 21:56:12 +02:00
margin-bottom: var(--spacer);
2022-10-18 16:45:01 +02:00
text-transform: capitalize;
2022-10-19 21:56:12 +02:00
line-height: 1;
2022-09-29 16:25:10 +02:00
}
.card {
padding: 1.5rem;
text-align: left;
color: inherit;
text-decoration: none;
2022-10-18 22:51:23 +02:00
background: var(--background-content);
border-radius: var(--border-radius);
2022-10-18 22:51:23 +02:00
box-shadow: 0 6px 17px 0 var(--box-shadow-color);
border: 1px solid var(--border-color);
2022-10-19 21:20:09 +02:00
display: flex;
flex-wrap: wrap;
}
2022-10-18 21:52:14 +02:00
.titleComponent {
font-size: var(--font-size-large);
2022-10-18 19:58:05 +02:00
margin: 0;
2022-10-19 21:20:09 +02:00
width: 100%;
}
.titleComponent a {
color: inherit;
}
.titleComponent a:hover,
.titleComponent a:focus {
color: var(--color-primary);
}
.links {
width: calc(100% + 1rem);
margin-top: calc(var(--spacer) / 2);
font-size: var(--font-size-small);
text-align: right;
margin-bottom: -1.2rem;
margin-right: -1rem;
align-self: flex-end;
}
.links svg {
display: inline-block;
stroke: var(--color-secondary);
width: 1.2em;
height: 1.2em;
}
.links a:hover svg,
.links a:focus svg {
stroke: var(--color-primary);
2022-09-29 16:25:10 +02:00
}
2022-10-20 11:00:36 +02:00
.degraded {
border-color: var(--brand-alert-yellow);
}
2022-10-20 11:00:36 +02:00
.outage {
border-color: var(--brand-alert-red);
}
.version {
color: var(--color-secondary);
2022-10-18 19:58:05 +02:00
font-size: var(--font-size-small);
margin-left: calc(var(--spacer) / 4);
2022-09-29 16:25:10 +02:00
}
.logo {
2022-10-18 16:27:41 +02:00
fill: var(--font-color-heading);
2022-10-18 16:45:01 +02:00
height: 4rem;
width: 4rem;
2022-10-18 22:51:23 +02:00
margin: 0 auto calc(var(--spacer) / 2) auto;
2022-09-29 16:25:10 +02:00
}
2022-10-18 20:14:49 +02:00
.icon {
display: inline-block;
margin-right: calc(var(--spacer) / 6);
}
2022-10-18 19:58:05 +02:00
2022-10-18 20:14:49 +02:00
.check {
fill: var(--brand-alert-green);
}
2022-10-18 19:58:05 +02:00
.messages {
2022-10-19 21:20:09 +02:00
width: 100%;
2022-10-18 19:58:05 +02:00
list-style-type: square;
margin-left: 1rem;
margin-top: calc(var(--spacer) / 4);
color: var(--color-secondary);
font-size: var(--font-size-small);
2022-10-18 19:58:05 +02:00
}
.messages li {
display: list-item;
margin-top: calc(var(--spacer) / 8);
list-style-position: outside;
}
2022-10-20 11:00:36 +02:00
.degraded .messages {
2022-10-18 19:58:05 +02:00
color: var(--brand-alert-orange);
}
2022-10-18 21:52:14 +02:00
2022-10-20 11:00:36 +02:00
.outage .messages {
2022-10-19 17:40:44 +02:00
color: var(--brand-alert-red);
}
2022-10-18 21:52:14 +02:00
.contracts {
margin-top: var(--spacer);
}
.contracts summary {
cursor: pointer;
}
.contracts .titleComponent {
display: inline-block;
2022-10-19 21:20:09 +02:00
width: auto;
2022-10-19 21:56:12 +02:00
margin-bottom: calc(var(--spacer) / 2);
}
.contracts li {
padding: calc(var(--spacer) / 6) calc(var(--spacer) / 2);
border-top: 1px solid var(--border-color);
}
.contracts li:hover {
background: var(--background-highlight);
}
.contracts li:last-child {
border-bottom: 1px solid var(--border-color);
}
.contracts li code {
display: block;
word-wrap: break-word;
overflow-wrap: break-word;
white-space: pre-wrap;
}
@media screen and (min-width: 55rem) {
.contracts li {
display: grid;
grid-template-columns: 2fr 4fr;
}
}
.contracts .key {
font-weight: var(--font-weight-bold);
2022-10-18 21:52:14 +02:00
}
2022-10-18 22:51:23 +02:00
.loading {
margin-top: 30vh;
text-align: center;
}
2022-10-19 19:17:15 +02:00
.date {
2022-10-19 21:56:12 +02:00
display: inline;
2022-10-19 20:46:33 +02:00
margin-left: calc(var(--spacer) / 4);
2022-10-19 19:17:15 +02:00
font-size: var(--font-size-small);
color: var(--color-secondary);
2022-10-19 20:46:33 +02:00
text-transform: lowercase;
font-family: var(--font-family-base);
font-weight: var(--font-weight-base);
2022-10-19 19:17:15 +02:00
}