mirror of
https://github.com/RetroShare/RSNewWebUI.git
synced 2026-09-13 18:45:49 +05:00
452 lines
7.4 KiB
CSS
452 lines
7.4 KiB
CSS
/******************************
|
|
General site-wide rules
|
|
******************************/
|
|
|
|
/* Main base div for tabs used by m.route */
|
|
.content {
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Main tab content */
|
|
#tab-content {
|
|
height: 100%;
|
|
background-color: #eef3f6;
|
|
overflow: auto;
|
|
}
|
|
/* Individual tab pages */
|
|
.tab-page {
|
|
/* This is required since main content's overflow is hidden
|
|
and bottom elements will not be entirely visible. */
|
|
margin-bottom: 200px;
|
|
animation: fadein 0.5s;
|
|
}
|
|
|
|
input[type='text'],
|
|
input[type='password'],
|
|
input[type='number'],
|
|
textarea {
|
|
box-sizing: border-box;
|
|
background: white;
|
|
max-width: 100%;
|
|
font-size: 1.2em;
|
|
font-weight: 400;
|
|
border: 1px solid #ccc;
|
|
border-radius: 5px;
|
|
padding: 0.5em;
|
|
/* Disable chromium's focused element hinting*/
|
|
outline: none;
|
|
}
|
|
input:focus {
|
|
border: 1px solid #3ba4d7;
|
|
box-shadow: inset 0 0 5px #ccc;
|
|
}
|
|
input.stretched {
|
|
width: 90%;
|
|
}
|
|
input.small {
|
|
max-width: 70%;
|
|
font-size: 1em;
|
|
padding: 0.1em;
|
|
}
|
|
input.searchbar {
|
|
display: block;
|
|
margin: 0.9em 0 0 0.9em;
|
|
}
|
|
|
|
button {
|
|
color: white;
|
|
background: #2699ed;
|
|
font-size: 1.2em;
|
|
padding: 5px 10px;
|
|
border: 0;
|
|
border-radius: 5px;
|
|
box-shadow: inset -3px -3px 0 #0d69ac;
|
|
cursor: pointer;
|
|
}
|
|
button:active {
|
|
outline: none;
|
|
box-shadow: inset 3px 3px 0 #0d69ac;
|
|
}
|
|
button.red {
|
|
background: #bd0909;
|
|
box-shadow: inset -3px -3px 0 #830000;
|
|
}
|
|
|
|
table {
|
|
padding: 20px;
|
|
table-layout: fixed;
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
text-align: center;
|
|
color: #333;
|
|
font-size: 1.2em;
|
|
}
|
|
table th {
|
|
font-weight: 100;
|
|
font-size: 1.3em;
|
|
color: black;
|
|
border-bottom: 2px solid #eee;
|
|
}
|
|
table tr {
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 2em;
|
|
font-weight: 100;
|
|
color: #444;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
hr {
|
|
margin-left: 0;
|
|
color: #aaa;
|
|
}
|
|
|
|
.widget {
|
|
margin: 1em;
|
|
padding: 1em;
|
|
border-radius: 10px;
|
|
background-color: white;
|
|
}
|
|
.widget > p {
|
|
margin: 0;
|
|
font-size: 0.9em;
|
|
color: #666;
|
|
}
|
|
.widget .tooltip {
|
|
float: right;
|
|
}
|
|
.widget-half {
|
|
max-width: 50%;
|
|
}
|
|
.certificate {
|
|
margin: auto;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
margin-top: 20px;
|
|
}
|
|
.certificate > p {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
.textArea {
|
|
box-sizing: none;
|
|
background: transparent;
|
|
font-size: 1.1rem;
|
|
border-radius: 5px;
|
|
border: none;
|
|
}
|
|
|
|
.logo {
|
|
display: flex;
|
|
max-width: 500px;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
.retroshareText > h3 {
|
|
margin-right: 3px;
|
|
}
|
|
.webhelp {
|
|
background: whitesmoke;
|
|
font-size: 0.8rem;
|
|
|
|
border-radius: 5px;
|
|
display: flex;
|
|
justify-content: start;
|
|
align-items: center;
|
|
color: black;
|
|
border-radius: 5px;
|
|
border: 1px solid black;
|
|
padding: 0px 10px;
|
|
}
|
|
.webhelp > i {
|
|
margin-right: 1.2px;
|
|
font-size: 1.2rem;
|
|
}
|
|
.webhelp > p {
|
|
font-weight: 600;
|
|
}
|
|
.retroshareID {
|
|
display: flex;
|
|
justify-self: start;
|
|
align-items: center;
|
|
font-size: 1.2rem;
|
|
}
|
|
.grid-2col {
|
|
display: grid;
|
|
grid-template-columns: auto auto;
|
|
grid-row-gap: 16px;
|
|
justify-content: start;
|
|
}
|
|
.grid-2col input[type='checkbox'] {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.error {
|
|
color: red;
|
|
}
|
|
|
|
.progressbar {
|
|
width: 100%;
|
|
border-radius: 500px;
|
|
background-color: #eef3f6;
|
|
position: relative;
|
|
text-align: left;
|
|
}
|
|
.progressbar:before {
|
|
position: absolute;
|
|
text-align: center;
|
|
left: 0;
|
|
right: 0;
|
|
}
|
|
.progress-status {
|
|
display: inline-block;
|
|
height: 100%;
|
|
padding: 5px;
|
|
border-radius: 500px;
|
|
color: #000;
|
|
background-color: #3ba4d7;
|
|
text-align: center;
|
|
}
|
|
|
|
.tooltip {
|
|
color: #333;
|
|
/*display: inline-block;*/
|
|
position: relative;
|
|
}
|
|
.tooltiptext {
|
|
visibility: hidden;
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 50%;
|
|
min-width: 250px;
|
|
margin-left: -120px;
|
|
z-index: 1;
|
|
color: #ccc;
|
|
background-color: #333;
|
|
font-size: 0.9em;
|
|
text-align: center;
|
|
padding: 5px 0;
|
|
border-radius: 5px;
|
|
}
|
|
.tooltip:hover .tooltiptext {
|
|
visibility: visible;
|
|
animation: fadein 0.5s;
|
|
}
|
|
|
|
#modal-container {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 1;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
background-color: rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.modal-content {
|
|
position: absolute;
|
|
color: #555;
|
|
width: 40%;
|
|
/*height: 40%;*/
|
|
min-height: 250px;
|
|
transform: translate(60%, 50%);
|
|
background-color: white;
|
|
padding: 2em;
|
|
border-radius: 20px;
|
|
animation: fadein 0.5s;
|
|
}
|
|
.modal-content > button {
|
|
float: right;
|
|
}
|
|
|
|
#notification-container {
|
|
position: absolute;
|
|
bottom: 0;
|
|
right: 0;
|
|
}
|
|
#notification-container .notification {
|
|
}
|
|
|
|
/******************************
|
|
Animations
|
|
******************************/
|
|
|
|
@keyframes fadein {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
.fadein {
|
|
animation: fadein 0.5s;
|
|
}
|
|
|
|
@keyframes swipe-from-left {
|
|
from {
|
|
margin-left: 100%;
|
|
}
|
|
to {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes expand-left-border {
|
|
from {
|
|
border-left: 0;
|
|
}
|
|
to {
|
|
border-left: 5px solid #3ba4d7;
|
|
}
|
|
}
|
|
|
|
/******************************
|
|
Target specific sections
|
|
******************************/
|
|
|
|
/* Login */
|
|
.login-page {
|
|
background-image: linear-gradient(-45deg, #0e76a7, #7bccff);
|
|
height: 100%;
|
|
animation: fadein 0.5s;
|
|
}
|
|
.login-container {
|
|
background-color: white;
|
|
box-shadow: 3px 3px 5px #444;
|
|
margin: auto;
|
|
position: relative;
|
|
top: 100px;
|
|
max-width: 400px;
|
|
max-height: 500px;
|
|
border-radius: 5px;
|
|
|
|
display: flex;
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.extra > label,
|
|
.extra > br,
|
|
.extra > input {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.login-container * {
|
|
margin-bottom: 15px;
|
|
}
|
|
.login-container > img {
|
|
margin-top: 15px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.login-container extra {
|
|
margin: 0;
|
|
}
|
|
.login-container > a {
|
|
text-decoration: underline;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Navbar */
|
|
nav.tab-menu {
|
|
border-right: 5px solid #3ba4d7;
|
|
background-color: #333;
|
|
box-shadow: 0 5px 5px #aaa;
|
|
float: left;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
height: 100%;
|
|
margin-right: 0rem;
|
|
}
|
|
.tab-menu-item {
|
|
width: 6rem;
|
|
}
|
|
a.tab-menu-item {
|
|
padding: 1em;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
color: #ccc;
|
|
font-size: 1em;
|
|
/* CSS capitalization is magical! */
|
|
text-transform: capitalize;
|
|
transition: all 0.5s;
|
|
/* To vertically stack child nodes */
|
|
display: inline-flex;
|
|
flex-direction: row;
|
|
}
|
|
.tab-menu-item:hover {
|
|
background-color: #999;
|
|
}
|
|
|
|
.tab-menu-item.selected-tab-item {
|
|
background-color: #3ba4d7;
|
|
color: white;
|
|
}
|
|
.sidebar {
|
|
height: 30%;
|
|
width: 200px;
|
|
background-color: white;
|
|
}
|
|
.sidebar a {
|
|
text-decoration: none;
|
|
text-transform: capitalize;
|
|
padding: 1em;
|
|
cursor: pointer;
|
|
display: block;
|
|
font-size: 0.95em;
|
|
color: #999;
|
|
}
|
|
.sidebar a:hover {
|
|
color: #222;
|
|
}
|
|
.sidebar .selected-sidebar-link {
|
|
font-weight: bold;
|
|
color: #222;
|
|
border-left: 5px solid #3ba4d7;
|
|
animation: expand-left-border 0.1s;
|
|
}
|
|
.sidebarquickview {
|
|
height: 30%;
|
|
width: 200px;
|
|
top: 300px;
|
|
background-color: white;
|
|
}
|
|
.sidebarquickview a {
|
|
text-decoration: none;
|
|
text-transform: capitalize;
|
|
padding: 1em;
|
|
cursor: pointer;
|
|
display: block;
|
|
font-size: 0.95em;
|
|
color: #999;
|
|
}
|
|
.sidebarquickview a:hover {
|
|
color: #222;
|
|
}
|
|
.sidebarquickview .selected-sidebarquickview-link {
|
|
font-weight: bold;
|
|
color: #222;
|
|
border-left: 5px solid #3ba4d7;
|
|
animation: expand-left-border 0.1s;
|
|
}
|
|
/* Content adjacent to sidebar */
|
|
.node-panel {
|
|
position: relative;
|
|
/* bottom: 650px; */
|
|
margin-left: 200px;
|
|
animation: fadein 0.5s;
|
|
}
|
|
|
|
i.sidenav-icon {
|
|
padding-right: 1rem;
|
|
}
|