forked from Qortal/qortal-ui
Fixed gif collection wrapper overflow issue
This commit is contained in:
parent
00d0ea23ce
commit
0b20b5a0ef
@ -1,515 +1,521 @@
|
|||||||
import { css } from 'lit';
|
import { css } from 'lit';
|
||||||
|
|
||||||
export const gifExplorerStyles = css`
|
export const gifExplorerStyles = css`
|
||||||
.gifs-container {
|
.gifs-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 10px 15px;
|
padding: 10px 15px;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
box-shadow: rgba(0, 0, 0, 0.09) 0px 3px 12px;
|
box-shadow: rgba(0, 0, 0, 0.09) 0px 3px 12px;
|
||||||
background-color: var(--chat-menu-bg);
|
background-color: var(--chat-menu-bg);
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
justify-self: flex-end;
|
justify-self: flex-end;
|
||||||
place-self: end flex-end;
|
place-self: end flex-end;
|
||||||
min-height: 400px;
|
min-height: 400px;
|
||||||
max-height: calc(95vh - 90px);
|
max-height: calc(95vh - 90px);
|
||||||
min-width: 370px;
|
min-width: 370px;
|
||||||
max-width: 370px;
|
max-width: 370px;
|
||||||
box-shadow: var(--gifs-drop-shadow);
|
box-shadow: var(--gifs-drop-shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
.gif-explorer-container {
|
.gif-explorer-container {
|
||||||
min-height: 400px;
|
min-height: 400px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 15px;
|
gap: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title-row {
|
.title-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gif-explorer-title {
|
.gif-explorer-title {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-family: Roboto, sans-serif;
|
font-family: Roboto, sans-serif;
|
||||||
letter-spacing: 0.8px;
|
letter-spacing: 0.8px;
|
||||||
font-size: 25px;
|
font-size: 25px;
|
||||||
color: var(--chat-bubble-msg-color);
|
color: var(--chat-bubble-msg-color);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.explore-collections-icon {
|
.explore-collections-icon {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
color: var(--chat-group);
|
color: var(--chat-group);
|
||||||
box-shadow: var(--gif-search-icon-bs);
|
box-shadow: var(--gif-search-icon-bs);
|
||||||
padding: 7px;
|
padding: 7px;
|
||||||
background-color: var(--gif-search-icon);
|
background-color: var(--gif-search-icon);
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.create-collections-icon {
|
.create-collections-icon {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 5px;
|
bottom: 5px;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
background-color: var(--mdc-theme-primary);
|
background-color: var(--mdc-theme-primary);
|
||||||
color: white;
|
color: white;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
|
box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
|
||||||
transition: all 0.3s ease-in-out;
|
transition: all 0.3s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.create-collections-icon:hover {
|
.create-collections-icon:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
box-shadow: 0px 4px 5px 0px hsla(0, 0%, 0%, 0.14),
|
box-shadow: 0px 4px 5px 0px hsla(0, 0%, 0%, 0.14),
|
||||||
0px 1px 10px 0px hsla(0, 0%, 0%, 0.12),
|
0px 1px 10px 0px hsla(0, 0%, 0%, 0.12),
|
||||||
0px 2px 4px -1px hsla(0, 0%, 0%, 0.2);
|
0px 2px 4px -1px hsla(0, 0%, 0%, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.collections-button-row {
|
.collections-button-row {
|
||||||
width: auto;
|
width: auto;
|
||||||
background-color: var(--gif-button-row-bg);
|
background-color: var(--gif-button-row-bg);
|
||||||
border-radius: 35px;
|
border-radius: 35px;
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.collections-button-innerrow {
|
.collections-button-innerrow {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.my-collections-button {
|
.my-collections-button {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-family: 'Maven Pro', sans-serif;
|
font-family: 'Maven Pro', sans-serif;
|
||||||
letter-spacing: 0.5px;
|
letter-spacing: 0.5px;
|
||||||
color: var(--gif-button-row-color);
|
color: var(--gif-button-row-color);
|
||||||
border-radius: 35px;
|
border-radius: 35px;
|
||||||
padding: 8px 20px;
|
padding: 8px 20px;
|
||||||
margin: 2px 0;
|
margin: 2px 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.subscribed-collections-button {
|
.subscribed-collections-button {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-family: 'Maven Pro', sans-serif;
|
font-family: 'Maven Pro', sans-serif;
|
||||||
letter-spacing: 0.5px;
|
letter-spacing: 0.5px;
|
||||||
color: var(--gif-button-row-color);
|
color: var(--gif-button-row-color);
|
||||||
border-radius: 35px;
|
border-radius: 35px;
|
||||||
padding: 8px 20px;
|
padding: 8px 20px;
|
||||||
margin: 2px 0;
|
margin: 2px 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.collections-button-active {
|
.collections-button-active {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
color: var(--mdc-theme-primary);
|
color: var(--mdc-theme-primary);
|
||||||
border-radius: 25px;
|
border-radius: 25px;
|
||||||
padding: 8px 20px;
|
padding: 8px 20px;
|
||||||
margin: 2px 0;
|
margin: 2px 0;
|
||||||
box-shadow: rgb(0 0 0 / 14%) 0px 1px 1px 0px,
|
box-shadow: rgb(0 0 0 / 14%) 0px 1px 1px 0px,
|
||||||
rgb(0 0 0 / 12%) 0px 2px 1px -1px, rgb(0 0 0 / 20%) 0px 1px 3px 0px;
|
rgb(0 0 0 / 12%) 0px 2px 1px -1px, rgb(0 0 0 / 20%) 0px 1px 3px 0px;
|
||||||
transition: all 0.3s ease-in-out;
|
transition: all 0.3s ease-in-out;
|
||||||
cursor: auto;
|
cursor: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.collection-wrapper {
|
.collection-wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow: hidden;
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.collection-gifs {
|
.collection-gifs {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(2, 1fr);
|
grid-template-columns: repeat(2, 1fr);
|
||||||
grid-gap: 10px;
|
grid-gap: 10px;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.collection-gifs::-webkit-scrollbar-track {
|
.collection-gifs::-webkit-scrollbar-track {
|
||||||
background-color: whitesmoke;
|
background-color: whitesmoke;
|
||||||
border-radius: 7px;
|
border-radius: 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.collection-gifs::-webkit-scrollbar {
|
.collection-gifs::-webkit-scrollbar {
|
||||||
width: 6px;
|
width: 6px;
|
||||||
border-radius: 7px;
|
border-radius: 7px;
|
||||||
background-color: whitesmoke;
|
background-color: whitesmoke;
|
||||||
}
|
}
|
||||||
|
|
||||||
.collection-gifs::-webkit-scrollbar-thumb {
|
.collection-gifs::-webkit-scrollbar-thumb {
|
||||||
background-color: rgb(180, 176, 176);
|
background-color: rgb(180, 176, 176);
|
||||||
border-radius: 7px;
|
border-radius: 7px;
|
||||||
transition: all 0.3s ease-in-out;
|
transition: all 0.3s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.collection-gif {
|
.collection-gif {
|
||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 150px;
|
height: 150px;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
transition: all 0.2s cubic-bezier(0, 0.55, 0.45, 1);
|
transition: all 0.2s cubic-bezier(0, 0.55, 0.45, 1);
|
||||||
box-shadow: rgb(50 50 93 / 25%) 0px 6px 12px -2px, rgb(0 0 0 / 30%) 0px 3px 7px -3px;
|
box-shadow: rgb(50 50 93 / 25%) 0px 6px 12px -2px,
|
||||||
}
|
rgb(0 0 0 / 30%) 0px 3px 7px -3px;
|
||||||
|
}
|
||||||
|
|
||||||
.collection-gif:hover {
|
.collection-gif:hover {
|
||||||
border: 1px solid var(--mdc-theme-primary );
|
border: 1px solid var(--mdc-theme-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.new-collection-row {
|
.new-collection-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.new-collection-subrow {
|
.new-collection-subrow {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 5px;
|
gap: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.new-collection-title {
|
.new-collection-title {
|
||||||
font-family: Maven Pro, sans-serif;
|
font-family: Maven Pro, sans-serif;
|
||||||
color: var(--chat-bubble-msg-color);
|
color: var(--chat-bubble-msg-color);
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
letter-spacing: 0.6px;
|
letter-spacing: 0.6px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.new-collection-subtitle {
|
.new-collection-subtitle {
|
||||||
font-family: Roboto, sans-serif;
|
font-family: Roboto, sans-serif;
|
||||||
color: var(--chat-bubble-msg-color);
|
color: var(--chat-bubble-msg-color);
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
opacity: 0.9;
|
opacity: 0.9;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
letter-spacing: 0.3px;
|
letter-spacing: 0.3px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.new-collection-container {
|
.new-collection-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin: 15px 20px;
|
margin: 15px 20px;
|
||||||
border: 3.5px dashed #b898c1;
|
border: 3.5px dashed #b898c1;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
background-color: #d7d3db2e;
|
background-color: #d7d3db2e;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.new-collection-icon {
|
.new-collection-icon {
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
color: var(--mdc-theme-primary);
|
color: var(--mdc-theme-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.gifs-added-col {
|
.gifs-added-col {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
flex: 1 1 0%;
|
flex: 1 1 0%;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
max-height: 300px;
|
max-height: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gifs-added-row {
|
.gifs-added-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 5px;
|
gap: 5px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gifs-added-row .gif-input:last-child {
|
.gifs-added-row .gif-input:last-child {
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gifs-added-row::-webkit-scrollbar-track {
|
.gifs-added-row::-webkit-scrollbar-track {
|
||||||
background-color: whitesmoke;
|
background-color: whitesmoke;
|
||||||
border-radius: 7px;
|
border-radius: 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gifs-added-row::-webkit-scrollbar {
|
.gifs-added-row::-webkit-scrollbar {
|
||||||
width: 6px;
|
width: 6px;
|
||||||
border-radius: 7px;
|
border-radius: 7px;
|
||||||
background-color: whitesmoke;
|
background-color: whitesmoke;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gifs-added-row::-webkit-scrollbar-thumb {
|
.gifs-added-row::-webkit-scrollbar-thumb {
|
||||||
background-color: rgb(180, 176, 176);
|
background-color: rgb(180, 176, 176);
|
||||||
border-radius: 7px;
|
border-radius: 7px;
|
||||||
transition: all 0.3s ease-in-out;
|
transition: all 0.3s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gif-input {
|
.gif-input {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
padding: 15px 5px;
|
padding: 15px 5px;
|
||||||
border-bottom: 1px solid #7b787888;
|
border-bottom: 1px solid #7b787888;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gif-input-img {
|
.gif-input-img {
|
||||||
width: 70px;
|
width: 70px;
|
||||||
height: 70px;
|
height: 70px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gif-input-field {
|
.gif-input-field {
|
||||||
height: 30px;
|
height: 30px;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: none;
|
border: none;
|
||||||
color: var(--chat-bubble-msg-color);
|
color: var(--chat-bubble-msg-color);
|
||||||
border-bottom: 1px solid var(--chat-bubble-msg-color);
|
border-bottom: 1px solid var(--chat-bubble-msg-color);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-family: Roboto, sans-serif;
|
font-family: Roboto, sans-serif;
|
||||||
letter-spacing: 0.3px;
|
letter-spacing: 0.3px;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
}
|
}
|
||||||
|
|
||||||
.upload-collection-row {
|
.upload-collection-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.upload-collection-name {
|
.upload-collection-name {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 8px 10px;
|
padding: 8px 10px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-family: Montserrat, sans-serif;
|
font-family: Montserrat, sans-serif;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
background-color: #ebeaea21;
|
background-color: #ebeaea21;
|
||||||
border: 1px solid var(--mdc-theme-primary);
|
border: 1px solid var(--mdc-theme-primary);
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
color: var(--chat-bubble-msg-color);
|
color: var(--chat-bubble-msg-color);
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.upload-collection-name::placeholder {
|
.upload-collection-name::placeholder {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-family: Montserrat, sans-serif;
|
font-family: Montserrat, sans-serif;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
color: var(--chat-bubble-msg-color);
|
color: var(--chat-bubble-msg-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.collection-back-button {
|
.collection-back-button {
|
||||||
display: flex;
|
display: flex;
|
||||||
font-family: Roboto, sans-serif;
|
font-family: Roboto, sans-serif;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
letter-spacing: 0.3px;
|
letter-spacing: 0.3px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
color: var(--chat-bubble-msg-color);
|
color: var(--chat-bubble-msg-color);
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
transition: box-shadow 0.2s ease-in-out;
|
transition: box-shadow 0.2s ease-in-out;
|
||||||
background-color: var(--gif-button-row-bg);
|
background-color: var(--gif-button-row-bg);
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
box-shadow: rgb(0 0 0 / 20%) 0px 0px 0px;
|
box-shadow: rgb(0 0 0 / 20%) 0px 0px 0px;
|
||||||
padding: 8px 10px;
|
padding: 8px 10px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.collection-back-button:hover {
|
.collection-back-button:hover {
|
||||||
border: none;
|
border: none;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
box-shadow: rgb(0 0 0 / 14%) 0px 4px 5px 0px, rgb(0 0 0 / 12%) 0px 1px 10px 0px, rgb(0 0 0 / 20%) 0px 2px 4px -1px;
|
box-shadow: rgb(0 0 0 / 14%) 0px 4px 5px 0px,
|
||||||
}
|
rgb(0 0 0 / 12%) 0px 1px 10px 0px, rgb(0 0 0 / 20%) 0px 2px 4px -1px;
|
||||||
|
}
|
||||||
|
|
||||||
.collection-back-button-arrow {
|
.collection-back-button-arrow {
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-collections {
|
.no-collections {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: var(--chat-bubble-msg-color);
|
color: var(--chat-bubble-msg-color);
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
font-family: Paytone One, sans-serif;
|
font-family: Paytone One, sans-serif;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.collection-card {
|
.collection-card {
|
||||||
display: flex;
|
display: flex;
|
||||||
font-family: Roboto, sans-serif;
|
font-family: Roboto, sans-serif;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
letter-spacing: 0.3px;
|
letter-spacing: 0.3px;
|
||||||
font-size: 19px;
|
font-size: 19px;
|
||||||
color: var(--chat-bubble-msg-color);
|
color: var(--chat-bubble-msg-color);
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
transition: all 0.3s ease-in-out;
|
transition: all 0.3s ease-in-out;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.collection-card:hover {
|
.collection-card:hover {
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
background-color: var(--gif-collection-hover-bg);
|
background-color: var(--gif-collection-hover-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.upload-button {
|
.upload-button {
|
||||||
font-family: Roboto, sans-serif;
|
font-family: Roboto, sans-serif;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: var(--mdc-theme-primary);
|
color: var(--mdc-theme-primary);
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
padding: 8px 10px;
|
padding: 8px 10px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
border: none;
|
border: none;
|
||||||
transition: all 0.4s ease-in-out;
|
transition: all 0.4s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.upload-back-button {
|
.upload-back-button {
|
||||||
font-family: Roboto, sans-serif;
|
font-family: Roboto, sans-serif;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: #f44336;
|
color: #f44336;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
padding: 8px 10px;
|
padding: 8px 10px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
border: none;
|
border: none;
|
||||||
transition: all 0.3s ease-in-out;
|
transition: all 0.3s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.upload-back-button:hover {
|
.upload-back-button:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-color: #f4433663;
|
background-color: #f4433663;
|
||||||
}
|
}
|
||||||
|
|
||||||
.upload-button:hover {
|
.upload-button:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-color: #03a8f475;
|
background-color: #03a8f475;
|
||||||
}
|
}
|
||||||
|
|
||||||
.lds-circle {
|
.lds-circle {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin-top: 70px;
|
margin-top: 70px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.lds-circle > div {
|
.lds-circle > div {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 80px;
|
width: 80px;
|
||||||
height: 80px;
|
height: 80px;
|
||||||
margin: 8px;
|
margin: 8px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background: var(--mdc-theme-primary);
|
background: var(--mdc-theme-primary);
|
||||||
animation: lds-circle 2.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
|
animation: lds-circle 2.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes lds-circle {
|
@keyframes lds-circle {
|
||||||
0%, 100% {
|
0%,
|
||||||
animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);
|
100% {
|
||||||
}
|
animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);
|
||||||
0% {
|
}
|
||||||
transform: rotateY(0deg);
|
0% {
|
||||||
}
|
transform: rotateY(0deg);
|
||||||
50% {
|
}
|
||||||
transform: rotateY(1800deg);
|
50% {
|
||||||
animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1);
|
transform: rotateY(1800deg);
|
||||||
}
|
animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1);
|
||||||
100% {
|
}
|
||||||
transform: rotateY(3600deg);
|
100% {
|
||||||
}
|
transform: rotateY(3600deg);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.gifs-loading-message {
|
.gifs-loading-message {
|
||||||
font-family: Montserrat, sans-serif;
|
font-family: Montserrat, sans-serif;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: var(--chat-bubble-msg-color);
|
color: var(--chat-bubble-msg-color);
|
||||||
margin: 0 0 10px 0;
|
margin: 0 0 10px 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.subscribe-button {
|
.subscribe-button {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 3px;
|
bottom: 3px;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
font-family: Raleway, sans-serif;
|
font-family: Raleway, sans-serif;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
background-color: var(--mdc-theme-primary);
|
background-color: var(--mdc-theme-primary);
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
outline: none;
|
outline: none;
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
transition: all 0.3s cubic-bezier(0.5, 1, 0.89, 1);
|
transition: all 0.3s cubic-bezier(0.5, 1, 0.89, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.subscribe-button:hover {
|
.subscribe-button:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
box-shadow: 0px 3px 4px 0px hsla(0,0%,0%,0.14), 0px 3px 3px -2px hsla(0,0%,0%,0.12), 0px 1px 8px 0px hsla(0,0%,0%,0.2);
|
box-shadow: 0px 3px 4px 0px hsla(0, 0%, 0%, 0.14),
|
||||||
}
|
0px 3px 3px -2px hsla(0, 0%, 0%, 0.12),
|
||||||
|
0px 1px 8px 0px hsla(0, 0%, 0%, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
.unsubscribe-button {
|
.unsubscribe-button {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: max-content;
|
width: max-content;
|
||||||
bottom: 3px;
|
bottom: 3px;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
font-family: Raleway, sans-serif;
|
font-family: Raleway, sans-serif;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
background-color: #f44336;
|
background-color: #f44336;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
outline: none;
|
outline: none;
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
transition: all 0.3s cubic-bezier(0.5, 1, 0.89, 1);
|
transition: all 0.3s cubic-bezier(0.5, 1, 0.89, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.unsubscribe-button:hover {
|
|
||||||
cursor: pointer;
|
|
||||||
box-shadow: 0px 3px 4px 0px hsla(0,0%,0%,0.14), 0px 3px 3px -2px hsla(0,0%,0%,0.12), 0px 1px 8px 0px hsla(0,0%,0%,0.2);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
.unsubscribe-button:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
box-shadow: 0px 3px 4px 0px hsla(0, 0%, 0%, 0.14),
|
||||||
|
0px 3px 3px -2px hsla(0, 0%, 0%, 0.12),
|
||||||
|
0px 1px 8px 0px hsla(0, 0%, 0%, 0.2);
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
@ -1,137 +1,157 @@
|
|||||||
import { css } from 'lit';
|
import { css } from 'lit';
|
||||||
|
|
||||||
export const chatGifsExploreStyles = css`
|
export const chatGifsExploreStyles = css`
|
||||||
.container-body {
|
.container-body {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.collection-wrapper {
|
.collection-wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow: hidden;
|
max-height: 500px;
|
||||||
}
|
overflow-y: auto;
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
.collection-card {
|
.collection-wrapper::-webkit-scrollbar-track {
|
||||||
display: flex;
|
background-color: whitesmoke;
|
||||||
font-family: Roboto, sans-serif;
|
border-radius: 7px;
|
||||||
font-weight: 300;
|
}
|
||||||
letter-spacing: 0.3px;
|
|
||||||
font-size: 19px;
|
|
||||||
color: var(--chat-bubble-msg-color);
|
|
||||||
flex-direction: row;
|
|
||||||
align-items: center;
|
|
||||||
transition: all 0.3s ease-in-out;
|
|
||||||
box-shadow: none;
|
|
||||||
padding: 10px;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.collection-card:hover {
|
.collection-wrapper::-webkit-scrollbar {
|
||||||
border: none;
|
width: 6px;
|
||||||
border-radius: 5px;
|
border-radius: 7px;
|
||||||
background-color: var(--gif-collection-hover-bg);
|
background-color: whitesmoke;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-collection-name {
|
.collection-wrapper::-webkit-scrollbar-thumb {
|
||||||
display: block;
|
background-color: rgb(180, 176, 176);
|
||||||
padding: 8px 10px;
|
border-radius: 7px;
|
||||||
font-size: 16px;
|
transition: all 0.3s ease-in-out;
|
||||||
font-family: Montserrat, sans-serif;
|
}
|
||||||
font-weight: 600;
|
|
||||||
background-color: #ebeaea21;
|
|
||||||
border: 1px solid var(--mdc-theme-primary);
|
|
||||||
border-radius: 5px;
|
|
||||||
color: var(--chat-bubble-msg-color);
|
|
||||||
width: 90%;
|
|
||||||
margin: 10px 0;
|
|
||||||
outline: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.search-collection-name::placeholder {
|
.collection-card {
|
||||||
font-size: 16px;
|
display: flex;
|
||||||
font-family: Montserrat, sans-serif;
|
font-family: Roboto, sans-serif;
|
||||||
font-weight: 600;
|
font-weight: 300;
|
||||||
opacity: 0.6;
|
letter-spacing: 0.3px;
|
||||||
color: var(--chat-bubble-msg-color);
|
font-size: 19px;
|
||||||
}
|
color: var(--chat-bubble-msg-color);
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
transition: all 0.3s ease-in-out;
|
||||||
|
box-shadow: none;
|
||||||
|
padding: 10px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
.search-collection-wrapper {
|
.collection-card:hover {
|
||||||
display: flex;
|
border: none;
|
||||||
justify-content: center;
|
border-radius: 5px;
|
||||||
align-items: center;
|
background-color: var(--gif-collection-hover-bg);
|
||||||
width: 100%;
|
}
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.explore-collections-icon {
|
.search-collection-name {
|
||||||
position: absolute;
|
display: block;
|
||||||
right: 20px;
|
padding: 8px 10px;
|
||||||
font-size: 13px;
|
font-size: 16px;
|
||||||
color: var(--chat-group);
|
font-family: Montserrat, sans-serif;
|
||||||
cursor: pointer;
|
font-weight: 600;
|
||||||
}
|
background-color: #ebeaea21;
|
||||||
|
border: 1px solid var(--mdc-theme-primary);
|
||||||
|
border-radius: 5px;
|
||||||
|
color: var(--chat-bubble-msg-color);
|
||||||
|
width: 90%;
|
||||||
|
margin: 10px 0;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
.clear-search-icon {
|
.search-collection-name::placeholder {
|
||||||
position: absolute;
|
font-size: 16px;
|
||||||
right: 15px;
|
font-family: Montserrat, sans-serif;
|
||||||
font-size: 16px;
|
font-weight: 600;
|
||||||
color: var(--chat-group);
|
opacity: 0.6;
|
||||||
padding: 1px;
|
color: var(--chat-bubble-msg-color);
|
||||||
border-radius: 50%;
|
}
|
||||||
background-color: transparent;
|
|
||||||
transition: all 0.3s ease-in-out;
|
|
||||||
}
|
|
||||||
|
|
||||||
.clear-search-icon:hover {
|
.search-collection-wrapper {
|
||||||
cursor: pointer;
|
display: flex;
|
||||||
background-color: #e4e3e389
|
justify-content: center;
|
||||||
}
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
.gifs-loading-message {
|
.explore-collections-icon {
|
||||||
font-family: Montserrat, sans-serif;
|
position: absolute;
|
||||||
font-size: 20px;
|
right: 20px;
|
||||||
font-weight: 600;
|
font-size: 13px;
|
||||||
color: var(--chat-bubble-msg-color);
|
color: var(--chat-group);
|
||||||
margin: 0 0 10px 0;
|
cursor: pointer;
|
||||||
text-align: center;
|
}
|
||||||
user-select: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.lds-circle {
|
.clear-search-icon {
|
||||||
display: flex;
|
position: absolute;
|
||||||
align-items: center;
|
right: 15px;
|
||||||
justify-content: center;
|
font-size: 16px;
|
||||||
}
|
color: var(--chat-group);
|
||||||
|
padding: 1px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background-color: transparent;
|
||||||
|
transition: all 0.3s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
.lds-circle > div {
|
.clear-search-icon:hover {
|
||||||
display: inline-block;
|
cursor: pointer;
|
||||||
width: 80px;
|
background-color: #e4e3e389;
|
||||||
height: 80px;
|
}
|
||||||
margin: 8px;
|
|
||||||
border-radius: 50%;
|
|
||||||
background: var(--mdc-theme-primary);
|
|
||||||
animation: lds-circle 2.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes lds-circle {
|
.gifs-loading-message {
|
||||||
0%, 100% {
|
font-family: Montserrat, sans-serif;
|
||||||
animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);
|
font-size: 20px;
|
||||||
}
|
font-weight: 600;
|
||||||
0% {
|
color: var(--chat-bubble-msg-color);
|
||||||
transform: rotateY(0deg);
|
margin: 0 0 10px 0;
|
||||||
}
|
text-align: center;
|
||||||
50% {
|
user-select: none;
|
||||||
transform: rotateY(1800deg);
|
}
|
||||||
animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1);
|
|
||||||
}
|
.lds-circle {
|
||||||
100% {
|
display: flex;
|
||||||
transform: rotateY(3600deg);
|
align-items: center;
|
||||||
}
|
justify-content: center;
|
||||||
}
|
}
|
||||||
`
|
|
||||||
|
.lds-circle > div {
|
||||||
|
display: inline-block;
|
||||||
|
width: 80px;
|
||||||
|
height: 80px;
|
||||||
|
margin: 8px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: var(--mdc-theme-primary);
|
||||||
|
animation: lds-circle 2.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes lds-circle {
|
||||||
|
0%,
|
||||||
|
100% {
|
||||||
|
animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);
|
||||||
|
}
|
||||||
|
0% {
|
||||||
|
transform: rotateY(0deg);
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
transform: rotateY(1800deg);
|
||||||
|
animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
transform: rotateY(3600deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user