Compare commits

..

6 Commits

2 changed files with 284 additions and 359 deletions

View File

@ -43,7 +43,11 @@
--popup-title-bg: #b3b3b3;
--popup-title-border: 2px outset #868686;
--dialog-bg: #fbebcc;
--dialog-title: linear-gradient(180deg, #ffffff 0%, #f3dca9 8px);
--dialog-title-border: 1px outset #a48e65;
--dialog-bg: #b3b3b3;
--dialog-border: 1px outset #636363;
--dialog-button: #fbebcc;
--dialog-button-hover: #f9f7dd;
--dialog-button-active: #fffeee;

383
style.css
View File

@ -89,6 +89,156 @@ hr.arrow.right { background-position: 100% 0; }
hr.arrow.up { background-position: 0 100%; }
hr.arrow.down { background-position: 100% 100%; }
/* = OVERLAY DIALOGS */
body > div.overlay {
position: fixed;
top: 0px; bottom: 0px; left: 0px; right: 0px;
z-index: 20;
background-color: #0006;
width: 100%;
height: 100%;
}
body > div.overlay .dialog {
background: linear-gradient(180deg, #ffffff 0%, #f3dca9 8px);
border: 1px outset #a48e65;
max-height: 80%;
max-width: 400px;
margin: 16px auto;
}
body > div.overlay .dialog table {
width: 100%;
max-width: unset;
margin: 0px;
}
body > div.overlay .dialog table th, body > div.overlay .dialog table td { padding: 4px; }
body > div.overlay .dialog table.titlebox { font-family: var(--primary-font); }
body > div.overlay .dialog table.titlebox img.close-button {
cursor: pointer;
user-select: none;
}
body > div.overlay .dialog table tr th:nth-of-type(1) {
text-align: left;
}
body > div.overlay .dialog table:not(.titlebox) {
background: #b3b3b3;
border: 1px outset #636363;
display: block;
height: 400px;
overflow: auto;
}
/* = TABBED CONTAINERS */
.tabbed-container {
display: flex;
flex-direction: column;
}
.tabbed-container .tablist {
position: relative;
bottom: -2px;
display: flex;
flex-direction: row;
flex-shrink: 0;
overflow-x: auto;
overflow-y: hidden;
}
.tabbed-container .tablist .tab,
.tabbed-container .tablist .faketab {
cursor: pointer;
}
.tablist a,
.tablist a:link, .tablist a:visited {
color: var(--main-text);
text-decoration: none;
}
.tabbed-container .tablist .tab,
.tabbed-container .tablist .faketab {
background-color: var(--tab-inactive);
border: var(--tab-border);
display: inline-block;
padding: 8px;
position: relative;
margin: auto 2px 0px 2px;
bottom: -2px;
text-align: center;
font-family: var(--primary-font);
}
.tabbed-container .tablist .tab *:not(.userlink) img,
.tabbed-container .tablist .faketab img {
vertical-align: middle;
}
.tabbed-container .tablist .tab.selected,
.tabbed-container .tablist .faketab.selected {
background: var(--tab-selected, #d3d3d3);
background: -moz-linear-gradient(0deg, var(--tab-selected) 50%, var(--tab-gradient) 100%);
background: -webkit-linear-gradient(0deg, var(--tab-selected) 50%, var(--tab-gradient) 100%);
background: linear-gradient(0deg, var(--tab-selected) 50%, var(--tab-gradient) 100%);
bottom: -2px;
/*border-bottom: none;*/
}
.tabbed-container .box,
.tabbed-container .dropdown {
background-color: var(--tab-selected);
border: var(--tab-border);
padding: 4px;
display: block;
flex: auto;
}
/* JS should handle positions and shit */
.tabbed-container .dropdown {
position: absolute;
border-top: none;
}
@media only screen and (orientation: landscape) {
.tabbed-container.vertical {
flex-direction: row;
}
.tabbed-container.vertical > .tablist {
position: relative;
right: -1px;
bottom: 0px;
display: flex;
flex-direction: column;
overflow-x: hidden;
overflow-y: auto;
flex-shrink: 0;
}
.tabbed-container.vertical > .tablist .tab,
.tabbed-container.vertical > .tablist .faketab {
margin: 2px 0px;
right: -1px;
bottom: 0px;
}
.tabbed-container.vertical > .tablist .tab.selected,
.tabbed-container.vertical > .tablist .faketab.selected {
background: var(--tab-selected, #d3d3d3);
background: -moz-linear-gradient(-90deg, var(--tab-selected) 25%, var(--tab-gradient) 100%);
background: -webkit-linear-gradient(-90deg, var(--tab-selected) 25%, var(--tab-gradient) 100%);
background: linear-gradient(-90deg, var(--tab-selected) 25%, var(--tab-gradient) 100%);
border: var(--tab-border);
}
}
/* == MAIN BODY */
body {
@ -1284,6 +1434,7 @@ body.forum.new table.board-display tr.title-row input {
}
heading .button {
display: inline-block !important;
}
@ -1436,10 +1587,6 @@ textarea {
vertical-align: top;
}
table {
max-width: calc(100% - 8px);
}
.mail-count {
color: var(--alert);
position: relative;
@ -1454,77 +1601,12 @@ table {
margin: 4px;
}
.tabbed-container .tablist .tab,
.tabbed-container .tablist .faketab {
cursor: pointer;
}
.mailbox a,
.mailbox a:link, .mailbox a:visited,
.tablist a,
.tablist a:link, .tablist a:visited {
.mailbox a:link, .mailbox a:visited {
color: var(--main-text);
text-decoration: none;
}
.tabbed-container {
display: flex;
flex-direction: column;
}
.tabbed-container .tablist {
position: relative;
bottom: -2px;
display: flex;
flex-direction: row;
flex-shrink: 0;
overflow-x: auto;
overflow-y: hidden;
}
.tabbed-container .tablist .tab,
.tabbed-container .tablist .faketab {
background-color: var(--tab-inactive);
border: var(--tab-border);
display: inline-block;
padding: 8px;
position: relative;
margin: auto 2px 0px 2px;
bottom: -2px;
text-align: center;
font-family: var(--primary-font);
}
.tabbed-container .tablist .tab *:not(.userlink) img,
.tabbed-container .tablist .faketab img {
vertical-align: middle;
}
.tabbed-container .tablist .tab.selected,
.tabbed-container .tablist .faketab.selected {
background: var(--tab-selected, #d3d3d3);
background: -moz-linear-gradient(0deg, var(--tab-selected) 50%, var(--tab-gradient) 100%);
background: -webkit-linear-gradient(0deg, var(--tab-selected) 50%, var(--tab-gradient) 100%);
background: linear-gradient(0deg, var(--tab-selected) 50%, var(--tab-gradient) 100%);
bottom: -2px;
/*border-bottom: none;*/
}
.tabbed-container .box,
.tabbed-container .dropdown {
background-color: var(--tab-selected);
border: var(--tab-border);
padding: 4px;
display: block;
flex: auto;
}
/* JS should handle positions and shit */
.tabbed-container .dropdown {
position: absolute;
border-top: none;
}
.mailbox .message,
.userbox .member {
background-color: var(--primary-container-background);
@ -1540,167 +1622,6 @@ table {
image-rendering: pixelated;
}
.overlay {
position: fixed;
top: 0px; bottom: 0px; left: 0px; right: 0px;
z-index: 20;
background-color: #000a;
width: 100%;
height: 100%;
display: flex;
align-items: center;
}
.overlay .box,
.overlay .attachment {
background: var(--main-background);
border: 2px inset gray;
padding: 8px;
margin-left: auto; margin-right: auto;
}
.overlay .box {
position: fixed;
left: 0; right: 0;
}
.overlay .popup {
min-width: 128px;
/*height: 80px;*/
overflow: auto;
}
.overlay .popup.box .embedder .embed-item {
display: inline-block;
padding: 4px;
cursor: pointer;
border: 1px solid transparent;
height: 30px;
font-family: var(--primary-font);
}
.overlay .popup.box .embedder .embed-item img {
padding: 2px;
margin: 2px;
vertical-align: middle;
}
.overlay .popup.box .embedder .embed-item:hover {
border: var(--primary-container-border);
background: var(--primary-container-background);
}
.overlay .popup.box .embedder .embed-item.selected {
border: 1px outset #65aad2;
background: #b6dfe6;
}
.dragbox {
position: absolute;
z-index: 10;
background: var(--main-background);
border: var(--primary-container-border);
padding: 8px;
box-shadow: #0005 5px 5px 4px;
max-width: 100%;
}
.dragbox textarea {
resize: both;
}
.overlay .popup .titlebar,
.overlay .attachment .titlebar,
.dragbox .titlebar {
display: flex;
position: sticky;
top: -8px;
margin: -8px;
margin-bottom: 8px;
padding: 4px;
background: var(--popup-title-bg);
border-bottom: var(--popup-title-border);
font-family: var(--primary-font);
}
.overlay .popup .titlebar .title,
.overlay .attachment .titlebar .title,
.dragbox .titlebar .title {
flex-grow: 1;
}
.overlay .popup .titlebar .closebtn,
.overlay .attachment .titlebar .closebtn,
.dragbox .titlebar .closebtn {
cursor: pointer;
}
.dragbox .button-row {
display: flex;
border-top: var(--primary-container-border);
margin: -8px; margin-top: 0px;
padding: 4px;
}
.dragbox .content {display: flex;}
.dragbox#rename .content,
.dragbox#new-folder .content {
flex-direction: column;
}
@media only screen and (orientation: portrait) {
.overlay .box {
left: 4px;
right: 4px;
}
.overlay .box, .overlay .attachment {
max-width: 100%;
}
.overlay .popup, .overlay .attachment {
max-height: 90%;
}
}
@media only screen and (orientation: landscape) {
.overlay .popup {
max-width: 512px;
max-height:90%;
}
.tabbed-container.vertical {
flex-direction: row;
}
.tabbed-container.vertical > .tablist {
position: relative;
right: -1px;
bottom: 0px;
display: flex;
flex-direction: column;
overflow-x: hidden;
overflow-y: auto;
flex-shrink: 0;
}
.tabbed-container.vertical > .tablist .tab,
.tabbed-container.vertical > .tablist .faketab {
margin: 2px 0px;
right: -1px;
bottom: 0px;
}
.tabbed-container.vertical > .tablist .tab.selected,
.tabbed-container.vertical > .tablist .faketab.selected {
background: var(--tab-selected, #d3d3d3);
background: -moz-linear-gradient(-90deg, var(--tab-selected) 25%, var(--tab-gradient) 100%);
background: -webkit-linear-gradient(-90deg, var(--tab-selected) 25%, var(--tab-gradient) 100%);
background: linear-gradient(-90deg, var(--tab-selected) 25%, var(--tab-gradient) 100%);
border: var(--tab-border);
}
}
.close {
position: absolute;
background-image: url('//assets.worlio.com/style/icons/deny');