mirror of
https://github.com/mue/mue.git
synced 2026-07-26 02:01:19 +02:00
fix: fix markeplace item grid
This commit is contained in:
@@ -6,17 +6,16 @@
|
|||||||
@import 'scss/variables';
|
@import 'scss/variables';
|
||||||
|
|
||||||
.items {
|
.items {
|
||||||
display: flex;
|
display: grid;
|
||||||
flex-direction: row;
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||||
flex-wrap: wrap;
|
grid-gap: 1rem;
|
||||||
gap: 15px;
|
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
position: relative;
|
position: relative;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
height: 70px;
|
height: 70px;
|
||||||
width: 260px;
|
width: auto;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -181,24 +180,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 1920px) {
|
|
||||||
.items {
|
|
||||||
grid-template-columns: repeat(3, 1fr);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 1680px) and (min-width: 1500px) {
|
|
||||||
.items {
|
|
||||||
grid-template-columns: repeat(2, 1fr);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 1440px) {
|
|
||||||
.items {
|
|
||||||
grid-template-columns: repeat(1, 1fr);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.emptyItems {
|
.emptyItems {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -246,11 +227,6 @@ p.author {
|
|||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-height: 1080px) {
|
|
||||||
.dropdownsortAddons {
|
|
||||||
margin-top: 40px !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.returnButton {
|
.returnButton {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
@import '../main/scss/index.scss';
|
@import '../main/scss/index.scss';
|
||||||
@import 'scss/variables';
|
@import 'scss/variables';
|
||||||
|
|
||||||
|
.welcomeContent {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.welcomemodal {
|
.welcomemodal {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
@@ -8,14 +12,15 @@
|
|||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
height: 80%;
|
height: 90vh;
|
||||||
width: 60%;
|
width: clamp(60vw, 1400px, 90vw);
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
overflow-x: hidden !important;
|
||||||
|
|
||||||
section {
|
section {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
display: inline;
|
display: inline;
|
||||||
height: 80vh;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
section:nth-child(1) {
|
section:nth-child(1) {
|
||||||
@@ -200,7 +205,7 @@ a.privacy {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 30rem !important;
|
width: clamp(20rem, 300px, 40rem);
|
||||||
height: auto !important;
|
height: auto !important;
|
||||||
display: block;
|
display: block;
|
||||||
margin: 30px;
|
margin: 30px;
|
||||||
@@ -208,58 +213,7 @@ a.privacy {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 1820px) and (min-width: 1200px) {
|
|
||||||
.welcomemodal {
|
|
||||||
width: 85%;
|
|
||||||
height: 90%;
|
|
||||||
}
|
|
||||||
|
|
||||||
section {
|
|
||||||
height: 90vh !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 1300px) {
|
|
||||||
.welcomemodal {
|
|
||||||
overflow-x: hidden !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.examples img {
|
|
||||||
width: 20rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.buttons {
|
|
||||||
position: relative !important;
|
|
||||||
bottom: 1rem !important;
|
|
||||||
right: -1rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
section {
|
|
||||||
height: 100vh !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 1190px) {
|
|
||||||
.welcomemodal {
|
|
||||||
width: 90%;
|
|
||||||
height: 90%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 800px) {
|
|
||||||
.welcomemodal {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.examples img {
|
|
||||||
width: 15rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
section {
|
|
||||||
height: 140vh !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.createButtons {
|
.createButtons {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ import { toast } from 'react-toastify';
|
|||||||
//import Hotkeys from 'react-hot-keys';
|
//import Hotkeys from 'react-hot-keys';
|
||||||
|
|
||||||
import Tooltip from '../../helpers/tooltip/Tooltip';
|
import Tooltip from '../../helpers/tooltip/Tooltip';
|
||||||
|
import Modal from 'react-modal';
|
||||||
import ShareModal from '../../helpers/sharemodal/ShareModal';
|
import ShareModal from '../../helpers/sharemodal/ShareModal';
|
||||||
|
|
||||||
import offline_quotes from './offline_quotes.json';
|
import offline_quotes from './offline_quotes.json';
|
||||||
@@ -21,12 +22,13 @@ import Interval from 'modules/helpers/interval';
|
|||||||
import EventBus from 'modules/helpers/eventbus';
|
import EventBus from 'modules/helpers/eventbus';
|
||||||
|
|
||||||
import './quote.scss';
|
import './quote.scss';
|
||||||
|
import { getInitColorSchemeScript } from '@mui/material';
|
||||||
|
|
||||||
export default class Quote extends PureComponent {
|
export default class Quote extends PureComponent {
|
||||||
buttons = {
|
buttons = {
|
||||||
share: (
|
share: (
|
||||||
<Tooltip title="Share">
|
<Tooltip title="Share">
|
||||||
<button onClick={() => this.shareQuote()}>
|
<button onClick={() => this.setState({ shareModal: true })}>
|
||||||
<MdIosShare className="copyButton" />
|
<MdIosShare className="copyButton" />
|
||||||
</button>
|
</button>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
@@ -90,7 +92,7 @@ export default class Quote extends PureComponent {
|
|||||||
quote: '"' + quote.quote + '"',
|
quote: '"' + quote.quote + '"',
|
||||||
author: quote.author,
|
author: quote.author,
|
||||||
authorlink: this.getAuthorLink(quote.author),
|
authorlink: this.getAuthorLink(quote.author),
|
||||||
authorimg: ''
|
authorimg: '',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -398,6 +400,16 @@ export default class Quote extends PureComponent {
|
|||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div className="quotediv" ref={this.quotediv}>
|
<div className="quotediv" ref={this.quotediv}>
|
||||||
|
<Modal
|
||||||
|
closeTimeoutMS={300}
|
||||||
|
isOpen={this.state.shareModal}
|
||||||
|
className="Modal mainModal"
|
||||||
|
overlayClassName="Overlay"
|
||||||
|
ariaHideApp={false}
|
||||||
|
onRequestClose={() => this.setState({ shareModal: false })}
|
||||||
|
>
|
||||||
|
<ShareModal data={`${this.state.quote} - ${this.state.author}`} modalClose={() => this.setState({ shareModal: false })} />
|
||||||
|
</Modal>
|
||||||
<span className="quote" ref={this.quote}>
|
<span className="quote" ref={this.quote}>
|
||||||
{this.state.quote}
|
{this.state.quote}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user