@@ -152,7 +152,7 @@ ul#ds_sites_list li a:active {
152152
153153.navbar-end__group {
154154 margin : 12px 0 0 0 ;
155- justify-content : end ;
155+ justify-content : space-between ;
156156}
157157
158158.navbar-end {
@@ -301,6 +301,16 @@ ul#ds_sites_list li a:active {
301301
302302/*Card Styles*/
303303
304+ .doc .imageblock {
305+ grid-row-start : 1 ;
306+ align-items : start;
307+ margin-top : 0 ;
308+ }
309+
310+ .doc .content {
311+ display : grid;
312+ }
313+
304314.helios-card .mdc-card--outlined {
305315 margin-top : 4rem ;
306316}
@@ -322,10 +332,6 @@ feedback-stars {
322332 text-align : left;
323333}
324334
325- .doc .imageblock {
326- align-items : flex-end;
327- }
328-
329335.doc pre : not (.highlight ),
330336.doc pre .highlight code {
331337 font-size : 14px ;
@@ -381,7 +387,7 @@ schema#gcx-schema {
381387 padding : 0 0 0 20px ;
382388}
383389
384- .doc .paragraph {
390+ .doc .sect1 . paragraph {
385391 padding : 0 1rem ;
386392}
387393
@@ -708,13 +714,95 @@ gcx-schema-topbar {
708714}
709715
710716
711- /* Switch Dark Mode */
717+ /* Switch/toggle Dark-Light Mode */
712718
713719.doc-link {
714720 display : flex;
721+ align-items : center;
722+ }
723+
724+ .navbar-switch {
725+ margin-left : 20px ;
726+ margin-right : 2px ;
727+ }
728+
729+ .switch_label {
730+ position : relative;
731+ display : inline-block;
732+ width : 60px ;
733+ height : 30px ;
734+ }
735+
736+ .switch_label input {
737+ display : none;
738+ }
739+
740+ .slider {
741+ box-shadow : 0 0 0 2px # ebebeb ;
742+ position : absolute;
743+ cursor : pointer;
744+ top : 0 ;
745+ left : 0 ;
746+ right : 0 ;
747+ bottom : 0 ;
748+ display : flex;
749+ justify-content : space-around;
750+ border-radius : 6px ;
751+ background-color : # ebebeb ;
752+ align-items : center;
753+ -webkit-transition : .4s ;
754+ transition : .4s ;
755+ }
756+
757+ .slider : before {
758+ border-radius : 6px 0 0 6px ;
759+ position : absolute;
760+ content : "" ;
761+ height : 30px ;
762+ width : 30px ;
763+ left : 0 ;
764+ bottom : 0 ;
765+ z-index : 1 ;
766+ background : white;
767+ -webkit-transition : .4s ;
768+ transition : .4s ;
715769}
716770
717- .switch [type = checkbox ] {
771+ .slider svg {
772+ z-index : 2 ;
773+ }
774+
775+
776+ /* Not Checked */
777+
778+ input .switch + .slider svg : nth-of-type (1 ) path {
779+ fill : var (--blue );
780+ }
781+
782+ input .switch + .slider svg : nth-of-type (2 ) path {
783+ fill : # 74767b ;
784+ }
785+
786+
787+ /*Checked*/
788+
789+ input .switch : checked + .slider svg : nth-of-type (1 ) path {
790+ fill : # 74767b ;
791+ }
792+
793+ input .switch : checked + .slider svg : nth-of-type (2 ) path {
794+ fill : var (--blue );
795+ }
796+
797+ input .switch : checked + .slider : before {
798+ border-radius : 0 6px 6px 0 ;
799+ -webkit-transform : translateX (30px );
800+ -ms-transform : translateX (30px );
801+ transform : translateX (30px );
802+ }
803+
804+
805+ /*.switch[type=checkbox] {
718806 height: 0;
719807 width: 0;
720808 visibility: hidden;
@@ -747,22 +835,25 @@ label.switch_label:after {
747835}
748836
749837.switch[type="checkbox"]+label {
750- background-image : url(../ img/moon .svg);
838+ background-image: url(../img/light_mode .svg);
751839 height: 40px;
752840 width: 40px;
753841 display: inline-block;
754842 z-index: 1;
843+ background-size: contain;
755844}
756845
757846.switch[type="checkbox"]:checked+label {
758- background-image : url(../ img/sun .svg);
847+ background-image: url(../img/dark_mode .svg);
759848 height: 40px;
760849 width: 40px;
761850 display: inline-block;
851+ background-size: contain;
762852}
853+ */
763854
764855
765- /*Dark mode: Mobile Header */
856+ /* === Dark mode: Mobile Header === */
766857
767858
768859/* gcx-schema-sample-app-gallery */
0 commit comments