Skip to content

Commit

Permalink
bar-form mode variants
Browse files Browse the repository at this point in the history
  • Loading branch information
GMILLA92 committed Jan 26, 2024
1 parent 8bde79a commit 037dba0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
21 changes: 17 additions & 4 deletions frontend/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ html {
margin-bottom: 19px;
margin-right: 46px;
margin-top: 7px;
color: rgb(68, 99, 176) !important;
color: rgb(102 116 152) !important;
font-weight: 700 !important;
}

Expand All @@ -93,6 +93,20 @@ html {
font-variant-caps: all-petite-caps;
}

.modeVariantsBarMode {
/* margin-bottom: 60px; */
margin-top: -15px;
margin-bottom: 31px;
color: rgba(12, 16, 64, 0.606);
font-size: 16px;
font-feature-settings: 'pcap', 'c2pc', "pcap", "c2pc";
font-variant-caps: all-petite-caps;
}

.modeVariantsBarMode:hover h2 {
color: rgb(236, 149, 0) !important;
}

.modeVariants:hover h2 {
color: rgb(236, 149, 0) !important;
}
Expand Down Expand Up @@ -1142,12 +1156,11 @@ h5 {

.version {
margin-bottom: 46px;
margin-right: 35px;
margin-right: 36px;
margin-top: -35px;
color: rgb(68, 99, 176) !important;
color: rgb(102 116 152) !important;
font-weight: 600;
}

.inputVariants {
height: 24px;
border: 1.5px solid #dfdfdf;
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/components/Layout/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,11 @@ function Layout (props) {
setExpansionSection={setExpansionSection}
/>
)}
{showVariants === true && showBar === false && (
<button className='modeVariantsBarMode' onClick={handleClick}>
<h2 className='modeVariantsQueries'>Change to FORM mode</h2>
</button>
)}
<div className='container-fluid'>
{cohorts === false &&
props.collection !== 'Variant' &&
Expand Down Expand Up @@ -751,11 +756,6 @@ function Layout (props) {
</div>
)}

{showVariants === true && showBar === false && (
<button className='modeVariants' onClick={handleClick}>
<h2 className='modeVariantsQueries'>Change to FORM mode</h2>
</button>
)}
{showVariants === true && showBar === true && (
<button className='modeVariants' onClick={handleClick}>
<h2 className='modeVariantsQueries2'>Change to BAR mode </h2>
Expand Down Expand Up @@ -1218,7 +1218,7 @@ function Layout (props) {
</div>
</div>
</div>
<form className="variantsForm" onSubmit={handleSubmit}>
<form className='variantsForm' onSubmit={handleSubmit}>
<div className='tabset'>
<input
type='radio'
Expand Down

0 comments on commit 037dba0

Please sign in to comment.