@@ -230,6 +230,7 @@ input:checked + .slider:before {
230230 font-weight : 700 ;
231231 line-height : 170% ;
232232 letter-spacing : 1.2px ;
233+ margin-bottom : 8px ;
233234}
234235
235236.controls-section-left {
@@ -319,11 +320,22 @@ input:checked + .slider:before {
319320/*
320321 * Responsive design
321322 */
322- @media (max-width : 768 px ) {
323+ @media (max-width : 1024 px ) {
323324 .main-content {
324325 flex-direction : column;
325326 }
326327
328+ .left-sidebar {
329+ max-width : 100% ; /* Allow left-sidebar to take full width */
330+ flex-direction : row; /* Arrange children side-by-side */
331+ flex-wrap : wrap; /* Allow children to wrap */
332+ }
333+
334+ .tools-box , .transform-box {
335+ flex : 1 ; /* Allow boxes to grow and shrink */
336+ min-width : 250px ; /* Ensure a minimum width for the boxes */
337+ }
338+
327339 .arduino-text {
328340 font-size : 14px ;
329341 }
@@ -332,29 +344,13 @@ input:checked + .slider:before {
332344 padding : 15px ;
333345 }
334346
335- .controls-section-left {
336- min-width : 330px ;
337- }
338-
339347 .arduino-logo {
340348 height : 16px ;
341349 width : auto;
342350 }
343351
344352}
345353
346- @media (max-width : 1024px ) and (min-width : 769px ) {
347- .controls-section-left {
348- min-width : 490px ;
349- }
350- }
351-
352- @media (max-width : 480px ) {
353- .controls-section-left {
354- min-width : 170px ;
355- }
356- }
357-
358354/* Specific styles for LED Matrix Painter components */
359355
360356/* Grid and cells */
@@ -519,3 +515,144 @@ input {
519515 background-color : # 7F8C8D ;
520516 vertical-align : middle; /* To vertically align with other elements in the header */
521517}
518+
519+ .tool-controls {
520+ display : flex;
521+ align-items : center;
522+ }
523+
524+ /* Custom Select */
525+ .custom-select-wrapper {
526+ position : relative;
527+ display : inline-block;
528+ user-select : none;
529+ width : 48px ;
530+ }
531+
532+ .custom-select {
533+ position : relative;
534+ width : 100% ;
535+ }
536+
537+ .custom-select__trigger {
538+ position : relative;
539+ display : flex;
540+ align-items : center;
541+ gap : 8px ;
542+ padding : 12px 8px ;
543+ border-radius : 8px ;
544+ background : rgba (0 , 129 , 132 , 0.2 );
545+ cursor : pointer;
546+ }
547+
548+ .custom-select .open .custom-options {
549+ display : block;
550+ }
551+
552+ .custom-options {
553+ position : absolute;
554+ top : 100% ;
555+ left : 0 ;
556+ right : 0 ;
557+ display : none;
558+ box-shadow : 0px 4px 8px rgba (0 , 0 , 0 , 0.1 ); /* Subtle shadow instead of border */
559+ border-radius : 0 0 8px 8px ;
560+ background : # fff ;
561+ z-index : 2 ;
562+ }
563+
564+ .custom-option {
565+ display : flex;
566+ align-items : center;
567+ gap : 8px ;
568+ padding : 12px 8px ; /* Adjusted padding */
569+ cursor : pointer;
570+ }
571+
572+ .custom-option : hover {
573+ background-color : rgba (0 , 129 , 132 , 0.08 );
574+ }
575+
576+ .dropdown-arrow {
577+ position : absolute;
578+ top : 50% ;
579+ right : 10px ;
580+ transform : translateY (-50% );
581+ transition : transform 0.2s ease-in-out;
582+ }
583+
584+ .custom-select .open .dropdown-arrow {
585+ transform : translateY (-50% ) rotate (180deg );
586+ }
587+
588+ .alpha-label {
589+ font-family : "Open Sans" ;
590+ font-size : 10px ;
591+ font-style : normal;
592+ font-weight : 600 ;
593+ line-height : 160% ; /* 16px */
594+ letter-spacing : 0.1px ;
595+ }
596+
597+ .slider-limit-label {
598+ font-size : 10px ;
599+ font-style : normal;
600+ font-weight : 600 ;
601+ }
602+
603+ .tool-icon {
604+ fill : # 008184 ;
605+ }
606+
607+ # brightness-alpha-slider {
608+ -webkit-appearance : none;
609+ width : 100% ;
610+ height : 6px ;
611+ background : # 008184 !important ;
612+ outline : none;
613+ -webkit-transition : .2s ;
614+ transition : opacity .2s ;
615+ border-radius : 30px ;
616+ }
617+
618+ /* Mouse-over effects */
619+ # brightness-alpha-slider : hover {
620+ opacity : 1 ; /* Fully shown on mouse-over */
621+ }
622+
623+ /* The slider thumb (webKit) */
624+ # brightness-alpha-slider ::-webkit-slider-thumb {
625+ -webkit-appearance : none; /* Hides the default slider thumb */
626+ appearance : none;
627+ width : 16px ; /* Set a specific slider handle width */
628+ height : 16px ; /* Slider handle height */
629+ border-radius : 50% ; /* Make it a circle */
630+ background : # 008184 !important ; /* Green background */
631+ cursor : pointer; /* Cursor on hover */
632+ margin-top : -4px ; /* Adjust this to center the thumb vertically on the track */
633+ }
634+
635+ /* The slider thumb (Firefox) */
636+ # brightness-alpha-slider ::-moz-range-thumb {
637+ width : 16px ; /* Set a specific slider handle width */
638+ height : 16px ; /* Slider handle height */
639+ border-radius : 50% ; /* Make it a circle */
640+ background : # 008184 !important ; /* Green background */
641+ cursor : pointer; /* Cursor on hover */
642+ }
643+
644+ /* The slider track (webKit) */
645+ # brightness-alpha-slider ::-webkit-slider-runnable-track {
646+ width : 100% ;
647+ height : 8px ;
648+ background : # 008184 !important ; /* Green background */
649+ border-radius : 4px ;
650+ }
651+
652+ /* The slider track (Firefox) */
653+ # brightness-alpha-slider ::-moz-range-track {
654+ width : 100% ;
655+ height : 8px ;
656+ background : # 008184 !important ; /* Green background */
657+ border-radius : 4px ;
658+ }
0 commit comments