2018-10-06 00:46:08 +02:00
|
|
|
/*!
|
2018-10-03 22:27:13 +02:00
|
|
|
* Playground | Wrapper
|
2018-08-22 23:57:45 +02:00
|
|
|
*
|
2018-10-03 22:27:13 +02:00
|
|
|
* @class .playground
|
2018-08-23 00:03:02 +02:00
|
|
|
* @selector {::before}
|
|
|
|
* @selector {::after}
|
|
|
|
* @state {.waiting}
|
2018-10-06 00:46:08 +02:00
|
|
|
**/
|
2018-08-22 23:57:45 +02:00
|
|
|
|
2018-10-03 22:27:13 +02:00
|
|
|
.playground {
|
2018-10-06 00:46:08 +02:00
|
|
|
top: 1rem;
|
2018-10-13 00:29:53 +02:00
|
|
|
border-top: 1px solid rgba($lbry-gray-1, 0.3);
|
2018-08-07 00:51:32 +02:00
|
|
|
position: relative;
|
2018-07-16 23:06:37 +02:00
|
|
|
|
2018-08-21 23:22:31 +02:00
|
|
|
&.waiting::before {
|
|
|
|
top: 0; right: 0;
|
|
|
|
bottom: 0; left: 0;
|
|
|
|
|
2018-10-13 00:29:53 +02:00
|
|
|
background-color: rgba($lbry-white, 0.7);
|
2018-08-21 23:22:31 +02:00
|
|
|
content: "";
|
2018-08-29 23:57:57 +02:00
|
|
|
cursor: progress;
|
2018-08-21 23:22:31 +02:00
|
|
|
position: absolute;
|
|
|
|
z-index: 5;
|
|
|
|
}
|
|
|
|
|
2018-08-07 00:51:32 +02:00
|
|
|
&::after {
|
|
|
|
@include clearfix;
|
2018-07-16 23:06:37 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-06 00:46:08 +02:00
|
|
|
/*!
|
2018-10-03 22:27:13 +02:00
|
|
|
* Playground | Navigation
|
2018-08-22 23:57:45 +02:00
|
|
|
*
|
2018-12-05 00:12:39 +01:00
|
|
|
* @class .playground-navigation
|
2018-08-22 23:57:45 +02:00
|
|
|
*
|
2018-12-05 00:12:39 +01:00
|
|
|
* @class .playground-navigation__example
|
2018-08-24 21:58:07 +02:00
|
|
|
* @selector {::before}
|
2018-08-23 00:03:02 +02:00
|
|
|
* @selector {:last-of-type}
|
|
|
|
* @state {.active}
|
|
|
|
* @state {:hover}
|
2018-10-06 00:46:08 +02:00
|
|
|
**/
|
2018-08-22 23:57:45 +02:00
|
|
|
|
2018-12-05 00:12:39 +01:00
|
|
|
.playground-navigation {
|
2018-09-27 18:11:26 +02:00
|
|
|
width: 100%;
|
2018-08-07 00:51:32 +02:00
|
|
|
list-style-type: none;
|
2018-09-27 18:11:26 +02:00
|
|
|
padding-top: 1.5rem;
|
2018-10-06 00:46:08 +02:00
|
|
|
padding-bottom: 1rem;
|
2018-09-27 18:11:26 +02:00
|
|
|
|
|
|
|
&::after {
|
|
|
|
@include clearfix;
|
|
|
|
}
|
2018-07-16 23:06:37 +02:00
|
|
|
|
2018-12-05 00:12:39 +01:00
|
|
|
&__example {
|
|
|
|
width: 33.333333%;
|
|
|
|
cursor: pointer;
|
|
|
|
float: left;
|
|
|
|
position: relative;
|
|
|
|
text-align: center;
|
2018-10-06 00:46:08 +02:00
|
|
|
|
2018-12-05 00:12:39 +01:00
|
|
|
&::before {
|
|
|
|
width: 100%; height: 2.5rem;
|
|
|
|
top: -0.6rem; left: 0;
|
2018-08-24 21:58:07 +02:00
|
|
|
|
2018-12-05 00:12:39 +01:00
|
|
|
content: "example " attr(data-example);
|
|
|
|
font-size: 0.6rem;
|
|
|
|
font-style: italic;
|
|
|
|
line-height: 1.1;
|
|
|
|
position: absolute;
|
|
|
|
text-align: center;
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
2018-08-24 21:58:07 +02:00
|
|
|
|
2018-12-05 00:12:39 +01:00
|
|
|
&:not(.active) {
|
|
|
|
&::before,
|
|
|
|
button,
|
|
|
|
span {
|
|
|
|
color: $lbry-gray-1;
|
|
|
|
}
|
|
|
|
}
|
2018-07-16 23:06:37 +02:00
|
|
|
|
2018-12-05 00:12:39 +01:00
|
|
|
&.active,
|
|
|
|
&:hover {
|
|
|
|
button {
|
|
|
|
color: $lbry-teal-3;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before,
|
|
|
|
span {
|
|
|
|
color: $lbry-black;
|
|
|
|
}
|
2018-07-16 23:06:37 +02:00
|
|
|
}
|
|
|
|
|
2018-12-05 00:12:39 +01:00
|
|
|
&.completed {
|
|
|
|
&::after {
|
|
|
|
width: 100%; height: 100%;
|
|
|
|
top: 0; left: 0;
|
|
|
|
|
|
|
|
background-color: rgba($lbry-white, 0.7);
|
|
|
|
content: "✓";
|
|
|
|
font-size: 3rem;
|
|
|
|
line-height: 0.85;
|
|
|
|
position: absolute;
|
|
|
|
z-index: 10;
|
|
|
|
}
|
2018-08-07 00:51:32 +02:00
|
|
|
}
|
2018-07-16 23:06:37 +02:00
|
|
|
|
2018-08-24 21:58:07 +02:00
|
|
|
&::before,
|
2018-12-05 00:12:39 +01:00
|
|
|
button,
|
2018-07-16 23:06:37 +02:00
|
|
|
span {
|
2018-12-05 00:12:39 +01:00
|
|
|
transition: color 0.2s;
|
2018-07-16 23:06:37 +02:00
|
|
|
}
|
2018-09-27 18:11:26 +02:00
|
|
|
|
2018-12-05 00:12:39 +01:00
|
|
|
button {
|
|
|
|
background-color: transparent;
|
|
|
|
font-size: 1.25rem;
|
|
|
|
font-weight: 600;
|
2018-09-27 18:11:26 +02:00
|
|
|
}
|
|
|
|
|
2018-12-05 00:12:39 +01:00
|
|
|
span {
|
|
|
|
display: block;
|
|
|
|
font-size: 1rem;
|
|
|
|
}
|
2018-07-16 23:06:37 +02:00
|
|
|
}
|
2018-12-05 00:12:39 +01:00
|
|
|
}
|
2018-07-16 23:06:37 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2018-10-06 00:46:08 +02:00
|
|
|
/*!
|
2018-10-03 22:27:13 +02:00
|
|
|
* Playground | Content
|
2018-08-22 23:57:45 +02:00
|
|
|
*
|
2018-12-05 00:12:39 +01:00
|
|
|
* @class .playground-content
|
2018-08-22 23:57:45 +02:00
|
|
|
*
|
2018-12-05 00:12:39 +01:00
|
|
|
* @class .playground-content__meme
|
2018-08-23 00:03:02 +02:00
|
|
|
* @selector {::after}
|
2018-08-22 23:57:45 +02:00
|
|
|
*
|
2018-12-05 00:12:39 +01:00
|
|
|
* @class .playground-content__meme__canvas
|
2018-08-22 23:57:45 +02:00
|
|
|
*
|
2018-12-05 00:12:39 +01:00
|
|
|
* @class .playground-content__meme__canvas__thumbnail
|
2018-08-23 00:03:02 +02:00
|
|
|
* @selector {:last-of-type}
|
|
|
|
* @state {.selected}
|
2018-08-22 23:57:45 +02:00
|
|
|
*
|
2018-12-05 00:12:39 +01:00
|
|
|
* @class .playground-content__meme__editor
|
2018-08-22 23:57:45 +02:00
|
|
|
*
|
2018-12-05 00:12:39 +01:00
|
|
|
* @class .playground-content__trends
|
2018-08-23 00:03:02 +02:00
|
|
|
* @selector {::after}
|
|
|
|
* @state {:empty}
|
2018-08-22 23:57:45 +02:00
|
|
|
*
|
2018-12-05 00:12:39 +01:00
|
|
|
* @class .playground-content__trend
|
|
|
|
* @class .playground-content__urlbar
|
2018-10-06 00:46:08 +02:00
|
|
|
**/
|
2018-08-22 23:57:45 +02:00
|
|
|
|
2018-12-05 00:12:39 +01:00
|
|
|
.playground-content {
|
2018-09-27 18:11:26 +02:00
|
|
|
overflow-y: visible;
|
|
|
|
padding-top: 1rem;
|
2018-10-06 00:46:08 +02:00
|
|
|
padding-bottom: 1rem;
|
2018-08-15 19:36:47 +02:00
|
|
|
|
|
|
|
.loader {
|
|
|
|
@extend .__loading;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: "Processing request";
|
|
|
|
}
|
|
|
|
}
|
2018-09-27 18:11:26 +02:00
|
|
|
|
2018-09-27 22:46:59 +02:00
|
|
|
h3 {
|
|
|
|
font-size: 1.5rem;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
|
2018-09-27 18:11:26 +02:00
|
|
|
pre {
|
|
|
|
font-size: 1rem;
|
|
|
|
}
|
2018-07-16 23:06:37 +02:00
|
|
|
}
|
2018-08-08 01:15:34 +02:00
|
|
|
|
2018-12-05 00:12:39 +01:00
|
|
|
.playground-content__meme {
|
2018-08-11 00:29:06 +02:00
|
|
|
overflow-y: auto;
|
|
|
|
position: relative;
|
|
|
|
|
2018-08-22 23:57:45 +02:00
|
|
|
&::after {
|
|
|
|
@include clearfix;
|
|
|
|
}
|
2018-08-11 00:29:06 +02:00
|
|
|
}
|
|
|
|
|
2018-12-05 00:12:39 +01:00
|
|
|
.playground-content__meme__canvas {
|
2018-10-06 00:46:08 +02:00
|
|
|
width: 48%;
|
|
|
|
|
2018-08-11 00:29:06 +02:00
|
|
|
float: left;
|
|
|
|
margin-right: 2%;
|
2018-09-27 18:11:26 +02:00
|
|
|
position: relative;
|
2018-08-11 00:29:06 +02:00
|
|
|
|
|
|
|
canvas {
|
|
|
|
width: 100%; height: 100%;
|
|
|
|
|
2018-10-13 00:29:53 +02:00
|
|
|
background-color: rgba($lbry-teal-1, 0.3);
|
2018-08-11 00:29:06 +02:00
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-05 00:12:39 +01:00
|
|
|
.playground-content__meme__canvas__thumbnail { // sass-lint:disable-line bem-depth // TODO: FIX THIS
|
2018-08-11 00:29:06 +02:00
|
|
|
width: 5rem; height: 5rem;
|
|
|
|
|
|
|
|
border-style: solid;
|
|
|
|
border-width: 2px;
|
2018-10-06 00:46:08 +02:00
|
|
|
cursor: pointer;
|
2018-08-11 00:29:06 +02:00
|
|
|
margin-bottom: 1rem;
|
|
|
|
object-fit: contain;
|
|
|
|
object-position: center;
|
|
|
|
|
|
|
|
&:not(:last-of-type) {
|
|
|
|
margin-right: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.selected) {
|
|
|
|
border-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.selected {
|
2018-10-13 00:29:53 +02:00
|
|
|
border-color: $lbry-black;
|
2018-08-11 00:29:06 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-05 00:12:39 +01:00
|
|
|
.playground-content__meme__editor {
|
2018-10-10 18:39:50 +02:00
|
|
|
width: 50%; min-height: 50vh;
|
2018-10-06 00:46:08 +02:00
|
|
|
float: right;
|
2019-02-07 22:17:30 +01:00
|
|
|
font-size: 1rem;
|
2018-08-11 00:29:06 +02:00
|
|
|
}
|
|
|
|
|
2018-12-05 00:12:39 +01:00
|
|
|
.playground-content__trends {
|
|
|
|
@extend .media-grid;
|
|
|
|
@include create-grid;
|
2018-09-27 18:11:26 +02:00
|
|
|
|
2018-12-05 00:12:39 +01:00
|
|
|
min-width: 0; min-height: 0;
|
|
|
|
grid-gap: var(--spacing-m);
|
2018-08-22 23:57:45 +02:00
|
|
|
position: relative;
|
2018-08-08 01:15:34 +02:00
|
|
|
|
2018-08-08 22:20:53 +02:00
|
|
|
&:empty {
|
2018-08-15 19:36:47 +02:00
|
|
|
@extend .__loading;
|
2018-08-08 01:15:34 +02:00
|
|
|
|
2018-08-08 22:20:53 +02:00
|
|
|
&::after {
|
2018-08-30 23:53:52 +02:00
|
|
|
content: "Fetching content from LBRY";
|
2018-08-08 22:20:53 +02:00
|
|
|
}
|
2018-08-08 01:15:34 +02:00
|
|
|
}
|
2018-08-08 22:20:53 +02:00
|
|
|
}
|
2018-08-08 01:15:34 +02:00
|
|
|
|
2018-12-05 00:12:39 +01:00
|
|
|
.playground-content__trend {
|
|
|
|
@extend .media;
|
2018-08-08 01:15:34 +02:00
|
|
|
|
2018-12-05 00:12:39 +01:00
|
|
|
.media__subtitle {
|
|
|
|
font-size: 0.8rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.media__thumb {
|
2019-03-25 16:00:45 +01:00
|
|
|
background-image: linear-gradient(135deg, var(--lbry-teal-2), var(--lbry-blue-3) 100%);
|
2018-12-05 00:12:39 +01:00
|
|
|
background-position: center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: cover;
|
2018-08-08 01:15:34 +02:00
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
}
|
|
|
|
|
2018-12-05 00:12:39 +01:00
|
|
|
.media__title {
|
|
|
|
@include line-clamp(2.4rem, 2);
|
2018-08-08 01:15:34 +02:00
|
|
|
font-size: 1rem;
|
2018-12-05 00:12:39 +01:00
|
|
|
margin-bottom: 0.25rem;
|
2018-08-08 01:15:34 +02:00
|
|
|
}
|
|
|
|
}
|
2018-08-22 23:57:45 +02:00
|
|
|
|
2018-12-05 00:12:39 +01:00
|
|
|
.playground-content__urlbar {
|
2018-10-13 00:29:53 +02:00
|
|
|
border: 1px solid $lbry-gray-1;
|
2018-08-22 23:57:45 +02:00
|
|
|
display: flex;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
|
|
|
|
button,
|
|
|
|
input,
|
|
|
|
span {
|
|
|
|
float: left;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
button,
|
|
|
|
span {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
button {
|
2018-10-06 00:46:08 +02:00
|
|
|
width: 6rem;
|
2018-08-22 23:57:45 +02:00
|
|
|
text-transform: lowercase;
|
2018-10-13 00:29:53 +02:00
|
|
|
z-index: 1;
|
2018-08-22 23:57:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
input {
|
|
|
|
width: calc(100% - 9.5rem);
|
2018-10-06 00:46:08 +02:00
|
|
|
font-size: 1rem;
|
2018-08-22 23:57:45 +02:00
|
|
|
|
|
|
|
&::placeholder {
|
2018-10-13 00:29:53 +02:00
|
|
|
color: $lbry-gray-4;
|
2018-08-22 23:57:45 +02:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
span {
|
|
|
|
@include no-user-select;
|
2018-10-06 00:46:08 +02:00
|
|
|
width: 3.5rem;
|
|
|
|
|
2018-10-13 00:29:53 +02:00
|
|
|
color: $lbry-gray-4;
|
2018-08-22 23:57:45 +02:00
|
|
|
cursor: default;
|
|
|
|
font-size: 1rem;
|
2018-10-09 20:28:58 +02:00
|
|
|
line-height: 2rem;
|
2018-08-22 23:57:45 +02:00
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
}
|
2018-09-27 18:11:26 +02:00
|
|
|
|
2018-10-06 00:46:08 +02:00
|
|
|
/*!
|
2018-10-03 22:27:13 +02:00
|
|
|
* Playground | Description
|
2018-09-27 18:11:26 +02:00
|
|
|
*
|
2018-10-03 22:27:13 +02:00
|
|
|
* @class .playground__description
|
2018-10-06 00:46:08 +02:00
|
|
|
**/
|
2018-09-27 18:11:26 +02:00
|
|
|
|
2018-10-03 22:27:13 +02:00
|
|
|
.playground__description {
|
2018-10-06 00:46:08 +02:00
|
|
|
padding: 1rem;
|
|
|
|
|
2018-09-27 18:11:26 +02:00
|
|
|
cursor: default;
|
|
|
|
font-size: 1rem;
|
|
|
|
line-height: 1.33;
|
2018-09-27 20:00:34 +02:00
|
|
|
|
|
|
|
&:not(.success) {
|
2018-10-13 00:29:53 +02:00
|
|
|
background-color: rgba($lbry-gray-1, 0.3);
|
2018-09-27 20:00:34 +02:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.success {
|
2018-10-13 00:29:53 +02:00
|
|
|
background-color: rgba($lbry-teal-1, 0.3);
|
2018-09-27 20:00:34 +02:00
|
|
|
|
|
|
|
strong {
|
|
|
|
display: block;
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
|
|
|
}
|
2018-09-28 21:09:45 +02:00
|
|
|
|
2018-10-10 18:39:50 +02:00
|
|
|
code {
|
|
|
|
padding: 2px 5px;
|
2018-10-13 00:29:53 +02:00
|
|
|
background-color: $lbry-black;
|
2018-10-10 18:39:50 +02:00
|
|
|
border-radius: 0.2rem;
|
2018-10-13 00:29:53 +02:00
|
|
|
color: $lbry-white;
|
2018-10-10 18:39:50 +02:00
|
|
|
font-size: 0.8rem;
|
|
|
|
}
|
|
|
|
|
2018-09-28 21:09:45 +02:00
|
|
|
a {
|
|
|
|
font-weight: 700;
|
|
|
|
}
|
2018-09-27 18:11:26 +02:00
|
|
|
}
|