Skip to content

Commit

Permalink
Merge pull request #47 from Soare-Robert-Daniel/main
Browse files Browse the repository at this point in the history
Update CSS for range input to override the base style on WordPress
  • Loading branch information
Soare-Robert-Daniel authored Apr 19, 2021
2 parents 4243ecc + 09cd07b commit 5016392
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
Binary file modified development/logo_maker_plugin.zip
Binary file not shown.
19 changes: 10 additions & 9 deletions src/assets/styles/Creator/select-logo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
margin: 5px 0px;

.slider {
min-width: 250px;
min-width: 230px;
-webkit-appearance: none; /* Override default CSS styles */
appearance: none;
width: 100%; /* Full-width */
height: 20px; /* Specified height */
height: 15px; /* Specified height */
background: #d3d3d3; /* Grey background */
outline: none; /* Remove outline */
opacity: 0.7; /* Set transparency (for mouse-over effects on hover) */
Expand All @@ -43,31 +43,32 @@
.slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 30px;
height: 30px;
width: 26px;
height: 26px;
background: #43C2D1;
cursor: pointer;
border-radius: 50%;
}

.slider::-moz-range-thumb {
width: 30px;
height: 30px;
width: 26px;
height: 26px;
background: #43C2D1;
cursor: pointer;
border-radius: 50%;
}

label {
font-family: monospace;
font-family: 'Courier New', Courier, monospace;
margin: 4px;
padding: 5px 10px;
min-width: 60px;
background-color: #43C2D1;
color: white;
border-radius: 5px;
text-align: center;
font-size: larger;
font-size: 18px;
line-height: 1;
font-weight: 500;
}
}

Expand Down
1 change: 1 addition & 0 deletions src/components/ui/SelectLogo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const SelectLogo: React.FunctionComponent<unknown> = () => {
min="0.5"
max="2"
step="0.1"
value={scaleLogo}
onChange={(e) => {
setScale(parseFloat(e.target.value))
}}
Expand Down

0 comments on commit 5016392

Please sign in to comment.