2017-04-10 14:32:40 +02:00
|
|
|
.card {
|
2018-12-19 06:44:53 +01:00
|
|
|
background-color: $lbry-white;
|
2019-06-17 22:32:38 +02:00
|
|
|
margin-bottom: var(--spacing-large);
|
2018-12-19 06:44:53 +01:00
|
|
|
position: relative;
|
2019-05-07 04:35:04 +02:00
|
|
|
border-radius: var(--card-radius);
|
2019-05-08 03:29:30 +02:00
|
|
|
box-shadow: var(--card-box-shadow) $lbry-gray-1;
|
2019-06-11 20:10:58 +02:00
|
|
|
overflow: hidden;
|
2019-06-17 22:32:38 +02:00
|
|
|
font-size: 1.25rem;
|
2018-10-09 17:01:54 +02:00
|
|
|
|
2019-06-29 00:21:21 +02:00
|
|
|
[data-mode='dark'] & {
|
|
|
|
background-color: #353434;
|
2019-05-08 03:29:30 +02:00
|
|
|
box-shadow: var(--card-box-shadow) darken($lbry-gray-1, 80%);
|
2018-10-09 17:01:54 +02:00
|
|
|
}
|
2018-06-11 00:13:11 +02:00
|
|
|
}
|
|
|
|
|
2018-10-17 19:14:24 +02:00
|
|
|
.card--disabled {
|
|
|
|
opacity: 0.3;
|
|
|
|
pointer-events: none;
|
2017-12-01 04:51:55 +01:00
|
|
|
}
|
|
|
|
|
2018-10-17 19:14:24 +02:00
|
|
|
.card--link {
|
|
|
|
cursor: pointer;
|
2018-10-09 17:01:54 +02:00
|
|
|
}
|
2018-03-26 23:32:43 +02:00
|
|
|
|
2018-10-17 19:14:24 +02:00
|
|
|
.card--section {
|
2019-06-11 20:10:58 +02:00
|
|
|
position: relative;
|
|
|
|
padding: var(--spacing-large);
|
2018-10-17 19:14:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.card--space-between {
|
2018-12-19 06:44:53 +01:00
|
|
|
@include between;
|
2018-10-17 19:14:24 +02:00
|
|
|
}
|
|
|
|
|
2018-03-26 23:32:43 +02:00
|
|
|
.card--wallet-balance {
|
2018-12-19 06:44:53 +01:00
|
|
|
background-repeat: no-repeat;
|
2018-03-26 23:32:43 +02:00
|
|
|
background-size: cover;
|
2018-10-17 00:29:55 +02:00
|
|
|
color: $lbry-white;
|
2018-03-26 23:32:43 +02:00
|
|
|
justify-content: space-between;
|
2018-01-09 02:15:44 +01:00
|
|
|
}
|
2018-03-26 23:32:43 +02:00
|
|
|
|
2019-06-17 22:32:38 +02:00
|
|
|
.card--reward-total {
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: cover;
|
|
|
|
// justify-content: space-between;
|
|
|
|
color: $lbry-white;
|
|
|
|
}
|
|
|
|
|
2019-06-11 20:10:58 +02:00
|
|
|
.card--modal {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
// C A R D
|
|
|
|
// A C T I O N S
|
2018-10-14 19:41:19 +02:00
|
|
|
|
2018-10-17 19:14:24 +02:00
|
|
|
.card__actions {
|
2019-05-01 07:16:12 +02:00
|
|
|
display: flex;
|
2019-06-17 22:32:38 +02:00
|
|
|
align-items: center;
|
2019-01-11 17:34:36 +01:00
|
|
|
font-size: 1.15rem;
|
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
> *:not(:last-child) {
|
2019-06-11 20:10:58 +02:00
|
|
|
margin-right: var(--spacing-medium);
|
2018-10-09 17:01:54 +02:00
|
|
|
}
|
2018-01-09 02:15:44 +01:00
|
|
|
}
|
2018-03-26 23:32:43 +02:00
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
.card__actions--between {
|
|
|
|
@include between;
|
2018-10-17 19:14:24 +02:00
|
|
|
}
|
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
.card__actions--bottom-corner {
|
|
|
|
right: 2rem;
|
|
|
|
bottom: 2rem;
|
|
|
|
position: absolute;
|
2018-01-09 02:15:44 +01:00
|
|
|
}
|
2018-03-26 23:32:43 +02:00
|
|
|
|
2018-10-17 19:14:24 +02:00
|
|
|
.card__actions--center {
|
2019-01-08 00:29:40 +01:00
|
|
|
display: flex;
|
2018-03-26 23:32:43 +02:00
|
|
|
align-items: center;
|
2018-10-17 19:14:24 +02:00
|
|
|
justify-content: center;
|
2018-01-09 02:15:44 +01:00
|
|
|
}
|
2018-03-26 23:32:43 +02:00
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
.card__actions--top-corner {
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
position: absolute;
|
2018-10-17 19:14:24 +02:00
|
|
|
}
|
2018-03-26 23:32:43 +02:00
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
.card__actions--top-space {
|
2019-06-11 20:10:58 +02:00
|
|
|
padding-top: var(--spacing-small);
|
2018-07-25 02:50:04 +02:00
|
|
|
}
|
|
|
|
|
2019-06-17 22:32:38 +02:00
|
|
|
.card__actions--table {
|
|
|
|
padding: var(--spacing-medium);
|
|
|
|
}
|
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
// C A R D
|
|
|
|
// C O N T E N T
|
2018-05-11 01:41:17 +02:00
|
|
|
|
2018-10-17 19:14:24 +02:00
|
|
|
.card__content {
|
2019-06-27 01:59:27 +02:00
|
|
|
&:not(:last-of-type) {
|
|
|
|
margin-bottom: var(--spacing-medium);
|
|
|
|
}
|
|
|
|
|
2019-01-17 07:37:06 +01:00
|
|
|
p:not(:last-child) {
|
2019-06-11 20:10:58 +02:00
|
|
|
margin-bottom: var(--spacing-medium);
|
2018-10-10 07:22:06 +02:00
|
|
|
}
|
2019-06-11 20:10:58 +02:00
|
|
|
}
|
2019-04-03 06:17:00 +02:00
|
|
|
|
2019-06-11 20:10:58 +02:00
|
|
|
.card__content--large {
|
2019-06-17 22:32:38 +02:00
|
|
|
font-size: 3rem;
|
|
|
|
line-height: 1.5;
|
|
|
|
font-weight: 700;
|
2018-08-03 20:28:11 +02:00
|
|
|
}
|
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
// C A R D
|
|
|
|
// H E A D E R
|
2018-10-17 19:14:24 +02:00
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
.card__header {
|
|
|
|
position: relative;
|
2018-10-17 19:14:24 +02:00
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
&:not(.card__header--flat) {
|
2019-06-11 20:10:58 +02:00
|
|
|
margin-bottom: var(--spacing-medium);
|
2018-10-17 19:14:24 +02:00
|
|
|
}
|
2018-01-09 02:15:44 +01:00
|
|
|
}
|
2017-11-22 21:28:56 +01:00
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
// C A R D
|
|
|
|
// L I S T
|
2018-03-26 23:32:43 +02:00
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
.card__list {
|
2019-01-08 20:16:07 +01:00
|
|
|
column-count: 2;
|
2019-06-11 20:10:58 +02:00
|
|
|
column-gap: var(--spacing-medium);
|
2019-06-17 22:32:38 +02:00
|
|
|
display: block;
|
2019-01-08 20:16:07 +01:00
|
|
|
|
|
|
|
.card {
|
|
|
|
display: inline-block;
|
2019-06-11 20:10:58 +02:00
|
|
|
margin: 0 0 var(--spacing-medium);
|
2019-01-08 20:16:07 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
// C A R D
|
|
|
|
// M E S S A G E
|
2018-03-26 23:32:43 +02:00
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
.card__message {
|
|
|
|
border-left: 0.5rem solid;
|
2019-06-11 20:10:58 +02:00
|
|
|
padding: var(--spacing-medium) var(--spacing-medium) var(--spacing-medium) var(--spacing-large);
|
2018-10-17 19:14:24 +02:00
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
&:not(&--error):not(&--failure):not(&--success) {
|
|
|
|
background-color: rgba($lbry-teal-1, 0.1);
|
|
|
|
border-color: $lbry-teal-3;
|
2018-10-17 19:14:24 +02:00
|
|
|
}
|
2018-07-17 19:43:43 +02:00
|
|
|
}
|
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
.card__message--error {
|
|
|
|
background-color: rgba($lbry-orange-1, 0.1);
|
|
|
|
border-color: $lbry-orange-3;
|
2018-06-13 23:07:19 +02:00
|
|
|
}
|
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
.card__message--failure {
|
|
|
|
background-color: rgba($lbry-red-1, 0.1);
|
|
|
|
border-color: $lbry-red-3;
|
2017-04-12 04:01:45 +02:00
|
|
|
}
|
2018-03-26 23:32:43 +02:00
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
.card__message--success {
|
|
|
|
background-color: rgba($lbry-green-1, 0.1);
|
|
|
|
border-color: $lbry-green-3;
|
2018-03-26 23:32:43 +02:00
|
|
|
}
|
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
// C A R D
|
|
|
|
// S U B T I T L E
|
2018-03-26 23:32:43 +02:00
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
.card__subtitle {
|
2019-05-08 03:29:30 +02:00
|
|
|
@extend .help;
|
2019-06-11 20:10:58 +02:00
|
|
|
color: darken($lbry-gray-5, 25%);
|
2019-06-17 22:32:38 +02:00
|
|
|
background-color: lighten($lbry-gray-1, 5%);
|
2019-01-22 19:29:45 +01:00
|
|
|
font-size: 1.15rem;
|
2019-06-11 20:10:58 +02:00
|
|
|
margin-bottom: var(--spacing-small);
|
|
|
|
flex: 1;
|
2018-07-25 02:50:04 +02:00
|
|
|
|
2019-01-22 19:29:45 +01:00
|
|
|
p {
|
2019-06-11 20:10:58 +02:00
|
|
|
margin-bottom: var(--spacing-small);
|
2019-01-22 19:29:45 +01:00
|
|
|
}
|
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
.badge {
|
|
|
|
bottom: -0.12rem;
|
|
|
|
position: relative;
|
2019-06-11 20:10:58 +02:00
|
|
|
margin-left: 0;
|
2018-07-25 02:50:04 +02:00
|
|
|
}
|
2019-05-08 03:29:30 +02:00
|
|
|
|
|
|
|
[data-mode='dark'] & {
|
2019-06-17 22:32:38 +02:00
|
|
|
background-color: darken($lbry-gray-5, 20%);
|
2019-05-08 03:29:30 +02:00
|
|
|
}
|
2017-07-29 20:12:13 +02:00
|
|
|
}
|
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
// C A R D
|
|
|
|
// T I T L E
|
2018-06-18 07:53:26 +02:00
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
.card__title {
|
|
|
|
font-size: 2rem;
|
|
|
|
font-weight: 600;
|
2019-06-11 20:10:58 +02:00
|
|
|
margin-bottom: var(--spacing-medium);
|
2019-02-21 23:45:17 +01:00
|
|
|
|
2019-04-03 06:17:00 +02:00
|
|
|
+ .card__content {
|
2019-06-11 20:10:58 +02:00
|
|
|
margin-top: var(--spacing-medium);
|
2019-04-03 06:17:00 +02:00
|
|
|
}
|
2018-01-09 02:15:44 +01:00
|
|
|
}
|
2018-01-04 06:05:20 +01:00
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
.card__title--flex {
|
2018-10-17 19:14:24 +02:00
|
|
|
display: flex;
|
2019-01-08 18:38:58 +01:00
|
|
|
align-items: center;
|
|
|
|
|
2019-05-01 07:16:12 +02:00
|
|
|
& > *:not(:last-child) {
|
2019-06-11 20:10:58 +02:00
|
|
|
margin-right: var(--spacing-medium);
|
2019-01-08 18:38:58 +01:00
|
|
|
}
|
2018-07-25 02:50:04 +02:00
|
|
|
}
|
2019-01-08 19:03:49 +01:00
|
|
|
|
|
|
|
.card__title--flex-between {
|
|
|
|
display: flex;
|
|
|
|
@include between;
|
|
|
|
align-items: center;
|
|
|
|
}
|