2016-09-28 02:55:56 +02:00
|
|
|
/* Reusable, object-oriented CSS base components for the Zulip redesign */
|
|
|
|
|
2016-10-29 01:58:22 +02:00
|
|
|
.flex {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hide {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2016-12-02 21:52:03 +01:00
|
|
|
.light {
|
|
|
|
font-weight: 300;
|
|
|
|
}
|
|
|
|
|
2016-12-02 21:55:55 +01:00
|
|
|
.display-none {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.inline-block {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2017-05-16 05:43:21 +02:00
|
|
|
.display-block {
|
|
|
|
display: block !important;
|
|
|
|
}
|
|
|
|
|
2016-12-02 21:57:32 +01:00
|
|
|
.box-shadow {
|
2017-06-21 08:47:58 +02:00
|
|
|
box-shadow: 0px 0px 10px hsla(0, 0%, 0%, 0.1);
|
2016-12-02 21:57:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.bg-white {
|
|
|
|
background-color: #FFF;
|
|
|
|
}
|
|
|
|
|
2016-11-01 22:32:10 +01:00
|
|
|
.clear-float {
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
|
2016-12-15 03:15:52 +01:00
|
|
|
.invisible {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
2016-09-28 02:48:24 +02:00
|
|
|
/* -- base button styling -- */
|
2016-10-07 22:06:40 +02:00
|
|
|
.new-style .button {
|
2017-06-06 01:57:22 +02:00
|
|
|
padding: 7px 14px;
|
2016-09-28 02:48:24 +02:00
|
|
|
margin: 0;
|
|
|
|
min-width: 130px;
|
|
|
|
|
|
|
|
font-weight: 400;
|
|
|
|
text-align: center;
|
|
|
|
|
2017-06-06 01:57:22 +02:00
|
|
|
background-color: #fff;
|
|
|
|
color: inherit;
|
2016-09-28 02:48:24 +02:00
|
|
|
outline: none;
|
2017-06-21 08:47:58 +02:00
|
|
|
border: 1px solid hsl(0, 0%, 80%);
|
2016-09-28 02:48:24 +02:00
|
|
|
border-radius: 2px;
|
|
|
|
|
2017-06-06 01:57:22 +02:00
|
|
|
box-shadow: none;
|
|
|
|
|
2016-09-28 02:48:24 +02:00
|
|
|
cursor: pointer;
|
2017-03-18 10:44:00 +01:00
|
|
|
transition: all 0.2s ease;
|
2017-02-21 21:34:13 +01:00
|
|
|
}
|
|
|
|
|
2016-09-28 02:48:24 +02:00
|
|
|
/* -- button style variations -- */
|
2016-10-07 22:06:40 +02:00
|
|
|
.new-style .button.no-style {
|
2016-09-28 02:48:24 +02:00
|
|
|
padding: 0px;
|
|
|
|
background-color: transparent;
|
|
|
|
border: none;
|
|
|
|
min-width: 0px;
|
|
|
|
width: auto;
|
|
|
|
outline: none;
|
|
|
|
box-shadow: none !important;
|
|
|
|
}
|
|
|
|
|
2017-01-27 00:40:42 +01:00
|
|
|
.new-style .button.rounded {
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
2016-10-07 22:06:40 +02:00
|
|
|
.new-style .button.green {
|
2017-06-21 08:47:58 +02:00
|
|
|
background-color: hsl(150, 31%, 53%);
|
2016-09-28 02:48:24 +02:00
|
|
|
}
|
|
|
|
|
2016-10-07 22:06:40 +02:00
|
|
|
.new-style .button.grey {
|
2017-06-21 08:47:58 +02:00
|
|
|
background-color: hsl(0, 0%, 66%);
|
2016-09-28 02:48:24 +02:00
|
|
|
}
|
|
|
|
|
2016-10-07 22:06:40 +02:00
|
|
|
.new-style .button.standalone {
|
2016-09-28 02:48:24 +02:00
|
|
|
margin-top: 10px;
|
|
|
|
}
|
|
|
|
|
2016-10-07 22:06:40 +02:00
|
|
|
.new-style .button.small {
|
2016-10-01 00:50:19 +02:00
|
|
|
font-size: 0.8rem;
|
2016-09-28 02:48:24 +02:00
|
|
|
min-width: inherit;
|
|
|
|
padding: 6px 10px;
|
|
|
|
}
|
|
|
|
|
2017-03-18 10:44:00 +01:00
|
|
|
.new-style .button.small-flex {
|
|
|
|
width: auto;
|
|
|
|
min-width: inherit;
|
2016-09-28 02:48:24 +02:00
|
|
|
}
|
|
|
|
|
2016-10-07 22:06:40 +02:00
|
|
|
.new-style .button.sea-green {
|
2017-06-21 08:47:58 +02:00
|
|
|
color: hsl(156, 39%, 54%);
|
|
|
|
border-color: hsl(156, 39%, 77%);
|
2016-09-28 02:48:24 +02:00
|
|
|
}
|
|
|
|
|
2017-03-18 10:44:00 +01:00
|
|
|
.new-style .button.btn-warning {
|
2017-06-21 08:47:58 +02:00
|
|
|
color: hsl(35, 70%, 56%);
|
|
|
|
border-color: hsl(35, 98%, 84%);
|
2017-03-18 10:44:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.new-style .button.btn-danger {
|
2017-06-21 08:47:58 +02:00
|
|
|
color: hsl(357, 64%, 72%);
|
|
|
|
border-color: hsl(4, 56%, 82%);
|
2017-03-18 10:44:00 +01:00
|
|
|
}
|
|
|
|
|
2017-06-06 01:57:22 +02:00
|
|
|
/* -- button states -- */
|
|
|
|
.new-style .button:hover {
|
2017-06-21 08:47:58 +02:00
|
|
|
border-color: hsl(0, 0%, 60%);
|
2017-03-18 10:44:00 +01:00
|
|
|
}
|
|
|
|
|
2017-06-06 01:57:22 +02:00
|
|
|
.new-style .button:active {
|
2017-06-21 08:47:58 +02:00
|
|
|
border-color: hsl(0, 0%, 60%);
|
2017-06-06 01:57:22 +02:00
|
|
|
color: inherit;
|
2017-06-21 08:47:58 +02:00
|
|
|
background-color: hsl(0, 0%, 95%);
|
2017-03-18 10:44:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.new-style .button.sea-green:hover {
|
2017-06-21 08:47:58 +02:00
|
|
|
border-color: hsl(156, 30%, 55%);
|
2017-03-18 10:44:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.new-style .button.sea-green:active {
|
2017-06-21 08:47:58 +02:00
|
|
|
border-color: hsl(156, 30%, 55%);
|
|
|
|
color: hsl(156, 44%, 43%);
|
|
|
|
background-color: hsl(154, 33%, 96%);
|
2017-06-06 01:57:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.new-style .button.btn-danger:hover {
|
2017-06-21 08:47:58 +02:00
|
|
|
border-color: hsl(2, 46%, 68%);
|
2017-03-18 10:44:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.new-style .button.btn-danger:active {
|
2017-06-21 08:47:58 +02:00
|
|
|
color: hsl(357, 55%, 63%);
|
|
|
|
border-color: hsl(2, 46%, 68%);
|
|
|
|
background-color: hsl(7, 82%, 98%);
|
2017-06-06 01:57:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.new-style .button.btn-warning:hover {
|
2017-06-21 08:47:58 +02:00
|
|
|
border-color: hsl(35, 55%, 70%);
|
2017-03-18 10:44:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.new-style .button.btn-warning:active {
|
2017-06-21 08:47:58 +02:00
|
|
|
color: hsl(35, 82%, 40%);
|
|
|
|
border-color: hsl(35, 55%, 70%);
|
|
|
|
background-color: hsl(33, 48%, 96%);
|
2017-06-06 01:57:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.new-style .button[disabled="disabled"] {
|
|
|
|
cursor: not-allowed;
|
|
|
|
-moz-filter: saturate(0);
|
|
|
|
filter: saturate(0);
|
2017-06-21 08:47:58 +02:00
|
|
|
background-color: hsl(0, 0%, 93%);
|
|
|
|
color: hsl(0, 3%, 52%);
|
2016-09-28 02:48:24 +02:00
|
|
|
}
|
2016-10-28 21:36:04 +02:00
|
|
|
|
2017-05-15 19:12:04 +02:00
|
|
|
.new-style .button[disabled="disabled"]:hover {
|
2017-06-21 08:47:58 +02:00
|
|
|
background-color: hsl(0, 0%, 93%);
|
|
|
|
color: hsl(156, 39%, 54%);
|
|
|
|
border-color: hsl(156, 39%, 77%);
|
2017-05-15 19:12:04 +02:00
|
|
|
}
|
|
|
|
|
2016-10-28 21:36:04 +02:00
|
|
|
/* -- 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;
|
2017-01-30 20:55:01 +01:00
|
|
|
margin: 0px -0.5px;
|
2016-10-28 21:36:04 +02:00
|
|
|
text-align: center;
|
2017-03-24 00:19:00 +01:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
vertical-align: bottom; /* See http://stackoverflow.com/a/43266155/ */
|
2016-10-28 21:36:04 +02:00
|
|
|
padding: 3px 10px;
|
|
|
|
background-color: #fff;
|
|
|
|
cursor: pointer;
|
2017-03-24 00:19:00 +01:00
|
|
|
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;
|
2016-10-28 21:36:04 +02:00
|
|
|
}
|
|
|
|
|
2017-01-30 20:55:01 +01:00
|
|
|
.new-style .tab-switcher.large .ind-tab {
|
|
|
|
width: 130px;
|
|
|
|
}
|
|
|
|
|
2016-10-28 21:36:04 +02:00
|
|
|
.new-style .tab-switcher .ind-tab:not(.selected) {
|
2017-06-21 08:47:58 +02:00
|
|
|
border: 1px solid hsl(0, 0%, 80%);
|
2016-10-28 21:36:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.new-style .tab-switcher .ind-tab.first {
|
|
|
|
border-radius: 5px 0px 0px 5px;
|
2017-01-30 20:55:01 +01:00
|
|
|
border-right: 1px solid transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.new-style .tab-switcher .ind-tab.middle {
|
|
|
|
border-right: 1px solid transparent;
|
2016-10-28 21:36:04 +02:00
|
|
|
}
|
|
|
|
|
2017-01-30 20:55:01 +01:00
|
|
|
.new-style .tab-switcher .ind-tab.last {
|
2016-10-28 21:36:04 +02:00
|
|
|
border-radius: 0px 5px 5px 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.new-style .tab-switcher .ind-tab.selected {
|
|
|
|
position: relative;
|
2017-06-21 08:47:58 +02:00
|
|
|
background: hsl(0, 0%, 53%);
|
2016-10-28 21:36:04 +02:00
|
|
|
color: #fff;
|
2017-06-21 08:47:58 +02:00
|
|
|
border: 1px solid hsl(0, 0%, 46%);
|
2016-10-28 21:36:04 +02:00
|
|
|
z-index: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.new-style .tab-switcher .ind-tab.disabled {
|
|
|
|
pointer-events: none;
|
2017-06-21 08:47:58 +02:00
|
|
|
color: hsl(0, 0%, 80%);
|
|
|
|
border-color: hsl(0, 0%, 86%);
|
2016-10-28 21:36:04 +02:00
|
|
|
}
|
2016-10-31 23:29:58 +01:00
|
|
|
|
|
|
|
.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;
|
2017-04-21 01:10:59 +02:00
|
|
|
top: -2px;
|
2016-10-31 23:29:58 +01:00
|
|
|
|
|
|
|
padding: 1px;
|
2016-12-07 22:33:46 +01:00
|
|
|
margin: 0px 5px 0px 0px;
|
|
|
|
height: 12px;
|
|
|
|
width: 12px;
|
2016-10-31 23:29:58 +01:00
|
|
|
|
|
|
|
font-weight: 300;
|
|
|
|
line-height: 0.8;
|
|
|
|
font-size: 1.3rem;
|
|
|
|
text-align: center;
|
2017-06-21 08:47:58 +02:00
|
|
|
border: 2px solid hsl(0, 0%, 80%);
|
|
|
|
color: hsl(0, 0%, 80%);
|
2016-10-31 23:29:58 +01:00
|
|
|
|
|
|
|
border-radius: 4px;
|
2017-05-17 18:27:04 +02:00
|
|
|
-webkit-filter: grayscale(1) brightness(0.7);
|
2016-10-31 23:29:58 +01:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2016-11-01 22:32:10 +01:00
|
|
|
.new-style label.checkbox input[type=checkbox]:disabled ~ span {
|
|
|
|
opacity: 0.3;
|
|
|
|
}
|
|
|
|
|
2017-03-01 01:31:33 +01:00
|
|
|
.new-style input[type=text] {
|
|
|
|
border-radius: 5px;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
2016-10-31 23:29:58 +01:00
|
|
|
.new-style a.no-style {
|
|
|
|
color: inherit;
|
|
|
|
}
|
2017-03-13 19:10:46 +01:00
|
|
|
|
2017-07-17 19:33:58 +02:00
|
|
|
a.no-underline {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2017-03-13 19:10:46 +01:00
|
|
|
/* -- unified overlay design component -- */
|
|
|
|
.overlay {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100vw;
|
|
|
|
height: 100vh;
|
|
|
|
overflow: auto;
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
|
2017-06-21 08:47:58 +02:00
|
|
|
background-color: hsla(0, 0%, 13%, 0.8);
|
2017-03-13 19:10:46 +01:00
|
|
|
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);
|
|
|
|
}
|
2017-04-05 14:10:19 +02:00
|
|
|
|
|
|
|
.input-append {
|
|
|
|
font-size: 90%;
|
|
|
|
letter-spacing: -.3em;
|
|
|
|
}
|
|
|
|
|
2017-04-11 01:13:49 +02:00
|
|
|
.input-append input[type=text] {
|
|
|
|
border-radius: 5px;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
2017-04-05 14:10:19 +02:00
|
|
|
.clear_search_button:hover {
|
2017-06-21 08:47:58 +02:00
|
|
|
color: hsl(0, 0%, 0%);
|
2017-04-05 14:10:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
2017-06-21 08:47:58 +02:00
|
|
|
color: hsl(0, 0%, 80%);
|
2017-04-05 14:10:19 +02:00
|
|
|
text-shadow: none;
|
|
|
|
outline: none !important;
|
|
|
|
box-shadow: none;
|
|
|
|
-webkit-box-shadow: none;
|
|
|
|
-moz-box-shadow: none;
|
|
|
|
z-index: 5;
|
|
|
|
}
|