Heres what I did. Explore the stuff and you may find solutions for your target. If not, just share your stuff and point out the problems.
The auto stuff applies via configuration, adding class switch-auto
for them.
/*switch*/
.layout-row:not(.layout-xs-column)>.md-auto-horizontal-margin:not(:first-child),
.layout-xs-row>.md-auto-horizontal-margin:not(:first-child) {
margin-left: initial;
}
.layout-gt-xs-row:not(.layout-sm-column)>.md-auto-horizontal-margin:not(:first-child),
.layout-row:not(.layout-gt-xs-column):not(.layout-sm-column)>.md-auto-horizontal-margin:not(:first-child),
.layout-sm-row:not(.layout-sm-column)>.md-auto-horizontal-margin:not(:first-child) {
margin-left: initial;
}
.layout-gt-sm-row:not(.layout-md-column)>.md-auto-horizontal-margin:not(:first-child),
.layout-gt-xs-row:not(.layout-gt-sm-column):not(.layout-md-column)>.md-auto-horizontal-margin:not(:first-child),
.layout-md-row:not(.layout-md-column)>.md-auto-horizontal-margin:not(:first-child),
.layout-row:not(.layout-gt-xs-column):not(.layout-gt-sm-column):not(.layout-md-column)>.md-auto-horizontal-margin:not(:first-child)
{
margin-left: initial;
}
.layout-gt-md-row:not(.layout-lg-column)>.md-auto-horizontal-margin:not(:first-child),
.layout-gt-sm-row:not(.layout-gt-md-column):not(.layout-lg-column)>.md-auto-horizontal-margin:not(:first-child),
.layout-gt-xs-row:not(.layout-gt-sm-column):not(.layout-gt-md-column):not(.layout-lg-column)>.md-auto-horizontal-margin:not(:first-child),
.layout-lg-row:not(.layout-lg-column)>.md-auto-horizontal-margin:not(:first-child),
.layout-row:not(.layout-gt-xs-column):not(.layout-gt-sm-column):not(.layout-gt-md-column):not(.layout-lg-column)>.md-auto-horizontal-margin:not(:first-child)
{
margin-left: initial;
}
md-switch .md-container {
cursor: -webkit-grab;
cursor: grab;
width: 80px;
height: 30px;
position: relative;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
border-radius: 8px;
margin-right:0px;
box-shadow: 0px 5px 8px #00000045;
background: linear-gradient(0deg, rgba(78,78,78,1) 0%, rgba(215,215,215,1) 99%, rgba(236,236,236,1) 100%);
}
.switch-auto md-switch .md-container{
width:100px;
}
md-switch .md-container::before {
content: "";
background-image:
url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc1JyBoZWlnaHQ9JzUnPgogIDxyZWN0IHdpZHRoPSc1JyBoZWlnaHQ9JzUnIGZpbGw9J3doaXRlJy8+CiAgPHBhdGggZD0nTTAgNUw1IDBaTTYgNEw0IDZaTS0xIDFMMSAtMVonIHN0cm9rZT0nIzg4OCcgc3Ryb2tlLXdpZHRoPScxJy8+Cjwvc3ZnPg==");
background-repeat: repeat;
position: absolute;
top: -18%;
right: 0px;
bottom: 0px;
left: 0px;
height: 134%;
opacity: 0.08;
border-radius: 9px;
transform: scaleY(0.75);
}
md-switch .md-container::after {
content: 'N®';
font-size: 14px;
font-family: monospace;
color: black;
text-shadow: 0 0 1px white;
position: absolute;
left: 2px;
top: 1px;
opacity: 0.4;
}
.switch-auto md-switch .md-container::after {
content:'AUTO';
opacity:0.8;
left:4px;
}
.nr-dashboard-theme .nr-dashboard-switch md-switch .md-bar {
background-color: rgb(158, 158, 158 / 60%);
box-shadow: inset 1px 0.5px 8px #00000082;
}
md-switch .md-thumb-container {
top: 4px;
left: 18px;
width: 32px;
position: absolute;
transform: translate3d(0,0,0);
z-index: 1;
}
md-switch .md-thumb {
position: absolute;
margin: 0;
left: 0;
top: 0;
outline: none;
height: 22px;
width: 22px;
border-radius: 50%;
box-shadow: 0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);
}
.nr-dashboard-theme .nr-dashboard-switch md-switch.md-checked .md-thumb {
background-color: rgb(158, 158, 158);
}
.switch-auto md-switch .md-thumb-container {
left: 36px;
width: 16px;
}
md-switch .md-thumb-container:after{
content:'';
position:absolute;
margin: 0;
left: 0;
top: 0;
outline: none;
height: 22px;
width: 22px;
border-radius: 50%;
background-color: rgb(158 158 158);
background-image: -webkit-radial-gradient( 50% 0%, 8% 50%, hsla(0,0%,100%,.5) 0%, hsla(0,0%,100%,0) 100%),
-webkit-radial-gradient( 50% 100%, 12% 50%, hsla(0,0%,100%,.6) 0%, hsla(0,0%,100%,0) 100%),
-webkit-radial-gradient( 0% 50%, 50% 7%, hsla(0,0%,100%,.5) 0%, hsla(0,0%,100%,0) 100%),
-webkit-radial-gradient( 100% 50%, 50% 5%, hsla(0,0%,100%,.5) 0%, hsla(0,0%,100%,0) 100%),
-webkit-repeating-radial-gradient( 50% 50%, 100% 100%, hsla(0,0%, 0%,0) 0%, hsla(0,0%, 0%,0) 3%, hsla(0,0%, 0%,.1)
3.5%),
-webkit-repeating-radial-gradient( 50% 50%, 100% 100%, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,0) 6%, hsla(0,0%,100%,.1)
7.5%),
-webkit-repeating-radial-gradient( 50% 50%, 100% 100%, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,0) 1.2%, hsla(0,0%,100%,.2)
2.2%),
-webkit-radial-gradient( 50% 50%, 200% 50%, hsla(0,0%,90%,1) 5%, hsla(0,0%,85%,1) 30%, hsla(0,0%,60%,1) 100%);
}
.nr-dashboard-theme .nr-dashboard-switch md-switch.md-checked .md-bar {
background-color: rgb(33 211 39 / 50%);
box-shadow: inset 1px 0.5px 8px #00000082;
}
md-switch .md-bar {
left: 24px;
width: 44px;
top: 7px;
height: 17px;
border-radius: 8px;
position: absolute;
}
.switch-auto md-switch .md-bar {
left:40px;
width:30px;
}