2017-10-04 23:41:56 +02:00
|
|
|
/* Reusable, object-oriented CSS base components for the Zulip webapp
|
|
|
|
(not included in the portico CSS) */
|
|
|
|
|
|
|
|
.flex {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hide {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.light {
|
|
|
|
font-weight: 300;
|
|
|
|
}
|
|
|
|
|
|
|
|
.inline-block {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.display-block {
|
|
|
|
display: block !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.box-shadow {
|
|
|
|
box-shadow: 0px 0px 10px hsla(0, 0%, 0%, 0.1);
|
|
|
|
}
|
|
|
|
|
|
|
|
.bg-white {
|
2017-11-13 16:34:06 +01:00
|
|
|
background-color: hsl(0, 0%, 100%);
|
2017-10-04 23:41:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.clear-float {
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
|
|
|
|
.invisible {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
2019-06-03 15:48:00 +02:00
|
|
|
.new-style {
|
|
|
|
/* -- base button styling -- */
|
|
|
|
.button {
|
|
|
|
padding: 7px 14px;
|
|
|
|
margin: 0;
|
|
|
|
min-width: 130px;
|
|
|
|
|
|
|
|
font-weight: 400;
|
|
|
|
line-height: normal;
|
|
|
|
text-align: center;
|
2017-10-04 23:41:56 +02:00
|
|
|
|
2019-06-03 15:48:00 +02:00
|
|
|
background-color: hsl(0, 0%, 100%);
|
|
|
|
color: inherit;
|
2019-06-03 15:42:01 +02:00
|
|
|
outline: none;
|
2019-06-03 15:48:00 +02:00
|
|
|
border: 1px solid hsl(0, 0%, 80%);
|
|
|
|
border-radius: 2px;
|
2019-06-03 15:42:01 +02:00
|
|
|
|
2019-06-03 15:48:00 +02:00
|
|
|
box-shadow: none;
|
2019-06-03 15:42:01 +02:00
|
|
|
|
2019-06-03 15:48:00 +02:00
|
|
|
cursor: pointer;
|
|
|
|
transition: all 0.2s ease;
|
|
|
|
|
|
|
|
/* -- button style variations -- */
|
|
|
|
&.no-style {
|
|
|
|
padding: 0px;
|
|
|
|
background-color: transparent;
|
|
|
|
border: none;
|
|
|
|
min-width: 0px;
|
|
|
|
width: auto;
|
|
|
|
outline: none;
|
|
|
|
box-shadow: none !important;
|
|
|
|
}
|
2019-06-03 15:42:01 +02:00
|
|
|
|
2019-06-03 15:48:00 +02:00
|
|
|
&.rounded {
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
2019-06-03 15:42:01 +02:00
|
|
|
|
2019-06-03 15:48:00 +02:00
|
|
|
&.green {
|
|
|
|
background-color: hsl(150, 31%, 53%);
|
|
|
|
}
|
2019-06-03 15:42:01 +02:00
|
|
|
|
2019-06-03 15:48:00 +02:00
|
|
|
&.grey {
|
|
|
|
background-color: hsl(0, 0%, 67%);
|
|
|
|
}
|
2019-06-03 15:42:01 +02:00
|
|
|
|
2019-06-03 15:48:00 +02:00
|
|
|
&.standalone {
|
|
|
|
margin-top: 10px;
|
2019-06-03 15:42:01 +02:00
|
|
|
}
|
2017-10-04 23:41:56 +02:00
|
|
|
|
2019-06-03 15:48:00 +02:00
|
|
|
&.small {
|
|
|
|
font-size: 0.8rem;
|
|
|
|
min-width: inherit;
|
|
|
|
padding: 6px 10px;
|
2019-06-03 15:42:01 +02:00
|
|
|
}
|
2017-10-04 23:41:56 +02:00
|
|
|
|
2019-06-03 15:48:00 +02:00
|
|
|
&.small-flex {
|
|
|
|
width: auto;
|
|
|
|
min-width: inherit;
|
|
|
|
}
|
2017-10-04 23:41:56 +02:00
|
|
|
|
2019-06-03 15:45:27 +02:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2019-06-03 15:48:00 +02:00
|
|
|
border-color: hsl(0, 0%, 60%);
|
2019-06-03 15:42:01 +02:00
|
|
|
}
|
2019-06-03 15:20:31 +02:00
|
|
|
|
2019-06-03 15:42:01 +02:00
|
|
|
&:active {
|
2019-06-03 15:48:00 +02:00
|
|
|
border-color: hsl(0, 0%, 60%);
|
|
|
|
color: inherit;
|
|
|
|
background-color: hsl(0, 0%, 95%);
|
2019-06-03 15:42:01 +02:00
|
|
|
}
|
2019-06-03 15:20:31 +02:00
|
|
|
|
2019-06-03 15:48:00 +02:00
|
|
|
&.sea-green {
|
|
|
|
color: hsl(156, 41%, 40%);
|
|
|
|
border-color: hsl(156, 28%, 70%);
|
2019-06-03 15:20:31 +02:00
|
|
|
|
2019-06-03 15:48:00 +02:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
border-color: hsl(156, 30%, 50%);
|
|
|
|
}
|
2017-10-04 23:41:56 +02:00
|
|
|
|
2019-06-03 15:48:00 +02:00
|
|
|
&:active {
|
|
|
|
border-color: hsl(156, 30%, 40%);
|
|
|
|
color: hsl(156, 44%, 43%);
|
|
|
|
background-color: hsl(154, 33%, 96%);
|
|
|
|
}
|
2019-06-03 15:42:01 +02:00
|
|
|
}
|
|
|
|
|
2019-06-03 15:48:00 +02:00
|
|
|
&.btn-warning {
|
|
|
|
color: hsl(35, 70%, 56%);
|
|
|
|
border-color: hsl(35, 98%, 84%);
|
2019-06-03 15:42:01 +02:00
|
|
|
|
2019-06-03 15:48:00 +02:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
border-color: hsl(35, 55%, 70%);
|
|
|
|
}
|
2017-10-04 23:41:56 +02:00
|
|
|
|
2019-06-03 15:48:00 +02:00
|
|
|
&:active {
|
|
|
|
color: hsl(35, 82%, 40%);
|
|
|
|
border-color: hsl(35, 55%, 70%);
|
|
|
|
background-color: hsl(33, 48%, 96%);
|
|
|
|
}
|
|
|
|
}
|
2017-10-04 23:41:56 +02:00
|
|
|
|
2019-06-03 15:48:00 +02:00
|
|
|
&.btn-danger {
|
|
|
|
color: hsl(357, 64%, 72%);
|
|
|
|
border-color: hsl(4, 56%, 82%);
|
2017-10-04 23:41:56 +02:00
|
|
|
|
2019-06-03 15:48:00 +02:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
border-color: hsl(2, 46%, 68%);
|
|
|
|
}
|
2019-05-28 00:19:00 +02:00
|
|
|
|
2019-06-03 15:48:00 +02:00
|
|
|
&:active {
|
|
|
|
color: hsl(357, 55%, 63%);
|
|
|
|
border-color: hsl(2, 46%, 68%);
|
|
|
|
background-color: hsl(7, 82%, 98%);
|
|
|
|
}
|
2019-05-28 00:19:00 +02:00
|
|
|
}
|
|
|
|
|
2019-06-10 07:38:49 +02:00
|
|
|
&.btn-link {
|
|
|
|
color: hsl(208, 56%, 53%);
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: hsl(208, 56%, 38%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-03 15:48:00 +02:00
|
|
|
&[disabled="disabled"] {
|
|
|
|
cursor: not-allowed;
|
|
|
|
-moz-filter: saturate(0);
|
|
|
|
filter: saturate(0);
|
|
|
|
background-color: hsl(0, 0%, 93%);
|
|
|
|
color: hsl(0, 3%, 52%);
|
2019-05-28 00:19:00 +02:00
|
|
|
|
2019-06-03 15:48:00 +02:00
|
|
|
&:hover {
|
|
|
|
background-color: hsl(0, 0%, 93%);
|
|
|
|
color: hsl(156, 39%, 54%);
|
|
|
|
border-color: hsl(156, 39%, 77%);
|
|
|
|
}
|
2019-05-28 00:19:00 +02:00
|
|
|
}
|
2019-06-03 15:48:00 +02:00
|
|
|
}
|
2019-05-28 00:19:00 +02:00
|
|
|
|
2019-06-03 15:48:00 +02:00
|
|
|
/* -- tab switcher -- */
|
2019-05-28 00:19:00 +02:00
|
|
|
|
2019-06-03 15:48:00 +02:00
|
|
|
.tab-switcher {
|
|
|
|
font-weight: initial;
|
|
|
|
margin: 2px 4px;
|
|
|
|
display: inline-block;
|
2019-05-28 00:19:00 +02:00
|
|
|
|
2019-06-03 15:48:00 +02:00
|
|
|
.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: hsl(0, 0%, 100%);
|
|
|
|
cursor: pointer;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.selected) {
|
|
|
|
border: 1px solid hsl(0, 0%, 80%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.first {
|
|
|
|
border-radius: 5px 0px 0px 5px;
|
|
|
|
border-right: 1px solid transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.middle {
|
|
|
|
border-right: 1px solid transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.last {
|
|
|
|
border-radius: 0px 5px 5px 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.selected {
|
|
|
|
position: relative;
|
|
|
|
background-color: hsl(0, 0%, 53%);
|
|
|
|
color: hsl(0, 0%, 100%);
|
|
|
|
border: 1px solid hsl(0, 0%, 47%);
|
|
|
|
z-index: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.disabled {
|
|
|
|
pointer-events: none;
|
|
|
|
color: hsl(0, 0%, 80%);
|
|
|
|
border-color: hsl(0, 0%, 87%);
|
|
|
|
}
|
2019-05-28 00:19:00 +02:00
|
|
|
}
|
|
|
|
|
2019-06-03 15:48:00 +02:00
|
|
|
&.large .ind-tab {
|
|
|
|
width: 100%;
|
2019-05-28 00:19:00 +02:00
|
|
|
}
|
2019-05-28 00:15:21 +02:00
|
|
|
|
2019-06-03 16:04:02 +02:00
|
|
|
&.allow-overflow {
|
|
|
|
display: flex;
|
2019-05-28 00:10:42 +02:00
|
|
|
|
2019-06-03 16:04:02 +02:00
|
|
|
.ind-tab {
|
|
|
|
display: flex;
|
|
|
|
text-overflow: initial;
|
|
|
|
white-space: initial;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
}
|
2019-05-28 00:13:34 +02:00
|
|
|
}
|
2019-05-28 00:10:42 +02:00
|
|
|
}
|
|
|
|
|
2017-10-04 23:41:56 +02:00
|
|
|
/* -- unified overlay design component -- */
|
|
|
|
.overlay {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100vw;
|
|
|
|
height: 100vh;
|
|
|
|
overflow: auto;
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
|
|
|
|
background-color: hsla(0, 0%, 13%, 0.8);
|
|
|
|
z-index: 105;
|
|
|
|
|
|
|
|
pointer-events: none;
|
|
|
|
opacity: 0;
|
|
|
|
|
2019-03-08 00:25:51 +01:00
|
|
|
transition: opacity 0.2s ease-in;
|
2017-10-04 23:41:56 +02:00
|
|
|
overflow: hidden;
|
|
|
|
|
2019-05-28 00:05:20 +02:00
|
|
|
.overlay-content {
|
|
|
|
transform: translateY(20px);
|
|
|
|
transition: transform 0.2s ease-in;
|
|
|
|
z-index: 102;
|
|
|
|
}
|
2017-10-04 23:41:56 +02:00
|
|
|
|
2019-05-28 00:05:20 +02:00
|
|
|
&.show {
|
|
|
|
opacity: 1;
|
|
|
|
pointer-events: all;
|
|
|
|
transition-timing-function: ease-out;
|
2019-05-28 00:00:06 +02:00
|
|
|
|
2019-05-28 00:05:20 +02:00
|
|
|
.overlay-content {
|
|
|
|
transform: translateY(0px);
|
|
|
|
transition-timing-function: ease-out;
|
|
|
|
}
|
|
|
|
}
|
2017-10-04 23:41:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.input-append {
|
|
|
|
font-size: 90%;
|
|
|
|
letter-spacing: -.3em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-append input[type=text],
|
|
|
|
.new-style input[type=text] {
|
|
|
|
border-radius: 5px;
|
|
|
|
box-shadow: none;
|
2017-12-02 18:44:39 +01:00
|
|
|
margin: 0px;
|
2017-10-04 23:41:56 +02:00
|
|
|
}
|
|
|
|
|
2019-05-27 22:04:10 +02:00
|
|
|
.clear_search_button {
|
|
|
|
&:hover {
|
|
|
|
color: hsl(0, 0%, 0%);
|
|
|
|
}
|
2017-10-04 23:41:56 +02:00
|
|
|
|
2019-05-27 22:04:10 +02:00
|
|
|
&[disabled] {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
2017-10-04 23:41:56 +02:00
|
|
|
|
2019-05-27 22:04:10 +02:00
|
|
|
&,
|
|
|
|
&:focus,
|
|
|
|
&:active,
|
|
|
|
&[disabled]:hover {
|
|
|
|
position: relative;
|
|
|
|
right: 20px;
|
|
|
|
background: none;
|
|
|
|
border: none;
|
|
|
|
text-align: center;
|
|
|
|
padding-top: 8px;
|
|
|
|
padding-left: 4px;
|
|
|
|
color: hsl(0, 0%, 80%);
|
|
|
|
text-shadow: none;
|
|
|
|
outline: none !important;
|
|
|
|
box-shadow: none;
|
|
|
|
-webkit-box-shadow: none;
|
|
|
|
-moz-box-shadow: none;
|
|
|
|
z-index: 5;
|
|
|
|
|
|
|
|
.user_status_overlay & {
|
|
|
|
margin-left: -26px;
|
|
|
|
right: 0;
|
|
|
|
padding-top: 6px;
|
|
|
|
}
|
2019-04-28 22:32:38 +02:00
|
|
|
}
|
2017-10-04 23:41:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.grey-box {
|
|
|
|
margin: 0px;
|
|
|
|
padding: 5px 10px;
|
2018-10-12 07:22:46 +02:00
|
|
|
background-color: hsl(0, 0%, 98%);
|
|
|
|
border: 1px solid hsl(0, 0%, 87%);
|
2017-10-04 23:41:56 +02:00
|
|
|
border-radius: 4px;
|
|
|
|
|
|
|
|
list-style-type: none;
|
|
|
|
}
|
2018-01-13 19:38:30 +01:00
|
|
|
|
|
|
|
.white-box {
|
|
|
|
background-color: hsl(0, 0%, 100%);
|
2018-10-12 07:22:46 +02:00
|
|
|
border: 1px solid hsl(0, 0%, 87%);
|
2018-01-13 19:38:30 +01:00
|
|
|
}
|
2018-12-15 02:24:37 +01:00
|
|
|
|
|
|
|
.guest-avatar {
|
|
|
|
position: relative;
|
|
|
|
background-size: 100%;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: " ";
|
|
|
|
background-color: hsl(0, 0%, 47%);
|
|
|
|
position: absolute;
|
|
|
|
bottom: -30%;
|
|
|
|
right: -30%;
|
|
|
|
width: 50%;
|
|
|
|
height: 50%;
|
|
|
|
-webkit-transform: rotate(45deg);
|
|
|
|
-moz-transform: rotate(45deg);
|
|
|
|
transform: rotate(45deg);
|
|
|
|
}
|
|
|
|
}
|