2018-07-03 11:14:53 +08:00
|
|
|
// Styles for admin/badges
|
2019-01-23 18:29:51 +08:00
|
|
|
.admin-badges {
|
|
|
|
// flex page layout
|
|
|
|
.badges {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
.badges-header {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
flex: 1 0 100%;
|
|
|
|
.create-new-badge {
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.badge-intro {
|
|
|
|
display: inline-flex;
|
|
|
|
flex: 0 1 50%;
|
|
|
|
}
|
|
|
|
.content-list {
|
|
|
|
flex: 0 0 27%;
|
|
|
|
}
|
|
|
|
.current-badges {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
flex: 1 1 72%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.badges-header {
|
|
|
|
padding: 10px 0;
|
|
|
|
border-top: 1px solid $primary-low;
|
|
|
|
border-bottom: 1px solid $primary-low;
|
|
|
|
.badges-heading {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.content-list {
|
|
|
|
.admin-badge-list {
|
|
|
|
height: 70vh;
|
|
|
|
overflow-y: scroll;
|
|
|
|
border-right: 1px solid $primary-low;
|
|
|
|
border-left: 1px solid $primary-low;
|
|
|
|
border-bottom: 1px solid $primary-low;
|
|
|
|
.admin-badge-list-item {
|
|
|
|
&:first-child {
|
|
|
|
border-top: none;
|
|
|
|
}
|
|
|
|
&:last-child {
|
|
|
|
border-top: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.list-badge {
|
|
|
|
float: right;
|
|
|
|
font-size: $font-down-1;
|
|
|
|
font-weight: normal;
|
|
|
|
padding: 0 6px;
|
|
|
|
color: $secondary;
|
|
|
|
background-color: $tertiary-medium;
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.user-badge {
|
|
|
|
border: none;
|
|
|
|
background-color: unset;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.badge-intro {
|
|
|
|
margin-top: 10%;
|
|
|
|
.badge-intro-emoji {
|
|
|
|
// it's an emoji so we want fixed deminsions
|
|
|
|
height: 55px;
|
|
|
|
width: 55px;
|
|
|
|
margin-top: 5px;
|
|
|
|
margin-right: 5px;
|
|
|
|
flex: 0 0 auto; // IE flex fix
|
|
|
|
}
|
|
|
|
.external-link {
|
|
|
|
display: block;
|
|
|
|
margin-bottom: 5px;
|
2018-07-03 11:14:53 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.current-badge {
|
|
|
|
margin: 20px;
|
|
|
|
p.help {
|
|
|
|
margin: 0;
|
2019-01-23 18:29:51 +08:00
|
|
|
margin-top: 5px;
|
|
|
|
color: $primary-medium;
|
2018-07-03 11:14:53 +08:00
|
|
|
font-size: $font-down-1;
|
|
|
|
}
|
2018-11-22 23:21:15 +08:00
|
|
|
.badge-grouping-control {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
.badge-selector {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
}
|
2018-07-03 11:14:53 +08:00
|
|
|
}
|
|
|
|
.form-horizontal {
|
|
|
|
.ace-wrapper {
|
|
|
|
position: relative;
|
|
|
|
height: 270px;
|
|
|
|
.ace_editor {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
&[data-disabled="true"] {
|
|
|
|
cursor: not-allowed;
|
|
|
|
opacity: 0.5;
|
|
|
|
.ace_editor {
|
|
|
|
pointer-events: none;
|
|
|
|
.ace_cursor {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
textarea {
|
|
|
|
height: 200px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.current-badge-actions {
|
|
|
|
margin: 10px;
|
|
|
|
padding: 10px;
|
2019-01-23 18:29:51 +08:00
|
|
|
border-top: 1px solid $primary-low;
|
2018-07-03 11:14:53 +08:00
|
|
|
}
|
|
|
|
.buttons {
|
|
|
|
float: left;
|
|
|
|
width: 200px;
|
|
|
|
.saving {
|
|
|
|
padding: 5px 0 0 0;
|
|
|
|
margin-left: 10px;
|
|
|
|
width: 80px;
|
|
|
|
color: $primary;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-23 18:29:51 +08:00
|
|
|
// badge-grouping modal
|
|
|
|
.badge-groupings-modal {
|
|
|
|
.badge-groupings {
|
|
|
|
margin-bottom: 10px;
|
2018-07-03 11:14:53 +08:00
|
|
|
}
|
2019-01-23 18:29:51 +08:00
|
|
|
.badge-groupings-list {
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
.badge-grouping-item {
|
|
|
|
border-bottom: 1px solid $primary-low;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
padding: 5px 0;
|
|
|
|
}
|
|
|
|
.badge-grouping {
|
|
|
|
.badge-grouping-name-input {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
2018-07-03 11:14:53 +08:00
|
|
|
}
|
2019-01-23 18:29:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// badge preview modal
|
|
|
|
.badge-query-preview {
|
|
|
|
.badge-errors,
|
2018-07-03 11:14:53 +08:00
|
|
|
.badge-query-plan {
|
2019-01-23 18:29:51 +08:00
|
|
|
padding: 5px;
|
2018-07-03 11:14:53 +08:00
|
|
|
background-color: $primary-low;
|
|
|
|
}
|
|
|
|
.count-warning {
|
2019-01-23 18:29:51 +08:00
|
|
|
background-color: $danger-low;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
padding: 10px;
|
2018-07-03 11:14:53 +08:00
|
|
|
p {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
.heading {
|
|
|
|
color: $danger;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-23 18:29:51 +08:00
|
|
|
// mobile specific styles - mostly commmon style overrides
|
|
|
|
// TODO move to mobile sheet once mobile view has a seprate template.
|
|
|
|
.mobile-view {
|
|
|
|
.admin-badges {
|
|
|
|
.badges {
|
|
|
|
margin: 0 0.25em;
|
2018-11-23 00:09:45 +08:00
|
|
|
}
|
2019-01-23 18:29:51 +08:00
|
|
|
.content-list {
|
|
|
|
flex: 0 0 100%;
|
|
|
|
.admin-badge-list {
|
|
|
|
max-height: 40vh;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.badge-intro {
|
|
|
|
flex: 0 1 75%;
|
|
|
|
}
|
|
|
|
.current-badge {
|
|
|
|
margin: 20px 0;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
input[type="text"] {
|
|
|
|
width: 100%;
|
2018-07-03 11:14:53 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|