2014-04-17 00:19:28 +05:30
|
|
|
/* Default badge styles. */
|
2023-09-08 12:07:04 -04:00
|
|
|
.show-badge {
|
|
|
|
background: var(--d-content-background);
|
|
|
|
}
|
|
|
|
|
2014-04-16 15:32:57 +05:30
|
|
|
.user-badge {
|
|
|
|
padding: 3px 8px;
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary);
|
|
|
|
border: 1px solid var(--primary-low);
|
2022-10-12 16:05:42 +02:00
|
|
|
line-height: var(--line-height-large);
|
2018-12-14 22:16:18 -05:00
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
2020-08-03 22:57:10 -04:00
|
|
|
background-color: var(--secondary);
|
2021-06-22 18:58:03 +03:00
|
|
|
margin: 4px 0 0;
|
2014-04-16 15:32:57 +05:30
|
|
|
|
2014-06-11 07:44:47 +05:30
|
|
|
img {
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
}
|
|
|
|
|
2019-01-23 18:29:51 +08:00
|
|
|
.badge-display-name {
|
|
|
|
margin-left: 0.25em;
|
|
|
|
}
|
|
|
|
|
2014-04-16 15:32:57 +05:30
|
|
|
&.badge-type-gold .fa {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--gold) !important;
|
2014-04-16 15:32:57 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
&.badge-type-silver .fa {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--silver) !important;
|
2014-04-16 15:32:57 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
&.badge-type-bronze .fa {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--bronze) !important;
|
2014-04-16 15:32:57 +05:30
|
|
|
}
|
2017-12-27 06:57:21 +01:00
|
|
|
|
|
|
|
&.disabled {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary-medium);
|
|
|
|
background-color: var(--primary-very-low);
|
2017-12-27 06:57:21 +01:00
|
|
|
.fa {
|
|
|
|
opacity: 0.4;
|
|
|
|
}
|
|
|
|
}
|
2014-04-16 15:32:57 +05:30
|
|
|
}
|
2014-04-16 18:42:06 +05:30
|
|
|
|
2015-11-05 20:51:05 +11:00
|
|
|
@media all and (max-width: 750px) {
|
|
|
|
.show-badge .user-badge-with-posts .badge-user a.post-link {
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
.show-badge div.badge-user {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
.badges-listing {
|
|
|
|
display: block;
|
|
|
|
|
2018-06-08 11:49:31 +02:00
|
|
|
.info,
|
|
|
|
.grant-count {
|
2015-11-05 20:51:05 +11:00
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
2018-06-08 11:49:31 +02:00
|
|
|
.row > div.info {
|
|
|
|
display: none;
|
|
|
|
}
|
2015-11-05 20:51:05 +11:00
|
|
|
|
|
|
|
.row {
|
|
|
|
display: block;
|
|
|
|
> div {
|
|
|
|
display: block;
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
|
|
|
}
|
2014-04-16 18:42:06 +05:30
|
|
|
}
|
|
|
|
}
|
2016-03-30 18:05:16 +02:00
|
|
|
|
2016-01-18 17:59:07 +11:00
|
|
|
.show-badge .badge-user-info {
|
|
|
|
.earned {
|
2022-10-12 15:31:59 +02:00
|
|
|
font-size: var(--font-up-2);
|
2016-03-24 13:05:09 -04:00
|
|
|
margin-bottom: 1em;
|
2016-01-18 17:59:07 +11:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.show-badge .single-user {
|
|
|
|
margin-left: 2%;
|
|
|
|
padding-bottom: 20px;
|
|
|
|
.load-more {
|
|
|
|
padding-top: 30px;
|
|
|
|
display: block;
|
2022-10-12 15:31:59 +02:00
|
|
|
font-size: var(--font-up-2);
|
2016-01-18 17:59:07 +11:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.show-badge .single-user .badge-user {
|
|
|
|
padding-left: 0;
|
|
|
|
|
|
|
|
text-align: left;
|
|
|
|
display: block;
|
|
|
|
margin: 20px 0;
|
|
|
|
.badge-info {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.date {
|
|
|
|
display: inline-block;
|
2022-10-12 15:31:59 +02:00
|
|
|
font-size: var(--font-up-1);
|
2016-01-18 17:59:07 +11:00
|
|
|
margin-left: 10px;
|
|
|
|
}
|
|
|
|
.post-link {
|
2022-10-12 15:31:59 +02:00
|
|
|
font-size: var(--font-up-2);
|
2016-01-18 17:59:07 +11:00
|
|
|
width: 500px;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
width: 800px;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
content: "";
|
|
|
|
clear: both;
|
|
|
|
display: table;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-02-27 17:19:18 +11:00
|
|
|
.long-description.banner {
|
|
|
|
width: 88%;
|
2016-03-23 17:27:03 +11:00
|
|
|
margin-bottom: 15px;
|
|
|
|
margin-top: 15px;
|
2015-02-27 17:19:18 +11:00
|
|
|
}
|
2016-03-25 15:32:48 -04:00
|
|
|
|
|
|
|
.badge-card {
|
2020-08-03 22:57:10 -04:00
|
|
|
background-color: var(--primary-very-low);
|
|
|
|
border: 1px solid var(--primary-low);
|
2021-07-13 21:58:51 +02:00
|
|
|
position: relative;
|
2018-06-08 11:49:31 +02:00
|
|
|
|
2016-03-25 15:32:48 -04:00
|
|
|
.check-display {
|
|
|
|
position: absolute;
|
2023-02-20 21:14:54 +07:00
|
|
|
right: 5px;
|
2016-03-25 15:32:48 -04:00
|
|
|
top: 5px;
|
|
|
|
}
|
|
|
|
|
2023-02-20 21:14:54 +07:00
|
|
|
.badge-granted {
|
2023-02-23 09:21:26 +07:00
|
|
|
display: block;
|
2023-02-20 21:14:54 +07:00
|
|
|
margin-top: 0.5em;
|
2023-02-23 09:21:26 +07:00
|
|
|
color: var(--primary-medium);
|
|
|
|
font-size: var(--font-down-1);
|
2023-02-20 21:14:54 +07:00
|
|
|
}
|
|
|
|
|
2016-03-25 15:32:48 -04:00
|
|
|
.grant-count {
|
|
|
|
font-weight: bold;
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary-medium);
|
2023-02-20 21:14:54 +07:00
|
|
|
line-height: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.grant-text {
|
|
|
|
color: var(--primary-medium);
|
|
|
|
font-size: var(--font-down-1);
|
2016-03-25 15:32:48 -04:00
|
|
|
}
|
|
|
|
|
2021-06-01 10:33:40 +02:00
|
|
|
.favorite-btn {
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
2024-07-03 17:16:21 -04:00
|
|
|
z-index: 1;
|
2021-06-01 10:33:40 +02:00
|
|
|
}
|
2024-07-03 17:16:21 -04:00
|
|
|
|
2016-03-25 15:32:48 -04:00
|
|
|
.badge-contents {
|
|
|
|
display: flex;
|
2023-02-20 21:14:54 +07:00
|
|
|
align-items: flex-start;
|
|
|
|
gap: 1rem;
|
|
|
|
padding: 1.5em 1.5em;
|
2018-06-08 11:49:31 +02:00
|
|
|
|
2018-03-02 12:42:02 -05:00
|
|
|
.badge-link {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary);
|
2024-07-03 17:16:21 -04:00
|
|
|
display: inline-block;
|
|
|
|
line-height: var(--line-height-medium);
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.badge-summary:has(a) {
|
|
|
|
// for summary links to be reachable
|
|
|
|
// they must be positioned above .badge-link:after
|
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
2018-03-02 12:42:02 -05:00
|
|
|
}
|
2016-03-25 15:32:48 -04:00
|
|
|
|
|
|
|
.badge-icon {
|
2024-07-03 17:16:21 -04:00
|
|
|
--badge-icon-size: 3.5em;
|
2016-03-25 15:32:48 -04:00
|
|
|
display: flex;
|
2021-07-13 21:58:51 +02:00
|
|
|
flex-shrink: 0;
|
2016-03-25 15:32:48 -04:00
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2021-07-13 21:58:51 +02:00
|
|
|
|
|
|
|
svg {
|
2024-07-03 17:16:21 -04:00
|
|
|
font-size: var(--badge-icon-size);
|
2019-07-05 12:37:18 -04:00
|
|
|
}
|
2021-07-13 21:58:51 +02:00
|
|
|
|
2016-03-28 11:39:55 -07:00
|
|
|
img {
|
2019-07-05 12:37:18 -04:00
|
|
|
width: 100%;
|
2024-07-03 17:16:21 -04:00
|
|
|
max-width: var(--badge-icon-size);
|
|
|
|
max-height: var(--badge-icon-size);
|
2016-03-28 11:39:55 -07:00
|
|
|
}
|
|
|
|
|
2016-03-25 15:32:48 -04:00
|
|
|
&.badge-type-gold .fa {
|
2016-04-05 00:05:38 -07:00
|
|
|
color: rgb(231, 195, 0) !important;
|
2016-03-25 15:32:48 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&.badge-type-silver .fa {
|
2016-03-29 15:46:41 +02:00
|
|
|
color: #c0c0c0 !important;
|
2016-03-25 15:32:48 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&.badge-type-bronze .fa {
|
2016-03-29 15:46:41 +02:00
|
|
|
color: #cd7f32 !important;
|
2016-03-25 15:32:48 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.badge-info {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary);
|
2016-03-25 15:32:48 -04:00
|
|
|
|
|
|
|
h3 {
|
2018-03-02 12:42:02 -05:00
|
|
|
margin-bottom: 0.25em;
|
2022-10-12 15:31:59 +02:00
|
|
|
font-size: var(--font-up-1);
|
2018-03-02 12:42:02 -05:00
|
|
|
@media screen and (min-width: 900px) {
|
2022-10-12 15:31:59 +02:00
|
|
|
font-size: var(--font-up-2);
|
2018-03-02 12:42:02 -05:00
|
|
|
}
|
2016-03-25 15:32:48 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-03 17:16:21 -04:00
|
|
|
&.--badge-large {
|
2016-03-30 18:05:16 +02:00
|
|
|
width: 100%;
|
2018-03-02 16:15:31 -05:00
|
|
|
align-self: flex-start;
|
2021-07-13 21:58:51 +02:00
|
|
|
|
2018-03-02 12:42:02 -05:00
|
|
|
@media screen and (min-width: 767px) {
|
2022-06-28 22:49:01 -04:00
|
|
|
max-width: calc(var(--d-max-width) / 2);
|
2018-03-02 12:42:02 -05:00
|
|
|
}
|
2021-07-13 21:58:51 +02:00
|
|
|
|
2018-03-02 12:42:02 -05:00
|
|
|
.badge-contents {
|
2019-04-03 12:35:27 +03:00
|
|
|
h3 {
|
2022-10-12 15:31:59 +02:00
|
|
|
font-size: var(--font-up-3);
|
2018-06-08 11:49:31 +02:00
|
|
|
}
|
2018-03-02 12:42:02 -05:00
|
|
|
}
|
2016-03-30 18:05:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-02 12:42:02 -05:00
|
|
|
.badges-granted {
|
2023-10-30 10:55:01 -04:00
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(auto-fit, minmax(18em, 1fr));
|
|
|
|
gap: 3em 2em;
|
2016-03-25 15:32:48 -04:00
|
|
|
}
|
|
|
|
|
2023-09-08 12:07:04 -04:00
|
|
|
.container.badges {
|
|
|
|
background: var(--d-content-background);
|
|
|
|
}
|
|
|
|
|
2016-03-25 15:32:48 -04:00
|
|
|
.badge-groups {
|
|
|
|
margin: 20px 0;
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary-med-or-secondary-med);
|
2016-03-25 15:32:48 -04:00
|
|
|
h3 {
|
2018-06-08 11:49:31 +02:00
|
|
|
margin-bottom: 1em;
|
2016-03-25 15:32:48 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-02 16:15:31 -05:00
|
|
|
.badge-title {
|
|
|
|
.user-content {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.badge-group-list {
|
2021-07-13 21:58:51 +02:00
|
|
|
display: grid;
|
2023-02-20 21:14:54 +07:00
|
|
|
grid-template-columns: repeat(auto-fit, minmax(18em, 1fr));
|
2021-07-13 21:58:51 +02:00
|
|
|
grid-gap: 1em;
|
2021-07-27 00:15:09 -04:00
|
|
|
width: 100%;
|
2016-03-25 15:32:48 -04:00
|
|
|
margin-bottom: 1.5em;
|
2021-07-13 21:58:51 +02:00
|
|
|
|
2018-03-02 12:42:02 -05:00
|
|
|
.title {
|
2022-10-12 15:31:59 +02:00
|
|
|
font-size: var(--font-up-1);
|
2018-03-02 12:42:02 -05:00
|
|
|
}
|
2016-03-25 15:32:48 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.show-badge-details {
|
|
|
|
display: flex;
|
2018-03-02 13:21:04 -05:00
|
|
|
flex-wrap: wrap;
|
2016-03-25 15:32:48 -04:00
|
|
|
flex-direction: row;
|
|
|
|
margin-bottom: 2em;
|
|
|
|
margin-top: 1em;
|
2024-02-29 13:55:13 -05:00
|
|
|
gap: 1em;
|
2016-03-25 15:32:48 -04:00
|
|
|
|
|
|
|
.badge-grant-info {
|
2017-08-17 21:32:37 +01:00
|
|
|
&.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
2016-03-25 15:32:48 -04:00
|
|
|
}
|
2018-03-02 16:15:31 -05:00
|
|
|
|
2016-03-25 15:32:48 -04:00
|
|
|
.grant-info-item {
|
|
|
|
margin-bottom: 1em;
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary-med-or-secondary-med);
|
2018-03-02 14:43:54 -05:00
|
|
|
&:first-of-type {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
2016-03-25 15:32:48 -04:00
|
|
|
}
|
2017-08-17 21:32:37 +01:00
|
|
|
|
2018-03-02 16:15:31 -05:00
|
|
|
.badge-set-title {
|
2024-02-29 13:55:13 -05:00
|
|
|
flex: 0 1 auto;
|
2018-03-02 16:15:31 -05:00
|
|
|
padding: 1.5em;
|
2020-08-03 22:57:10 -04:00
|
|
|
border: 1px solid var(--primary-low);
|
2018-06-08 11:49:31 +02:00
|
|
|
|
2024-02-29 13:55:13 -05:00
|
|
|
.badge-title {
|
|
|
|
height: 100%;
|
|
|
|
&__saved {
|
|
|
|
color: var(--success);
|
2018-03-02 16:15:31 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-02-29 13:55:13 -05:00
|
|
|
.control-group:last-child {
|
|
|
|
margin: auto 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.form-horizontal {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: 100%;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2017-08-17 21:32:37 +01:00
|
|
|
|
2024-02-29 13:55:13 -05:00
|
|
|
.controls {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
align-items: baseline;
|
|
|
|
gap: 0.5em;
|
|
|
|
margin: 0;
|
|
|
|
button:last-of-type {
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.combobox {
|
|
|
|
width: 100%;
|
|
|
|
}
|
2017-08-17 21:32:37 +01:00
|
|
|
}
|
2016-03-25 15:32:48 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.check-display {
|
2024-07-03 17:16:21 -04:00
|
|
|
display: flex;
|
|
|
|
width: 1.5em;
|
|
|
|
height: 1.5em;
|
|
|
|
border-radius: 100%;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
.d-icon {
|
|
|
|
font-size: var(--font-down-2);
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--secondary);
|
2016-03-25 15:32:48 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.check-display.status-checked {
|
2020-08-03 22:57:10 -04:00
|
|
|
background-color: var(--success);
|
2016-03-25 15:32:48 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.check-display.status-unchecked {
|
2020-08-03 22:57:10 -04:00
|
|
|
background-color: var(--danger);
|
2016-03-25 15:32:48 -04:00
|
|
|
}
|
|
|
|
|
2016-03-29 16:21:39 +11:00
|
|
|
.hyperlink {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|