@@ -152,7 +152,7 @@ ul#ds_sites_list li a:active {
152
152
153
153
.navbar-end__group {
154
154
margin : 12px 0 0 0 ;
155
- justify-content : end ;
155
+ justify-content : space-between ;
156
156
}
157
157
158
158
.navbar-end {
@@ -301,6 +301,16 @@ ul#ds_sites_list li a:active {
301
301
302
302
/*Card Styles*/
303
303
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
+
304
314
.helios-card .mdc-card--outlined {
305
315
margin-top : 4rem ;
306
316
}
@@ -322,10 +332,6 @@ feedback-stars {
322
332
text-align : left;
323
333
}
324
334
325
- .doc .imageblock {
326
- align-items : flex-end;
327
- }
328
-
329
335
.doc pre : not (.highlight ),
330
336
.doc pre .highlight code {
331
337
font-size : 14px ;
@@ -381,7 +387,7 @@ schema#gcx-schema {
381
387
padding : 0 0 0 20px ;
382
388
}
383
389
384
- .doc .paragraph {
390
+ .doc .sect1 . paragraph {
385
391
padding : 0 1rem ;
386
392
}
387
393
@@ -708,13 +714,95 @@ gcx-schema-topbar {
708
714
}
709
715
710
716
711
- /* Switch Dark Mode */
717
+ /* Switch/toggle Dark-Light Mode */
712
718
713
719
.doc-link {
714
720
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 ;
715
769
}
716
770
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] {
718
806
height: 0;
719
807
width: 0;
720
808
visibility: hidden;
@@ -747,22 +835,25 @@ label.switch_label:after {
747
835
}
748
836
749
837
.switch[type="checkbox"]+label {
750
- background-image : url(../ img/moon .svg);
838
+ background-image: url(../img/light_mode .svg);
751
839
height: 40px;
752
840
width: 40px;
753
841
display: inline-block;
754
842
z-index: 1;
843
+ background-size: contain;
755
844
}
756
845
757
846
.switch[type="checkbox"]:checked+label {
758
- background-image : url(../ img/sun .svg);
847
+ background-image: url(../img/dark_mode .svg);
759
848
height: 40px;
760
849
width: 40px;
761
850
display: inline-block;
851
+ background-size: contain;
762
852
}
853
+ */
763
854
764
855
765
- /*Dark mode: Mobile Header */
856
+ /* === Dark mode: Mobile Header === */
766
857
767
858
768
859
/* gcx-schema-sample-app-gallery */
0 commit comments