Skip to content

Commit 9bd0c54

Browse files
committed
wiki: Devices: MD3E
* Dialog and alert border radius, removed border color from dialogs * Button radius and transition * List style (variant selection) * Progress bars in filters Change-Id: I767acb603aef3aba2860a57f33b5c41d8bbc7aeb
1 parent 496ee2d commit 9bd0c54

1 file changed

Lines changed: 45 additions & 16 deletions

File tree

_sass/lineage/_main.scss

Lines changed: 45 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ div#toc >ul::before {
298298
// Alerts
299299

300300
.alert {
301-
border-radius: 4px !important;
301+
border-radius: 12px !important;
302302
margin-top: 1rem;
303303

304304
a {
@@ -393,7 +393,7 @@ a {
393393
padding: .25rem 0 .25rem.5rem;
394394
font-size: 14px;
395395
border: 1px solid var(--theme-border-soft);
396-
border-radius: 4px;
396+
border-radius: 12px;
397397
transition: all var(--transition-speed);
398398
}
399399

@@ -558,8 +558,7 @@ a {
558558
.popup-overlay {
559559
position: relative;
560560
background: var(--theme-bg);
561-
border: 1px solid var(--theme-border);
562-
border-radius: .75rem;
561+
border-radius: 1.5rem;
563562
max-width: 560px;
564563
display: flex;
565564
z-index: 1100;
@@ -652,23 +651,37 @@ a {
652651
flex-direction: column;
653652
align-items: flex-start;
654653
padding: 0px;
655-
border-radius: .25rem;
656-
background: var(--theme-bg-subtle);
654+
gap: 0.25rem;
657655

658656
li {
659657
display: flex;
660658
flex-direction: row;
661659
align-items: center;
662660
padding: 16px 24px;
663-
gap: 10px;
664661
width: 100%;
665662
cursor: pointer;
663+
background: var(--theme-bg-subtle);
666664

667665
@media(hover: hover) {
668666
&:hover a {
669667
text-decoration: underline;
670668
}
671669
}
670+
671+
&:hover {
672+
border-radius: 1rem;
673+
transition: border-radius var(--transition-speed);
674+
}
675+
676+
&:first-child {
677+
border-top-left-radius: 1rem;
678+
border-top-right-radius: 1rem;
679+
}
680+
681+
&:last-child {
682+
border-bottom-left-radius: 1rem;
683+
border-bottom-right-radius: 1rem;
684+
}
672685
}
673686
}
674687
}
@@ -696,7 +709,7 @@ div[data-filter] {
696709
&::-webkit-slider-runnable-track {
697710
background-color: var(--theme-primary);
698711
border-radius: 0.5rem;
699-
height: 0.5rem;
712+
height: 1.5rem;
700713
}
701714

702715
&:hover::-webkit-slider-runnable-track {
@@ -708,13 +721,14 @@ div[data-filter] {
708721
&::-webkit-slider-thumb {
709722
-webkit-appearance: none; /* Override default look */
710723
appearance: none;
711-
margin-top: -0.375rem; /* (TrackHeight/2 - ThumbHeight/2) */
724+
margin-top: -0.625rem; /* (TrackHeight/2 - ThumbHeight/2) */
712725

713726
/* custom styles */
714727
border-radius: 2rem;
715728
background-color: var(--theme-primary);
716-
height: 1.25rem;
717-
width: 1.25rem;
729+
height: 2.75rem;
730+
width: 0.375rem;
731+
box-shadow: 0.375rem 0.375rem var(--theme-bg), -0.375rem -0.375rem var(--theme-bg);
718732
}
719733

720734
&:hover::-webkit-slider-thumb {
@@ -724,14 +738,13 @@ div[data-filter] {
724738
/******** Firefox styles ********/
725739
/* slider track */
726740
&::-moz-range-track {
727-
background-color: var(--theme-primary);
741+
background-color: var(--theme-bg-subtle);
728742
border-radius: 0.5rem;
729-
height: 0.5rem;
743+
height: 1.5rem;
730744
}
731745

732746
&:hover::-moz-range-track {
733747
border: 1px solid var(--theme-primary-strong);
734-
box-shadow: var(--theme-primary-shadow);
735748
}
736749

737750
/* slider thumb */
@@ -741,13 +754,20 @@ div[data-filter] {
741754

742755
/* custom styles */
743756
background-color: var(--theme-primary);
744-
height: 1.25rem;
745-
width: 1.25rem;
757+
height: 2.75rem;
758+
width: 0.375rem;
759+
box-shadow: 0.375rem 0.375rem var(--theme-bg), -0.375rem -0.375rem var(--theme-bg);
746760
}
747761

748762
&:hover::-moz-range-thumb {
749763
border: 1px solid var(--theme-primary-strong);
750764
}
765+
766+
&::-moz-range-progress {
767+
background-color: var(--theme-primary);
768+
height: 1.5rem;
769+
border-radius: 0.5rem;
770+
}
751771
}
752772

753773
label {
@@ -759,6 +779,15 @@ div[data-filter] {
759779
}
760780
}
761781

782+
.btn {
783+
border-radius: 1rem;
784+
}
785+
786+
.btn.btn-primary:focus, .btn.btn-primary.focus, .btn.btn-primary:hover {
787+
border-radius: .25rem;
788+
transition: border-radius var(--transition-speed);
789+
}
790+
762791
.device-filters-header {
763792
color: var(--theme-text-soft);
764793
font-weight: 400;

0 commit comments

Comments
 (0)