mirror of https://github.com/zulip/zulip.git
378 lines
6.6 KiB
CSS
378 lines
6.6 KiB
CSS
/* Reusable, object-oriented CSS base components for the Zulip redesign */
|
|
|
|
.flex {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.hide {
|
|
display: none;
|
|
}
|
|
|
|
.light {
|
|
font-weight: 300;
|
|
}
|
|
|
|
.display-none {
|
|
display: none;
|
|
}
|
|
|
|
.inline-block {
|
|
display: inline-block;
|
|
}
|
|
|
|
.display-block {
|
|
display: block !important;
|
|
}
|
|
|
|
.box-shadow {
|
|
box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.bg-white {
|
|
background-color: #FFF;
|
|
}
|
|
|
|
.clear-float {
|
|
clear: both;
|
|
}
|
|
|
|
.invisible {
|
|
visibility: hidden;
|
|
}
|
|
|
|
/* -- base button styling -- */
|
|
.new-style .button {
|
|
padding: 7px 14px;
|
|
margin: 0;
|
|
min-width: 130px;
|
|
|
|
font-weight: 400;
|
|
text-align: center;
|
|
|
|
background-color: #fff;
|
|
color: inherit;
|
|
outline: none;
|
|
border: 1px solid #CCC;
|
|
border-radius: 2px;
|
|
|
|
box-shadow: none;
|
|
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
/* -- button style variations -- */
|
|
.new-style .button.no-style {
|
|
padding: 0px;
|
|
background-color: transparent;
|
|
border: none;
|
|
min-width: 0px;
|
|
width: auto;
|
|
outline: none;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.new-style .button.rounded {
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.new-style .button.green {
|
|
background-color: #64ad89;
|
|
}
|
|
|
|
.new-style .button.grey {
|
|
background-color: #aaa;
|
|
}
|
|
|
|
.new-style .button.standalone {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.new-style .button.small {
|
|
font-size: 0.8rem;
|
|
min-width: inherit;
|
|
padding: 6px 10px;
|
|
}
|
|
|
|
.new-style .button.small-flex {
|
|
width: auto;
|
|
min-width: inherit;
|
|
}
|
|
|
|
.new-style .button.sea-green {
|
|
color: #5bb792;
|
|
border-color: #addcc9;
|
|
}
|
|
|
|
.new-style .button.btn-warning {
|
|
color: #de9b40;
|
|
border-color: #ffdfb1;
|
|
}
|
|
|
|
.new-style .button.btn-danger {
|
|
color: #e6898d;
|
|
border-color: #ecbdba;
|
|
}
|
|
|
|
/* -- button states -- */
|
|
.new-style .button:hover {
|
|
border-color: #999;
|
|
}
|
|
|
|
.new-style .button:active {
|
|
border-color: #999;
|
|
color: inherit;
|
|
background-color: #f4f4f4;
|
|
}
|
|
|
|
.new-style .button.sea-green:hover {
|
|
border-color: #6ab094;
|
|
}
|
|
|
|
.new-style .button.sea-green:active {
|
|
border-color: #6ab094;
|
|
color: #3e9f78;
|
|
background-color: #f2f9f6;
|
|
}
|
|
|
|
.new-style .button.btn-danger:hover {
|
|
border-color: #d48d8a;
|
|
}
|
|
|
|
.new-style .button.btn-danger:active {
|
|
color: #d56d72;
|
|
border-color: #d48d8a;
|
|
background-color: #fff7f6;
|
|
}
|
|
|
|
.new-style .button.btn-warning:hover {
|
|
border-color: #debb8a;
|
|
}
|
|
|
|
.new-style .button.btn-warning:active {
|
|
color: #bb7613;
|
|
border-color: #debb8a;
|
|
background-color: #faf5ef;
|
|
}
|
|
|
|
|
|
.new-style .button[disabled="disabled"] {
|
|
cursor: not-allowed;
|
|
-moz-filter: saturate(0);
|
|
filter: saturate(0);
|
|
background-color: #eee;
|
|
color: #888181;
|
|
}
|
|
|
|
.new-style .button[disabled="disabled"]:hover {
|
|
background-color: #eee;
|
|
color: #5bb792;
|
|
border-color: #addcc9;
|
|
}
|
|
|
|
/* -- tab switcher -- */
|
|
|
|
.new-style .tab-switcher {
|
|
font-weight: initial;
|
|
margin: 2px 4px;
|
|
display: inline-block;
|
|
}
|
|
|
|
.new-style .tab-switcher .ind-tab {
|
|
display: inline-block;
|
|
width: 90px;
|
|
margin: 0px -0.5px;
|
|
text-align: center;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
vertical-align: bottom; /* See http://stackoverflow.com/a/43266155/ */
|
|
padding: 3px 10px;
|
|
background-color: #fff;
|
|
cursor: pointer;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.informational-overlays .tab-switcher {
|
|
display: flex;
|
|
}
|
|
|
|
.informational-overlays .tab-switcher .ind-tab {
|
|
display: flex;
|
|
text-overflow: initial;
|
|
white-space: initial;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.new-style .tab-switcher.large .ind-tab {
|
|
width: 130px;
|
|
}
|
|
|
|
.new-style .tab-switcher .ind-tab:not(.selected) {
|
|
border: 1px solid #ccc;
|
|
}
|
|
|
|
.new-style .tab-switcher .ind-tab.first {
|
|
border-radius: 5px 0px 0px 5px;
|
|
border-right: 1px solid transparent;
|
|
}
|
|
|
|
.new-style .tab-switcher .ind-tab.middle {
|
|
border-right: 1px solid transparent;
|
|
}
|
|
|
|
.new-style .tab-switcher .ind-tab.last {
|
|
border-radius: 0px 5px 5px 0px;
|
|
}
|
|
|
|
.new-style .tab-switcher .ind-tab.selected {
|
|
position: relative;
|
|
background: #888;
|
|
color: #fff;
|
|
border: 1px solid #777;
|
|
z-index: 2;
|
|
}
|
|
|
|
.new-style .tab-switcher .ind-tab.disabled {
|
|
pointer-events: none;
|
|
color: #CCC;
|
|
border-color: #DDD;
|
|
}
|
|
|
|
.new-style label.checkbox {
|
|
padding: 0px;
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.new-style label.checkbox input[type=checkbox] {
|
|
display: none;
|
|
}
|
|
|
|
.new-style label.checkbox input[type=checkbox] ~ span {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
position: relative;
|
|
top: -2px;
|
|
|
|
padding: 1px;
|
|
margin: 0px 5px 0px 0px;
|
|
height: 12px;
|
|
width: 12px;
|
|
|
|
font-weight: 300;
|
|
line-height: 0.8;
|
|
font-size: 1.3rem;
|
|
text-align: center;
|
|
border: 2px solid #ccc;
|
|
color: #ccc;
|
|
|
|
border-radius: 4px;
|
|
-webkit-filter: grayscale(1) brightness(0.7);
|
|
|
|
cursor: pointer;
|
|
}
|
|
|
|
.new-style label.checkbox input[type=checkbox]:checked ~ span {
|
|
color: transparent;
|
|
|
|
background-image: url(/static/images/checkbox-green.png);
|
|
background-size: 85%;
|
|
background-position: 50% 50%;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
.new-style label.checkbox input[type=checkbox]:disabled ~ span {
|
|
opacity: 0.3;
|
|
}
|
|
|
|
.new-style input[type=text] {
|
|
border-radius: 5px;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.new-style a.no-style {
|
|
color: inherit;
|
|
}
|
|
|
|
/* -- unified overlay design component -- */
|
|
.overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
overflow: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
background-color: rgba(32,32,32,0.8);
|
|
z-index: 105;
|
|
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.overlay.show {
|
|
opacity: 1;
|
|
pointer-events: all;
|
|
}
|
|
|
|
.overlay .overlay-content {
|
|
-webkit-transform: scale(0.5);
|
|
transform: scale(0.5);
|
|
|
|
z-index: 102;
|
|
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.overlay.show .overlay-content {
|
|
-webkit-transform: scale(1);
|
|
transform: scale(1);
|
|
}
|
|
|
|
.input-append {
|
|
font-size: 90%;
|
|
letter-spacing: -.3em;
|
|
}
|
|
|
|
.input-append input[type=text] {
|
|
border-radius: 5px;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.clear_search_button:hover {
|
|
color: #000;
|
|
}
|
|
|
|
.clear_search_button[disabled] {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.clear_search_button,
|
|
.clear_search_button:focus,
|
|
.clear_search_button:active,
|
|
.clear_search_button[disabled]:hover {
|
|
position: relative;
|
|
right: 20px;
|
|
background: none;
|
|
border: none;
|
|
text-align: center;
|
|
padding-top: 8px;
|
|
padding-left: 4px;
|
|
color: #ccc;
|
|
text-shadow: none;
|
|
outline: none !important;
|
|
box-shadow: none;
|
|
-webkit-box-shadow: none;
|
|
-moz-box-shadow: none;
|
|
z-index: 5;
|
|
}
|