mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-27 02:46:15 -04:00
css: refactor element positioning
No more javascript to change css properties Remove a number of useless tables Try to stop positioning elements with absolute, but use flex-boxes instead Adds comment to pad template, and move popups and chatbox inside editorcontainerbox (so absolute positioning is straightforward) Make the design more consistent: always use base color, font-family and font-size. USe relative font size if necessary (.9rem instead of 11px for example) Remove two columns in the popups, just use one column Remove css meant to support old browser (like -webkit-box-shadow, -moz-box-shadow). Those css rules are quite common now, and If we want to support very old browser, we should use clean-css or other tools to add them automatically
This commit is contained in:
parent
0603bf8097
commit
5fd6aeeea6
20 changed files with 839 additions and 1224 deletions
|
@ -1,38 +1,113 @@
|
|||
#chatbox {
|
||||
#chaticon, #chatbox {
|
||||
z-index: 400;
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
right: 20px;
|
||||
width: 180px;
|
||||
height: 200px;
|
||||
z-index: 400;
|
||||
background-color: #f7f7f7;
|
||||
border-left: 1px solid #999;
|
||||
border-right: 1px solid #999;
|
||||
border-top: 1px solid #999;
|
||||
padding: 3px;
|
||||
padding-bottom: 10px;
|
||||
border-top-left-radius: 5px;
|
||||
border-top-right-radius: 5px;
|
||||
display: none;
|
||||
border: 1px solid #ccc;
|
||||
border-bottom: none;
|
||||
}
|
||||
#chatbox {
|
||||
width: 400px;
|
||||
height: 300px;
|
||||
z-index: 401;
|
||||
background-color: #f7f7f7;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
#chatbox.stickyChat {
|
||||
position: relative;
|
||||
width: auto;
|
||||
flex: 1 auto; /* take reminaning vertical space */
|
||||
height: auto;
|
||||
right: 0;
|
||||
background-color: #f1f1f1;
|
||||
border-radius: 0;
|
||||
border: none;
|
||||
border-left: 1px solid #ccc;
|
||||
}
|
||||
#chatbox.stickyChat .stick-to-screen-btn {
|
||||
display: none;
|
||||
}
|
||||
#chatbox.stickyChat.chatAndUsersChat .hide-reduce-btn {
|
||||
display:none;
|
||||
}
|
||||
|
||||
/* -- TITLE BAR -- */
|
||||
#titlebar {
|
||||
font-weight: bold;
|
||||
padding: 5px;
|
||||
}
|
||||
#titlebar #titlelabel {
|
||||
margin: 4px 0 0 4px;
|
||||
}
|
||||
#titlebar .stick-to-screen-btn,
|
||||
#titlebar .hide-reduce-btn {
|
||||
font-size: 25px;
|
||||
float: right;
|
||||
text-align: right;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
#titlebar .stick-to-screen-btn {
|
||||
font-size: 10px;
|
||||
padding-top: 2px;
|
||||
}
|
||||
|
||||
/* -- MESSAGES -- */
|
||||
#chattext {
|
||||
background-color: white;
|
||||
border: 1px solid white;
|
||||
-ms-overflow-y: scroll;
|
||||
overflow-y: scroll;
|
||||
font-size: 12px;
|
||||
position: absolute;
|
||||
right: 0px;
|
||||
left: 0px;
|
||||
top: 25px;
|
||||
bottom: 25px;
|
||||
z-index: 1002;
|
||||
overflow-y: auto;
|
||||
flex: 1 auto;
|
||||
}
|
||||
#chattext p {
|
||||
padding: 3px;
|
||||
-ms-overflow-x: hidden;
|
||||
overflow-x: hidden;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
#chattext .time {
|
||||
float: right;
|
||||
font-style: italic;
|
||||
font-size: .85rem;
|
||||
opacity: .8;
|
||||
margin-left: 3px;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
/* -- INPUT BOX -- */
|
||||
#chatinputbox {
|
||||
padding: 5px;
|
||||
}
|
||||
#chatinputbox #chatinput {
|
||||
border: 1px solid #ccc;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
/* -- CHAT ICON -- */
|
||||
#chaticon {
|
||||
background-color: #fff;
|
||||
cursor: pointer;
|
||||
display: none;
|
||||
padding: 5px;
|
||||
}
|
||||
#chaticon a {
|
||||
text-decoration: none
|
||||
}
|
||||
#chaticon #chatlabel {
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
margin-right: 3px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
#chaticon #chatcounter {
|
||||
font-size: .8rem;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
/* -- LOAD MESSAGES -- */
|
||||
.chatloadmessages
|
||||
{
|
||||
margin-bottom: 5px;
|
||||
|
@ -49,133 +124,10 @@
|
|||
{
|
||||
display: none;
|
||||
}
|
||||
#chatinputbox {
|
||||
padding: 3px 2px;
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
right: 0px;
|
||||
left: 3px;
|
||||
}
|
||||
#chatlabel {
|
||||
font-size: 13px;
|
||||
font-weight: bold;
|
||||
color: #555;
|
||||
text-decoration: none;
|
||||
margin-right: 3px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
#chatinput {
|
||||
border: 1px solid #BBBBBB;
|
||||
width: 100%;
|
||||
float: right;
|
||||
}
|
||||
#chaticon {
|
||||
z-index: 400;
|
||||
position: fixed;
|
||||
bottom: 0px;
|
||||
right: 20px;
|
||||
padding: 5px;
|
||||
border-left: 1px solid #999;
|
||||
border-right: 1px solid #999;
|
||||
border-top: 1px solid #999;
|
||||
border-top-left-radius: 5px;
|
||||
border-top-right-radius: 5px;
|
||||
background-color: #fff;
|
||||
cursor: pointer;
|
||||
display: none;
|
||||
}
|
||||
#chaticon a {
|
||||
text-decoration: none
|
||||
}
|
||||
#chatcounter {
|
||||
color: #777;
|
||||
font-size: 10px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
#chattext p {
|
||||
word-wrap: break-word
|
||||
}
|
||||
|
||||
#titlebar {
|
||||
line-height: 16px;
|
||||
font-weight: bold;
|
||||
color: #555;
|
||||
position: relative;
|
||||
bottom: 2px;
|
||||
}
|
||||
#titlelabel {
|
||||
font-size: 13px;
|
||||
margin: 4px 0 0 4px;
|
||||
position: absolute;
|
||||
}
|
||||
#titlesticky{
|
||||
font-size: 10px;
|
||||
padding-top:2px;
|
||||
float: right;
|
||||
text-align: right;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
color: #555;
|
||||
}
|
||||
#titlecross {
|
||||
font-size: 25px;
|
||||
float: right;
|
||||
text-align: right;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.stickyChat {
|
||||
background-color: #f1f1f1 !important;
|
||||
right: 0px !important;
|
||||
top: 37px;
|
||||
-webkit-border-radius: 0px !important;
|
||||
-moz-border-radius: 0px !important;
|
||||
border-radius: 0px !important;
|
||||
height: auto !important;
|
||||
border: none !important;
|
||||
border-left: 1px solid #ccc !important;
|
||||
width: 185px !important;
|
||||
}
|
||||
.chatAndUsers{
|
||||
display:block !important;
|
||||
right:0px !important;
|
||||
border-radius:0px !important;
|
||||
width:182px !important;
|
||||
/* Below makes UI look weird when X makes editbar flow onto two lines */
|
||||
/* margin:2px 0 0 0 !important;*/
|
||||
border: none !important;
|
||||
border-bottom: 1px solid #ccc !important;
|
||||
height:155px !important;
|
||||
border-left: 1px solid #ccc !important;
|
||||
}
|
||||
.chatAndUsers > #otherusers{
|
||||
max-height: 100px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.chatAndUsersChat > div > #titlecross{
|
||||
display:none;
|
||||
}
|
||||
.chatAndUsersChat{
|
||||
bottom:0px !important;
|
||||
padding:0 !important;
|
||||
margin: 165px 0px 0px 0px;
|
||||
right:0 !important;
|
||||
width:182px !important;
|
||||
border: none !important;
|
||||
padding:5px !important;
|
||||
border-left: 1px solid #ccc !important;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 720px) {
|
||||
#chaticon {
|
||||
position:fixed;
|
||||
right:48px;
|
||||
}
|
||||
#chatbox {
|
||||
position:fixed;
|
||||
bottom:33px !important;
|
||||
margin: 65px 0 0 0;
|
||||
right: 0;
|
||||
width: 80%;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,10 +32,9 @@
|
|||
}
|
||||
.gritter-item {
|
||||
display:block;
|
||||
color:#eee;
|
||||
padding:2px 11px 8px 11px;
|
||||
color: #eee;
|
||||
padding: 2px 11px 8px 11px;
|
||||
font-size: 11px;
|
||||
font-family:verdana;
|
||||
}
|
||||
.hover .gritter-item {
|
||||
background-position:right -40px;
|
||||
|
|
|
@ -1,41 +1,45 @@
|
|||
html {
|
||||
font-size: 62.5%;
|
||||
html, body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
#editbar {
|
||||
height: auto;
|
||||
}
|
||||
#editorcontainerbox {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
}
|
||||
#editorcontainer {
|
||||
position: absolute;
|
||||
top: 37px; /* + 1px border */
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
bottom: 0px;
|
||||
z-index: 1;
|
||||
flex: 1 auto;
|
||||
position: relative; /* for nested popup to use absolute positionning */
|
||||
|
||||
/* Required to be able to scroll on iOS: */
|
||||
-webkit-overflow-scrolling: touch;
|
||||
/* For sticky chat */
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
#editorcontainer iframe {
|
||||
#editorcontainerbox #editorcontainer {
|
||||
display: flex; /* transfer flex properties to nested elements, here the iframe */
|
||||
height: 100%;
|
||||
flex: 1 auto;
|
||||
}
|
||||
#editorcontainerbox #editorcontainer iframe {
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
left: 0; /* Required for safari fixes RTL */
|
||||
}
|
||||
iframe {
|
||||
position: absolute
|
||||
#editorcontainerbox .sticky-container { /* container for #users, #chat, #toc (table of content) and so on... */
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 200px;
|
||||
max-width: 40%;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
@media all and (max-width: 400px) {
|
||||
#editorcontainer {
|
||||
top: 68px;
|
||||
}
|
||||
#editorcontainerbox .sticky-container:not(.stikyUsers):not(.stickyChat) {
|
||||
width: 0; /* hide when the container is empty */
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 720px) {
|
||||
#editorcontainer {
|
||||
margin-bottom: 33px
|
||||
#editorcontainerbox {
|
||||
margin-bottom: 37px; /* Leave space for the bottom toolbar on mobile */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -55,4 +55,8 @@
|
|||
-webkit-transform: rotate(359deg);
|
||||
transform: rotate(359deg);
|
||||
}
|
||||
}
|
||||
|
||||
#passwordRequired, #permissionDenied, #wrongPassword, #noCookie {
|
||||
display:none;
|
||||
}
|
|
@ -1,28 +1,21 @@
|
|||
.popup {
|
||||
font-size: 12px;
|
||||
width: 80%;
|
||||
max-width: 500px;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 20px;
|
||||
display: none;
|
||||
z-index: 500;
|
||||
min-width: 300px;
|
||||
max-width: 600px;
|
||||
padding: 10px;
|
||||
border-radius: 0 0 6px 6px;
|
||||
border: 1px solid #ccc;
|
||||
border-top: none;
|
||||
background: #f7f7f7;
|
||||
background: -webkit-linear-gradient(#F7F7F7, #EEE);
|
||||
background: -moz-linear-gradient(#F7F7F7, #EEE);
|
||||
background: -ms-linear-gradient(#F7F7F7, #EEE);
|
||||
background: -o-linear-gradient(#F7F7F7, #EEE);
|
||||
background: linear-gradient(#F7F7F7, #EEE);
|
||||
-webkit-box-shadow: 0 0 8px #888;
|
||||
-moz-box-shadow: 0 0 8px #888;
|
||||
box-shadow: 0 2px 4px #ddd;
|
||||
color: #222;
|
||||
background: #f7f7f7;
|
||||
}
|
||||
.popup input[type=text] {
|
||||
width: 100%;
|
||||
padding: 5px;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
-ms-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
margin-top: 10px;
|
||||
|
@ -38,15 +31,16 @@
|
|||
text-decoration: none
|
||||
}
|
||||
.popup h1 {
|
||||
color: #555;
|
||||
font-size: 18px
|
||||
font-size: 1.4rem;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.popup h2 {
|
||||
color: #777;
|
||||
font-size: 15px
|
||||
opacity: .7;
|
||||
margin: 10px 0;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
.popup p {
|
||||
margin: 5px 0
|
||||
margin: 5px 0;
|
||||
}
|
||||
.popup select {
|
||||
background: #fff;
|
||||
|
@ -57,58 +51,21 @@
|
|||
outline: none;
|
||||
width: 120px;
|
||||
}
|
||||
#settings,
|
||||
#import_export,
|
||||
#embed,
|
||||
#connectivity,
|
||||
#users {
|
||||
position: absolute;
|
||||
top: 38px;
|
||||
right: 20px;
|
||||
display: none;
|
||||
z-index: 500;
|
||||
}
|
||||
|
||||
@media all and (max-width: 400px){
|
||||
.popup {
|
||||
width:100%;
|
||||
max-width:300px;
|
||||
top: 72px !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Mobile devices */
|
||||
@media only screen and (max-width: 720px) {
|
||||
#users {
|
||||
top: auto;
|
||||
right:0px !important;
|
||||
bottom: 33px;
|
||||
border-radius: 0px !important;
|
||||
height: 55px !important;
|
||||
overflow: auto;
|
||||
}
|
||||
#mycolorpicker {
|
||||
left: 0px;
|
||||
top:37px !important;
|
||||
position:fixed;
|
||||
}
|
||||
.popup {
|
||||
-webkit-border-radius: 0;
|
||||
-moz-border-radius: 0;
|
||||
border-radius: 0;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
-ms-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
}
|
||||
#settings,
|
||||
#import_export,
|
||||
#connectivity,
|
||||
#embed {
|
||||
top:auto;
|
||||
top: auto;
|
||||
left: 0;
|
||||
bottom: 33px;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
max-height: 80vh;
|
||||
max-width: none;
|
||||
|
||||
border-radius: 6px 6px 0 0;
|
||||
border: 1px solid #ccc;
|
||||
border-bottom: none;
|
||||
box-shadow: 0 -2px 4px #ddd;
|
||||
}
|
||||
}
|
|
@ -1,39 +1,29 @@
|
|||
#exportColumn{
|
||||
margin-top:20px;
|
||||
.readonly .acl-write {
|
||||
display: none;
|
||||
}
|
||||
.exporttype {
|
||||
margin-top: 4px;
|
||||
background-repeat: no-repeat;
|
||||
padding-left: 25px;
|
||||
color: #333;
|
||||
text-decoration: none;
|
||||
padding-bottom:2px;
|
||||
display:inline;
|
||||
padding-left:5px;
|
||||
font-family: "Arial";
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.exportlink{
|
||||
.exporttype:before{
|
||||
font-family: "fontawesome-etherpad";
|
||||
display:block;
|
||||
margin:5px;
|
||||
color:#666;
|
||||
margin-right: 5px;
|
||||
}
|
||||
#exporthtmla:before {
|
||||
#exporthtmla .exporttype:before {
|
||||
content: "\e826";
|
||||
}
|
||||
#exportplaina:before {
|
||||
#exportplaina .exporttype:before {
|
||||
content: "\e802";
|
||||
}
|
||||
#exportworda:before {
|
||||
#exportworda .exporttype:before {
|
||||
content: "\e804";
|
||||
}
|
||||
#exportpdfa:before {
|
||||
#exportpdfa .exporttype:before {
|
||||
content: "\e803";
|
||||
}
|
||||
#exportetherpada:before {
|
||||
#exportetherpada .exporttype:before {
|
||||
content: "\e806";
|
||||
}
|
||||
#exportopena:before {
|
||||
#exportopena .exporttype:before {
|
||||
content: "\e805";
|
||||
}
|
||||
|
||||
|
@ -51,5 +41,5 @@
|
|||
|
||||
#importsubmitinput {
|
||||
margin-top: 12px;
|
||||
padding:2px 4px 2px 4px;
|
||||
padding: 2px 4px 2px 4px;
|
||||
}
|
|
@ -1,27 +1,50 @@
|
|||
#users {
|
||||
background: #f7f7f7;
|
||||
background: -webkit-linear-gradient( #F7F7F7,#EEE);
|
||||
background: -moz-linear-gradient( #F7F7F7,#EEE);
|
||||
background: -ms-linear-gradient( #F7F7F7,#EEE);
|
||||
background: -o-linear-gradient( #F7F7F7,#EEE);
|
||||
background: linear-gradient( #F7F7F7,#EEE);
|
||||
width: 160px;
|
||||
color: #fff;
|
||||
padding: 5px;
|
||||
border-radius: 0 0 6px 6px;
|
||||
border: 1px solid #ccc;
|
||||
/* --------------- */
|
||||
/* --- LAYOUT ---- */
|
||||
/* --------------- */
|
||||
|
||||
.popup#users {
|
||||
flex-direction: column;
|
||||
max-height: 500px;
|
||||
height: auto;
|
||||
}
|
||||
#otherusers {
|
||||
max-height: 400px;
|
||||
.popup#users #myuser {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.popup#users #otherusers {
|
||||
flex: 1 auto;
|
||||
overflow: auto;
|
||||
max-height: 200px;
|
||||
}
|
||||
|
||||
.popup#users.chatAndUsers {
|
||||
display: flex !important; /* always visible */
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: auto;
|
||||
border: none;
|
||||
border-bottom: 1px solid #ccc;
|
||||
border-left: 1px solid #ccc;
|
||||
border-right: 0;
|
||||
border-radius: 0;
|
||||
box-shadow: none;
|
||||
height: 200px;
|
||||
min-width: 0;
|
||||
box-sizing: border-box;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
|
||||
/* --------------- */
|
||||
/* --- MY USER --- */
|
||||
/* --------------- */
|
||||
|
||||
#myswatchbox {
|
||||
position: absolute;
|
||||
left: 5px;
|
||||
top: 5px;
|
||||
float: left;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border: 1px solid #000;
|
||||
border: 1px solid #ccc
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
@ -30,18 +53,53 @@
|
|||
height: 100%;
|
||||
background: transparent; /*...initially*/
|
||||
}
|
||||
|
||||
#myusernameform {
|
||||
margin-left: 30px;
|
||||
}
|
||||
input#myusernameedit {
|
||||
height: 26px;
|
||||
font-size: 1.3em;
|
||||
padding: 3px;
|
||||
border: 1px solid #ccc;
|
||||
background-color: transparent;
|
||||
margin: 0;
|
||||
}
|
||||
input#myusernameedit:not(.editable) {
|
||||
color: grey;
|
||||
}
|
||||
#myuser .myusernameedithoverable:hover {
|
||||
background: white;
|
||||
}
|
||||
#myusernameform .editactive,
|
||||
#myusernameform .editempty {
|
||||
background: white;
|
||||
border-left: 1px solid #c3c3c3;
|
||||
border-top: 1px solid #c3c3c3;
|
||||
border-right: 1px solid #e6e6e6;
|
||||
border-bottom: 1px solid #e6e6e6;
|
||||
color: #000;
|
||||
}
|
||||
#myusernameform .editempty {
|
||||
color: #333
|
||||
}
|
||||
#myusernameedit, #otheruserstable .swatch {
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
|
||||
|
||||
/* --------------------------- */
|
||||
/* --- MY USER COLORPICKER --- */
|
||||
/* --------------------------- */
|
||||
|
||||
#mycolorpicker {
|
||||
display: none;
|
||||
width: 232px;
|
||||
height: 265px;
|
||||
position: absolute;
|
||||
left: -250px;
|
||||
top: 0px;
|
||||
right: calc(100% + 15px);
|
||||
top: 0;
|
||||
z-index: 101;
|
||||
display: none;
|
||||
border-radius: 0 0 6px 6px;
|
||||
background: #f7f7f7;
|
||||
border: 1px solid #ccc;
|
||||
border-top: 0;
|
||||
padding-left: 10px;
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
@ -55,14 +113,7 @@
|
|||
#mycolorpickersave,
|
||||
#mycolorpickercancel {
|
||||
background: #fff;
|
||||
background: -webkit-linear-gradient(#fff, #ccc);
|
||||
background: -moz-linear-gradient(#fff, #ccc);
|
||||
background: -o-linear-gradient(#fff, #ccc);
|
||||
background: -ms-linear-gradient(#fff, #ccc);
|
||||
background: linear-gradient(#fff, #ccc);
|
||||
border: 1px solid #ccc;
|
||||
-webkit-border-radius: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
|
@ -87,110 +138,24 @@
|
|||
-moz-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
#myusernameform {
|
||||
margin-left: 30px
|
||||
}
|
||||
#myusernameedit {
|
||||
font-size: 1.3em;
|
||||
color: #fff;
|
||||
padding: 3px;
|
||||
height: 18px;
|
||||
margin: 0;
|
||||
border: 0;
|
||||
width: 122px;
|
||||
background: transparent;
|
||||
}
|
||||
#myusernameform input.editable {
|
||||
border: 1px solid #444
|
||||
}
|
||||
#myuser .myusernameedithoverable:hover {
|
||||
background: white;
|
||||
color: black;
|
||||
}
|
||||
#mystatusform {
|
||||
margin-left: 35px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
#mystatusedit {
|
||||
font-size: 1.2em;
|
||||
color: #777;
|
||||
font-style: italic;
|
||||
display: none;
|
||||
padding: 2px;
|
||||
height: 14px;
|
||||
margin: 0;
|
||||
border: 1px solid #bbb;
|
||||
width: 199px;
|
||||
background: transparent;
|
||||
}
|
||||
#myusernameform .editactive,
|
||||
#myusernameform .editempty {
|
||||
background: white;
|
||||
border-left: 1px solid #c3c3c3;
|
||||
border-top: 1px solid #c3c3c3;
|
||||
border-right: 1px solid #e6e6e6;
|
||||
border-bottom: 1px solid #e6e6e6;
|
||||
color: #000;
|
||||
}
|
||||
#myusernameform .editempty {
|
||||
color: #333
|
||||
}
|
||||
#myswatchbox, #myusernameedit, #otheruserstable .swatch {
|
||||
border: 1px solid #ccc !important;
|
||||
color: #333;
|
||||
}
|
||||
table#otheruserstable {
|
||||
display: none
|
||||
}
|
||||
|
||||
|
||||
/* ------------------- */
|
||||
/* --- OTHER USERS --- */
|
||||
/* ------------------- */
|
||||
|
||||
#otheruserstable td {
|
||||
height: 26px;
|
||||
vertical-align: middle;
|
||||
padding: 0 2px;
|
||||
color: #333;
|
||||
}
|
||||
#otheruserstable .swatch {
|
||||
border: 1px solid #000;
|
||||
border: 1px solid #ccc;
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
overflow: hidden;
|
||||
margin: 0 4px;
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
.usertdswatch {
|
||||
width: 1%
|
||||
}
|
||||
.usertdname {
|
||||
font-size: 1.3em;
|
||||
color: #444;
|
||||
}
|
||||
.usertdstatus {
|
||||
font-size: 1.1em;
|
||||
font-style: italic;
|
||||
color: #999;
|
||||
}
|
||||
.usertdactivity {
|
||||
font-size: 1.1em;
|
||||
color: #777;
|
||||
}
|
||||
.usertdname input {
|
||||
border: 1px solid #bbb;
|
||||
width: 80px;
|
||||
padding: 2px;
|
||||
}
|
||||
.usertdname input.editactive,
|
||||
.usertdname input.editempty {
|
||||
background: white;
|
||||
border-left: 1px solid #c3c3c3;
|
||||
border-top: 1px solid #c3c3c3;
|
||||
border-right: 1px solid #e6e6e6;
|
||||
border-bottom: 1px solid #e6e6e6;
|
||||
}
|
||||
.usertdname input.editempty {
|
||||
color: #888;
|
||||
font-style: italic;
|
||||
font-size: 1.2rem;
|
||||
}
|
|
@ -1,129 +1,78 @@
|
|||
/* menu */
|
||||
.toolbar {
|
||||
display:none; /* hidden by default */
|
||||
}
|
||||
.toolbar {
|
||||
background: #f7f7f7;
|
||||
background: -webkit-linear-gradient(#f7f7f7, #f1f1f1 80%);
|
||||
background: -moz-linear-gradient(#f7f7f7, #f1f1f1 80%);
|
||||
background: -o-linear-gradient(#f7f7f7, #f1f1f1 80%);
|
||||
background: -ms-linear-gradient(#f7f7f7, #f1f1f1 80%);
|
||||
background: linear-gradient(#f7f7f7, #f1f1f1 80%);
|
||||
display: none;
|
||||
background-color: #f4f4f4;
|
||||
border-bottom: 1px solid #ccc;
|
||||
overflow: hidden;
|
||||
padding-top: 4px;
|
||||
width: 100%;
|
||||
white-space: nowrap;
|
||||
height: 32px;
|
||||
justify-content: space-between;
|
||||
padding: 0px 5px 5px 5px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.toolbar ul {
|
||||
position: absolute;
|
||||
list-style: none;
|
||||
padding-right: 3px;
|
||||
padding-left: 1px;
|
||||
z-index: 2;
|
||||
overflow: hidden;
|
||||
float: left
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.toolbar ul.menu_left {
|
||||
flex-wrap: wrap; /* wrap left toolbar so if a lot of icons are present it goes on multiple lines */
|
||||
}
|
||||
.toolbar ul.menu_right {
|
||||
flex-shrink: 0; /* prevent from shrinking */
|
||||
}
|
||||
.toolbar ul li, .toolbar ul > div {
|
||||
display: flex; /* transfer flexbox positionning to children */
|
||||
}
|
||||
.toolbar ul li {
|
||||
float: left;
|
||||
margin-left: 2px;
|
||||
height:32px;
|
||||
cursor: pointer;
|
||||
margin-top: 5px; /* when icons goes multi rows, have space betwwen each row */
|
||||
}
|
||||
.toolbar ul li.separator {
|
||||
border: inherit;
|
||||
background: inherit;
|
||||
visibility: hidden;
|
||||
width: 0px;
|
||||
padding: 5px;
|
||||
height:22px;
|
||||
}
|
||||
.toolbar ul li a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
.toolbar ul li a:hover {
|
||||
background: #fff;
|
||||
background: -webkit-linear-gradient(#f4f4f4, #e4e4e4);
|
||||
background: -moz-linear-gradient(#f4f4f4, #e4e4e4);
|
||||
background: -o-linear-gradient(#f4f4f4, #e4e4e4);
|
||||
background: -ms-linear-gradient(#f4f4f4, #e4e4e4);
|
||||
background: linear-gradient(#f4f4f4, #e4e4e4);
|
||||
}
|
||||
.toolbar ul li a:active {
|
||||
background: #eee;
|
||||
background: -webkit-linear-gradient(#ddd, #fff);
|
||||
background: -moz-linear-gradient(#ddd, #fff);
|
||||
background: -o-linear-gradient(#ddd, #fff);
|
||||
background: -ms-linear-gradient(#ddd, #fff);
|
||||
background: linear-gradient(#ddd, #fff);
|
||||
-webkit-box-shadow: 0 0 8px rgba(0,0,0,.1) inset;
|
||||
-moz-box-shadow: 0 0 8px rgba(0,0,0,.1) inset;
|
||||
box-shadow: 0 0 8px rgba(0,0,0,.1) inset;
|
||||
}
|
||||
.toolbar ul li .activeButton {
|
||||
background: #eee;
|
||||
background: -webkit-linear-gradient(#ddd, #fff);
|
||||
background: -moz-linear-gradient(#ddd, #fff);
|
||||
background: -o-linear-gradient(#ddd, #fff);
|
||||
background: -ms-linear-gradient(#ddd, #fff);
|
||||
background: linear-gradient(#ddd, #fff);
|
||||
-webkit-box-shadow: 0 0 8px rgba(0,0,0,.1) inset;
|
||||
-moz-box-shadow: 0 0 8px rgba(0,0,0,.1) inset;
|
||||
box-shadow: 0 0 8px rgba(0,0,0,.1) inset;
|
||||
width: 10px;
|
||||
}
|
||||
.toolbar ul li a {
|
||||
background: #fff;
|
||||
background: -webkit-linear-gradient(#fff, #f0f0f0);
|
||||
background: -moz-linear-gradient(#fff, #f0f0f0);
|
||||
background: -o-linear-gradient(#fff, #f0f0f0);
|
||||
background: -ms-linear-gradient(#fff, #f0f0f0);
|
||||
background: linear-gradient(#fff, #f0f0f0);
|
||||
border: 1px solid #ccc;
|
||||
cursor: pointer;
|
||||
border-radius: 3px;
|
||||
background: #fff;
|
||||
color: #ccc;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
min-height: 18px;
|
||||
overflow: hidden;
|
||||
padding: 4px 5px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
min-width: 18px;
|
||||
transition: background-color .1s;
|
||||
}
|
||||
.toolbar ul li a .buttonicon {
|
||||
position: relative;
|
||||
top: 1px;
|
||||
.toolbar ul li button:active, .toolbar ul li button:focus {
|
||||
outline: 0;
|
||||
border: none;
|
||||
}
|
||||
.toolbar ul li a .buttontext {
|
||||
color: #666;
|
||||
font-size: 14px;
|
||||
border:none;
|
||||
background:none;
|
||||
margin-top:1px;
|
||||
color:#666;
|
||||
.toolbar ul li a:hover {
|
||||
text-decoration: none;
|
||||
background-color: #f2f2f2;
|
||||
}
|
||||
.toolbar ul li a:active, .toolbar ul li a:focus {
|
||||
background: #ddd;
|
||||
}
|
||||
.toolbar ul li a.selected {
|
||||
background: #dadada !important;
|
||||
}
|
||||
|
||||
.toolbar ul li a.grouped-left {
|
||||
border-radius: 3px 0 0 3px;
|
||||
}
|
||||
.toolbar ul li a.grouped-middle {
|
||||
border-radius: 0;
|
||||
margin-left: -2px;
|
||||
border-left: 0;
|
||||
}
|
||||
.toolbar ul li a.grouped-right {
|
||||
border-radius: 0 3px 3px 0;
|
||||
margin-left: -2px;
|
||||
border-left: 0;
|
||||
}
|
||||
.toolbar ul li a.selected {
|
||||
background: #eee !important;
|
||||
background: -webkit-linear-gradient(#EEE, #F0F0F0) !important;
|
||||
background: -moz-linear-gradient(#EEE, #F0F0F0) !important;
|
||||
background: -o-linear-gradient(#EEE, #F0F0F0) !important;
|
||||
background: -ms-linear-gradient(#EEE, #F0F0F0) !important;
|
||||
background: linear-gradient(#EEE, #F0F0F0) !important;
|
||||
}
|
||||
|
||||
.toolbar ul li select {
|
||||
background: #fff;
|
||||
padding: 4px;
|
||||
|
@ -133,121 +82,58 @@
|
|||
border: 1px solid #ccc;
|
||||
outline: none;
|
||||
}
|
||||
.toolbar ul.menu_left {
|
||||
left: 0px;
|
||||
right: 210px;
|
||||
}
|
||||
|
||||
.toolbar ul.menu_right {
|
||||
right:0px;
|
||||
}
|
||||
li[data-key=showusers] > a {
|
||||
.toolbar ul li[data-key=showusers] > a {
|
||||
min-width: 30px;
|
||||
text-align: left;
|
||||
}
|
||||
li[data-key=showusers] > a #online_count {
|
||||
.toolbar ul li[data-key=showusers] > a #online_count {
|
||||
color: #777;
|
||||
font-size: 11px;
|
||||
position: relative;
|
||||
top: 2px;
|
||||
padding-left: 2px;
|
||||
}
|
||||
.toolbar #overlay {
|
||||
|
||||
.toolbar #toolbar-overlay {
|
||||
z-index: 500;
|
||||
display: none;
|
||||
background-repeat: repeat-both;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
height: inherit;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
* html #overlay {
|
||||
/* for IE 6+ */
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
|
||||
filter: alpha(opacity=100);
|
||||
opacity: 1; /* in case this is looked at */
|
||||
background-image: none;
|
||||
background-repeat: no-repeat; /* scale the image */
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
@media all and (max-width: 400px){
|
||||
.toolbar {
|
||||
height: 62px;
|
||||
}
|
||||
.toolbar ul.menu_left {
|
||||
left:0px;
|
||||
right:100px;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 600px) {
|
||||
.toolbar ul li.separator {
|
||||
display: none;
|
||||
}
|
||||
.toolbar ul li a {
|
||||
padding: 4px 1px
|
||||
}
|
||||
.toolbar ul.menu_left {
|
||||
left:0px;
|
||||
right:150px;
|
||||
}
|
||||
}
|
||||
@media only screen and (max-width: 720px) {
|
||||
/* cancel non-mobile border (will be defined on ".toolbar ul.menu_left" bellow) */
|
||||
.toolbar {
|
||||
border-bottom: 0;
|
||||
}
|
||||
.toolbar ul {
|
||||
background: #f7f7f7;
|
||||
background: -webkit-linear-gradient(#f7f7f7, #f1f1f1 80%);
|
||||
background: -moz-linear-gradient(#f7f7f7, #f1f1f1 80%);
|
||||
background: -o-linear-gradient(#f7f7f7, #f1f1f1 80%);
|
||||
background: -ms-linear-gradient(#f7f7f7, #f1f1f1 80%);
|
||||
background: linear-gradient(#f7f7f7, #f1f1f1 80%);
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
.toolbar ul.menu_left {
|
||||
right:0px;
|
||||
position: relative;
|
||||
display: flex;
|
||||
top: 0;
|
||||
overflow-x: auto;
|
||||
padding: 4px 0 0 0;
|
||||
border-bottom: 1px solid #ccc;
|
||||
z-index: 10;
|
||||
.toolbar ul li.separator {
|
||||
width: 5px;
|
||||
}
|
||||
/* menu_right act like a new toolbar on the bottom of the screen */
|
||||
.toolbar ul.menu_right, .timeslider-bar .editbarright {
|
||||
right:0px !important;
|
||||
height: 32px;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
border-top: 1px solid #ccc;
|
||||
}
|
||||
.toolbar ul.menu_right > li:last-child {
|
||||
float: right;
|
||||
background-color: #f4f4f4;
|
||||
padding: 0 5px 5px 5px;
|
||||
}
|
||||
.toolbar ul.menu_right > li a {
|
||||
border-radius: 0;
|
||||
border: none;
|
||||
background: none;
|
||||
background-color: transparent;
|
||||
margin-left: 5px;
|
||||
}
|
||||
.toolbar ul.menu_right > li[data-key="showusers"] {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
margin: 0;
|
||||
padding: 8px;
|
||||
}
|
||||
.toolbar ul li a.selected {
|
||||
background: none !important
|
||||
}
|
||||
li[data-key="showusers"] > a {
|
||||
|
||||
margin-top:-10px;
|
||||
padding-top:2px !important;
|
||||
line-height:20px;
|
||||
vertical-align:top !important;
|
||||
}
|
||||
.toolbar ul li .separator {
|
||||
display: none
|
||||
}
|
||||
.toolbar #online_count {
|
||||
line-height: 24px
|
||||
.toolbar ul.menu_right > li[data-key="showusers"] a {
|
||||
padding-top: 10px;
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue