Files
zulip-desktop/app/renderer/css/main.css
2017-07-18 09:18:17 +08:00

214 lines
3.7 KiB
CSS

/*******************
* General rules *
*******************/
html, body {
height: 100%;
margin: 0;
cursor: default;
user-select:none;
}
#content {
display: flex;
height: 100%;
background: #eee url(../img/ic_loading.gif) no-repeat;
background-size: 60px 60px;
background-position: center;
}
#sidebar {
background: #222c31;
width: 54px;
padding: 27px 0 20px 0;
justify-content: space-between;
display: flex;
flex-direction: column;
-webkit-app-region: drag;
overflow: hidden;
}
@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
src: local('Material Icons'),
local('MaterialIcons-Regular'),
url(../fonts/MaterialIcons-Regular.ttf) format('truetype');
}
/*******************
* Left Sidebar *
*******************/
#tabs-container {
display: flex;
align-items: center;
flex-direction: column;
}
.material-icons {
font-family: 'Material Icons';
font-weight: normal;
font-style: normal;
/* Preferred icon size */
font-size: 24px;
display: inline-block;
line-height: 1;
text-transform: none;
letter-spacing: normal;
word-wrap: normal;
white-space: nowrap;
direction: ltr;
/* Support for all WebKit browsers. */
-webkit-font-smoothing: antialiased;
/* Support for Safari and Chrome. */
text-rendering: optimizeLegibility;
}
.action-button {
display: flex;
flex-direction: column;
align-items: center;
padding: 10px;
}
.action-button i {
color: #6c8592;
font-size: 28px;
}
.action-button:hover i {
color: #98a9b3;
}
.tab {
position: relative;
margin: 4px 0;
cursor: pointer;
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
}
.tab .server-tab {
background-size: 28px;
background-repeat: no-repeat;
background-position: center;
border-radius: 4px;
width: 35px;
height: 35px;
position: relative;
margin: 5px 0 2px 0;
z-index: 11;
line-height: 31px;
color: #194a2b;
text-align: center;
overflow: hidden;
opacity: 0.6;
}
.tab .server-tab:hover {
opacity: 0.8;
}
.tab.functional-tab {
height: 46px;
}
.tab.functional-tab.active{
background: #8c9897;
}
.tab.functional-tab .server-tab{
background: #eee;
}
.tab.functional-tab .server-tab i {
font-size: 28px;
line-height: 36px;
}
.tab.functional-tab .server-tab-badge.active {
top: 0px;
}
.tab.active .server-tab {
opacity: 1;
}
.tab .server-tab-badge.active {
border-radius: 9px;
min-width: 11px;
padding: 0 3px;
height: 17px;
background-color: #f44336;
font-size: 10px;
font-family: sans-serif;
position: absolute;
right: 1px;
z-index: 15;
top: 3px;
float: right;
color: #fff;
text-align: center;
line-height: 17px;
display: block;
}
.tab .server-tab-badge {
display: none;
}
.tab .server-tab-badge.close-button {
width: 16px;
padding: 0;
}
.tab .server-tab-badge.close-button i {
font-size: 13px;
line-height: 17px;
}
#add-tab {
display: flex;
align-items: center;
flex-direction: column;
}
.tab .server-tab-shortcut {
color: #648478;
font-size: 12px;
text-align: center;
font-family: sans-serif;
margin-bottom: 5px;
}
.tab.active .server-tab-shortcut {
color: #afd2c6;
}
.tab.active {
background: #648478;
}
/*******************
* Webview Area *
*******************/
webview {
opacity: 1;
transition: opacity 0.3s;
flex-grow: 1;
}
webview.disabled {
flex: 0 1;
height: 0;
width: 0;
opacity: 0;
transition: opacity 0.3s;
}
webview:focus {
outline: 0px solid transparent;
}