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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.content-list {
|
|
|
|
flex: 0 0 27%;
|
|
|
|
}
|
|
|
|
.current-badges {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
flex: 1 1 72%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.badges-header {
|
|
|
|
padding: 10px 0;
|
2020-08-04 10:57:10 +08:00
|
|
|
border-top: 1px solid var(--primary-low);
|
|
|
|
border-bottom: 1px solid var(--primary-low);
|
2019-01-23 18:29:51 +08:00
|
|
|
.badges-heading {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.content-list {
|
|
|
|
.admin-badge-list {
|
|
|
|
height: 70vh;
|
|
|
|
overflow-y: scroll;
|
2020-08-04 10:57:10 +08:00
|
|
|
border-right: 1px solid var(--primary-low);
|
|
|
|
border-left: 1px solid var(--primary-low);
|
|
|
|
border-bottom: 1px solid var(--primary-low);
|
2019-01-23 18:29:51 +08:00
|
|
|
.admin-badge-list-item {
|
|
|
|
&:first-child {
|
|
|
|
border-top: none;
|
|
|
|
}
|
|
|
|
&:last-child {
|
|
|
|
border-top: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.list-badge {
|
|
|
|
float: right;
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-down-1);
|
2019-01-23 18:29:51 +08:00
|
|
|
font-weight: normal;
|
|
|
|
padding: 0 6px;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--secondary);
|
|
|
|
background-color: var(--tertiary-medium);
|
2019-01-23 18:29:51 +08:00
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.user-badge {
|
|
|
|
border: none;
|
|
|
|
background-color: unset;
|
|
|
|
}
|
|
|
|
}
|
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;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-medium);
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-down-1);
|
2018-07-03 11:14:53 +08:00
|
|
|
}
|
2018-11-22 23:21:15 +08:00
|
|
|
.badge-grouping-control {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
.badge-selector {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
}
|
2020-02-05 07:41:10 +08:00
|
|
|
|
|
|
|
.icon-picker {
|
|
|
|
width: 350px;
|
|
|
|
}
|
2018-07-03 11:14:53 +08:00
|
|
|
}
|
2021-09-20 21:52:03 +08:00
|
|
|
.current-badge {
|
2018-07-03 11:14:53 +08:00
|
|
|
.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;
|
2020-08-04 10:57:10 +08:00
|
|
|
border-top: 1px solid var(--primary-low);
|
2018-07-03 11:14:53 +08:00
|
|
|
}
|
|
|
|
.buttons {
|
2020-06-13 05:15:59 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
button {
|
|
|
|
margin-right: 0.5em;
|
|
|
|
}
|
2018-07-03 11:14:53 +08:00
|
|
|
.saving {
|
2020-06-13 05:15:59 +08:00
|
|
|
order: 3;
|
2018-07-03 11:14:53 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-13 22:20:26 +08:00
|
|
|
.award-badge {
|
|
|
|
margin: 15px 0 0 15px;
|
|
|
|
float: left;
|
2021-07-15 10:53:26 +08:00
|
|
|
max-width: 70%;
|
|
|
|
|
|
|
|
.bulk-award-status-icon {
|
|
|
|
margin-right: 3px;
|
|
|
|
|
|
|
|
&.success {
|
|
|
|
color: var(--success);
|
|
|
|
}
|
|
|
|
&.failure {
|
|
|
|
color: var(--danger);
|
|
|
|
}
|
|
|
|
}
|
2020-01-13 22:20:26 +08:00
|
|
|
|
|
|
|
.badge-preview {
|
|
|
|
min-height: 110px;
|
|
|
|
max-width: 300px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--primary-very-low);
|
|
|
|
border: 1px solid var(--primary-low);
|
2020-01-13 22:20:26 +08:00
|
|
|
padding: 0 10px 0 10px;
|
|
|
|
|
|
|
|
img,
|
|
|
|
svg {
|
|
|
|
width: 60px;
|
|
|
|
height: 60px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.badge-display-name {
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
2020-01-14 01:44:22 +08:00
|
|
|
}
|
|
|
|
.badge-required {
|
|
|
|
font-weight: bold;
|
2020-01-13 22:20:26 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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 {
|
2020-08-04 10:57:10 +08:00
|
|
|
border-bottom: 1px solid var(--primary-low);
|
2019-01-23 18:29:51 +08:00
|
|
|
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;
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--primary-low);
|
2018-07-03 11:14:53 +08:00
|
|
|
}
|
|
|
|
.count-warning {
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--danger-low);
|
2019-01-23 18:29:51 +08:00
|
|
|
margin-bottom: 5px;
|
|
|
|
padding: 10px;
|
2018-07-03 11:14:53 +08:00
|
|
|
p {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
.heading {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--danger);
|
2018-07-03 11:14:53 +08:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|