mirror of
https://github.com/RetroShare/RSNewWebUI.git
synced 2026-09-14 11:05:47 +05:00
The Tabs class in rswebui.js will handle all common tab boilerplate and store tabs state as well as route tables for the main routings.
176 lines
3.1 KiB
CSS
176 lines
3.1 KiB
CSS
/******************************
|
|
General site-wide rules
|
|
******************************/
|
|
h3 {
|
|
padding: 10px;
|
|
}
|
|
|
|
input, textarea {
|
|
box-sizing: border-box;
|
|
background: white;
|
|
font-size: 1.2em;
|
|
font-weight: 400;
|
|
border: 1px solid #ccc;
|
|
border-radius: 5px;
|
|
padding: 0.5em;
|
|
} input:focus {
|
|
border: 1px solid #3ba4d7;
|
|
box-shadow: inset 0 0 5px #ccc;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
table {
|
|
padding: 20px;
|
|
table-layout: fixed;
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
text-align: center;
|
|
} table th {
|
|
background-color: #3ba4d7;
|
|
height: 1em;
|
|
}
|
|
|
|
ul {
|
|
list-style-type: none;
|
|
}
|
|
li {
|
|
border-bottom: 1px solid #ccc;
|
|
padding: 10px;
|
|
}
|
|
|
|
.frame-center {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.error {
|
|
color: red;
|
|
}
|
|
|
|
.progressbar {
|
|
width: 100%;
|
|
background-color: grey;
|
|
position: relative;
|
|
text-align: left;
|
|
}.progressbar:before{
|
|
position: absolute;
|
|
text-align: center;
|
|
left: 0;
|
|
right: 0;
|
|
}.progress-status {
|
|
display: inline-block;
|
|
height: 100%;
|
|
background-color: #3ba4d7;
|
|
text-align: center;
|
|
}
|
|
|
|
/******************************
|
|
Animations
|
|
******************************/
|
|
|
|
@keyframes fadein {
|
|
from {opacity: 0;}
|
|
to {opacity: 1;}
|
|
}
|
|
|
|
.tab {
|
|
animation: fadein 0.5s;
|
|
}
|
|
|
|
/******************************
|
|
Target specific sections
|
|
******************************/
|
|
|
|
/* Margin on top to avoid getting covered by navbar */
|
|
#tab-content {
|
|
margin-top: 3em;
|
|
}
|
|
|
|
/* 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: 30%;
|
|
height: 50%;
|
|
border-radius: 5px;
|
|
|
|
display: flex;
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
.login-container * {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
/* Navbar */
|
|
.tab-menu {
|
|
padding: 1em 1em;
|
|
background-color: #333;
|
|
overflow: hidden;
|
|
position: fixed;
|
|
top: 0;
|
|
z-index: 1;
|
|
width: 100%;
|
|
}
|
|
.tab-menu-item {
|
|
text-align: center;
|
|
padding: 1em 1em;
|
|
text-decoration: none;
|
|
color: white;
|
|
transition: all 0.5s;
|
|
} .tab-menu-item:hover {
|
|
background-color: #999;
|
|
} .tab-menu-item#selected-tab-item {
|
|
background-color: #3ba4d7;
|
|
}
|
|
.tab-section {
|
|
text-align: center;
|
|
}
|
|
|
|
.sidebar {
|
|
overflow-x: hidden;
|
|
position: fixed;
|
|
top: 3em;
|
|
left: 0;
|
|
height: 100%;
|
|
width: 200px;
|
|
border-right: 1px solid lightgrey;
|
|
} .sidebar-link {
|
|
text-decoration: none;
|
|
padding: 1em;
|
|
display: block;
|
|
cursor: pointer;
|
|
border-bottom: 1px solid lightgrey;
|
|
}.sidebar-link:hover{
|
|
background-color: #ccc;
|
|
}.sidebar-link#selected-sidebar-link {
|
|
background-color: lightgrey;
|
|
}
|
|
/* Content adjacent to sidebar */
|
|
.node-panel {
|
|
margin-left: 200px;
|
|
}
|