From 1ff20ec0fdbac0d8e8a24f5e0e5d2030396f858b Mon Sep 17 00:00:00 2001 From: "[poww10s]" <[theironminer@gmail.com]> Date: Thu, 26 Nov 2020 18:49:42 -0500 Subject: [PATCH] fix linebreaks --- src/features/timbre/Timbre.js | 260 +++++++++--------- src/features/timbre/Timbre.module.css | 24 +- src/features/timbre/Vocoder.js | 6 +- .../timbre/parameters/Parameters.module.css | 112 ++++---- 4 files changed, 212 insertions(+), 190 deletions(-) diff --git a/src/features/timbre/Timbre.js b/src/features/timbre/Timbre.js index 64fe8a7..08285bc 100644 --- a/src/features/timbre/Timbre.js +++ b/src/features/timbre/Timbre.js @@ -12,134 +12,134 @@ import { selectById } from './timbreSlice.js'; import styles from './Timbre.module.css'; export default function Timbre(props) { - const ids = useSelector((state) => selectById(state, props.id)); - return ( -
- - - - - - -
- - - - - -
- ); + const ids = useSelector((state) => selectById(state, props.id)); + return ( +
+ + + + + + + + +
+ + + +
+ ); } diff --git a/src/features/timbre/Timbre.module.css b/src/features/timbre/Timbre.module.css index 37acb12..704b64d 100644 --- a/src/features/timbre/Timbre.module.css +++ b/src/features/timbre/Timbre.module.css @@ -5,7 +5,29 @@ justify-content: center; } -@media screen and (min-width: 1824) { +.lineBreak { + width: 0%; +} + +@media only screen and (max-width: 1920px) { + .lineBreak { + width: 100%; + } +} + +@media only screen and (max-width: 1440px) { + .lineBreak { + width: 0%; + } +} + +@media only screen and (max-width: 990px) { + .lineBreak { + width: 0%; + } +} + +@media only screen and (max-width: 920px) { .lineBreak { width: 100%; } diff --git a/src/features/timbre/Vocoder.js b/src/features/timbre/Vocoder.js index 885e638..58cc148 100644 --- a/src/features/timbre/Vocoder.js +++ b/src/features/timbre/Vocoder.js @@ -8,8 +8,8 @@ import EG from './parameters/EG'; import LFO from './parameters/LFO'; import { VocoderFilter, FCMod } from './parameters/Filter'; import { VocoderAmp } from './parameters/Amp'; -import Levels from './parameters/Levels' -import Pans from './parameters/Pans' +import Levels from './parameters/Levels'; +import Pans from './parameters/Pans'; import styles from './Timbre.module.css'; export default function Vocoder(props) { @@ -102,9 +102,9 @@ export default function Vocoder(props) { -
+
diff --git a/src/features/timbre/parameters/Parameters.module.css b/src/features/timbre/parameters/Parameters.module.css index 5abbe6f..685eff3 100644 --- a/src/features/timbre/parameters/Parameters.module.css +++ b/src/features/timbre/parameters/Parameters.module.css @@ -1,89 +1,89 @@ .container, .horizontalContainer, .patchesContainer { - border: solid 1pt slategrey; - border-radius: 6px; + border: solid 1pt slategrey; + border-radius: 6px; } .container { - position: relative; - font-size: small; - display: inline-flex; - flex-direction: column; - justify-content: center; - padding: 16pt; - margin: 10pt; - min-width: 15%; - height: 214px; - line-height: 1.5em; + position: relative; + font-size: small; + display: inline-flex; + flex-direction: column; + justify-content: center; + padding: 16pt; + margin: 10pt; + min-width: 15%; + height: 214px; + line-height: 1.5em; } .container > * { - margin: 3pt 0; + margin: 3pt 0; } .header { - font-size: 1.5em; - line-height: 1.25em; - text-align: center; - background-color: white; - padding: 0 0.25em 0.075em; - border-left: 1px solid slategrey; - border-right: 1px solid slategrey; - box-sizing: border-box; + font-size: 1.5em; + line-height: 1.25em; + text-align: center; + background-color: white; + padding: 0 0.25em 0.075em; + border-left: 1px solid slategrey; + border-right: 1px solid slategrey; + box-sizing: border-box; } .container > .header { - position: absolute; - top: -7.5%; - left: 12%; + position: absolute; + top: -7.5%; + left: 12%; } .horizontalContainer > .header, .patchesContainer > .header { - position: absolute; - top: -5.25%; - left: 6%; + position: absolute; + top: -5.25%; + left: 6%; } .horizontalContainer { - position: relative; - font-size: small; - display: inline-flex; - flex-direction: row; - justify-content: center; - align-items: center; - padding: 16pt 8pt 16pt 8pt; - margin: 10pt; - width: 448px; - height: 214px; + position: relative; + font-size: small; + display: inline-flex; + flex-direction: row; + justify-content: center; + align-items: center; + padding: 16pt 8pt 16pt 8pt; + margin: 10pt; + width: 448px; + height: 214px; } .patchesContainer { - position: relative; - font-size: small; - display: inline-flex; - flex-direction: row; - justify-content: center; - align-items: center; - padding: 16pt 8pt 16pt 8pt; - margin: 10pt; - width: 680px; - height: 214px; + position: relative; + font-size: small; + display: inline-flex; + flex-direction: row; + justify-content: center; + align-items: center; + padding: 16pt 8pt 16pt 8pt; + margin: 10pt; + width: 680px; + height: 214px; } .horizontalContainer > .container, .patchesContainer > .container { - padding: 0 16pt; - width: 100%; - margin: 10pt 0; - border: none; + padding: 0 16pt; + width: 100%; + margin: 10pt 0; + border: none; } .divider { - height: 214px; - width: 2px; - background-color: slategrey; - margin: 0 8pt; + height: 214px; + width: 2px; + background-color: slategrey; + margin: 0 8pt; } .patchesContainer > .divider { - width: 4px; + width: 4px; }