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;
|
|
|
|
}
|
|
|
|
|
2016-12-02 21:57:32 +01:00
|
|
|
.box-shadow {
|
|
|
|
box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
|
|
|
|
}
|
|
|
|
|
|
|
|
.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 {
|
2016-09-28 02:48:24 +02:00
|
|
|
padding: 8px 15px;
|
|
|
|
margin: 0;
|
|
|
|
min-width: 130px;
|
|
|
|
|
|
|
|
font-weight: 400;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
background-color: #478fca;
|
|
|
|
color: #FFF;
|
|
|
|
outline: none;
|
|
|
|
border: none;
|
|
|
|
border-radius: 2px;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* -- button states -- */
|
2016-10-07 22:06:40 +02:00
|
|
|
.new-style .button:hover {
|
2016-09-28 02:48:24 +02:00
|
|
|
-webkit-filter: brightness(1.1);
|
|
|
|
-moz-filter: brightness(1.1);
|
|
|
|
filter: brightness(1.1);
|
|
|
|
}
|
|
|
|
|
2016-10-07 22:06:40 +02:00
|
|
|
.new-style .button:active {
|
2016-09-28 02:48:24 +02:00
|
|
|
-webkit-filter: brightness(0.9);
|
|
|
|
-moz-filter: brightness(0.9);
|
|
|
|
filter: brightness(0.9);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* -- 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 {
|
2016-09-28 02:48:24 +02:00
|
|
|
background-color: #64ad89;
|
|
|
|
}
|
|
|
|
|
2016-10-07 22:06:40 +02:00
|
|
|
.new-style .button.grey {
|
2016-09-28 02:48:24 +02:00
|
|
|
background-color: #aaa;
|
|
|
|
}
|
|
|
|
|
2016-10-07 22:06:40 +02:00
|
|
|
.new-style .button.white {
|
2016-09-28 02:48:24 +02:00
|
|
|
background-color: #fff;
|
|
|
|
color: inherit;
|
|
|
|
border: 1px solid #CCC;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2016-10-07 22:06:40 +02:00
|
|
|
.new-style .button.btn-danger {
|
2016-09-28 02:48:24 +02:00
|
|
|
color: #fff;
|
|
|
|
background-color: #d9534f;
|
|
|
|
border-color: #d43f3a;
|
|
|
|
}
|
|
|
|
|
2016-10-07 22:06:40 +02:00
|
|
|
.new-style .button.btn-warning {
|
2016-09-28 02:48:24 +02:00
|
|
|
color: #fff;
|
|
|
|
background-color: #f0ad4e;
|
|
|
|
border-color: #eea236;
|
|
|
|
}
|
|
|
|
|
2016-10-07 22:06:40 +02:00
|
|
|
.new-style .button.sea-green {
|
2016-09-28 02:48:24 +02:00
|
|
|
background-color: #24cac2;
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
2016-10-07 22:06:40 +02:00
|
|
|
.new-style .button.small-flex {
|
2016-09-28 02:48:24 +02:00
|
|
|
width: auto;
|
|
|
|
min-width: inherit;
|
|
|
|
}
|
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;
|
|
|
|
margin: 0px -2px;
|
|
|
|
text-align: center;
|
|
|
|
padding: 3px 10px;
|
|
|
|
background-color: #fff;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.new-style .tab-switcher .ind-tab.second {
|
|
|
|
border-radius: 0px 5px 5px 0px;
|
|
|
|
border-left: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
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 + label {
|
|
|
|
width: calc(100% - 40px);
|
|
|
|
}
|
|
|
|
|
|
|
|
.new-style label.checkbox input[type=checkbox] ~ span {
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
position: relative;
|
2016-12-07 22:33:46 +01:00
|
|
|
top: 0px;
|
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;
|
2016-12-07 22:33:46 +01:00
|
|
|
border: 2px solid #ccc;
|
|
|
|
color: #ccc;
|
2016-10-31 23:29:58 +01:00
|
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
|
|
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-12-07 22:33:46 +01:00
|
|
|
-webkit-filter: grayscale(1);
|
2016-10-31 23:29:58 +01:00
|
|
|
}
|
|
|
|
|
2016-11-01 22:32:10 +01:00
|
|
|
.new-style label.checkbox input[type=checkbox]:disabled ~ span {
|
|
|
|
opacity: 0.3;
|
|
|
|
}
|
|
|
|
|
2016-10-31 23:29:58 +01:00
|
|
|
.new-style a.no-style {
|
|
|
|
color: inherit;
|
|
|
|
}
|