ywana-core8 0.1.91 → 0.1.93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.css CHANGED
@@ -9740,6 +9740,408 @@ li.selected,
9740
9740
  }
9741
9741
  }
9742
9742
 
9743
+ /* ExampleLayout - Sidebar navigation for example pages */
9744
+
9745
+ .example-layout {
9746
+ display: flex;
9747
+ max-height: 100vh;
9748
+ position: relative;
9749
+ overflow: hidden;
9750
+ }
9751
+
9752
+ /* Sidebar */
9753
+ .example-sidebar {
9754
+ position: fixed;
9755
+ top: 0;
9756
+ left: 0;
9757
+ height: 100vh;
9758
+ background: var(--surface-color, #f8f9fa);
9759
+ border-right: 1px solid var(--divider-color, #e0e0e0);
9760
+ z-index: 1000;
9761
+ transition: all 0.3s ease;
9762
+ overflow-y: auto;
9763
+ }
9764
+
9765
+ .example-sidebar.open {
9766
+ width: 280px;
9767
+ transform: translateX(0);
9768
+ }
9769
+
9770
+ .example-sidebar.closed {
9771
+ width: 60px;
9772
+ transform: translateX(0);
9773
+ }
9774
+
9775
+ .example-sidebar__header {
9776
+ padding: 1rem;
9777
+ border-bottom: 1px solid var(--divider-color, #e0e0e0);
9778
+ display: flex;
9779
+ align-items: center;
9780
+ justify-content: space-between;
9781
+ background: var(--primary-color, #2196f3);
9782
+ color: white;
9783
+ position: sticky;
9784
+ top: 0;
9785
+ z-index: 10;
9786
+ }
9787
+
9788
+ .example-sidebar__title {
9789
+ margin: 0;
9790
+ font-size: 1.1rem;
9791
+ font-weight: 600;
9792
+ white-space: nowrap;
9793
+ overflow: hidden;
9794
+ text-overflow: ellipsis;
9795
+ }
9796
+
9797
+ .example-sidebar__toggle {
9798
+ background: none;
9799
+ border: none;
9800
+ color: white;
9801
+ cursor: pointer;
9802
+ padding: 0.25rem;
9803
+ border-radius: 4px;
9804
+ display: flex;
9805
+ align-items: center;
9806
+ justify-content: center;
9807
+ transition: background-color 0.2s ease;
9808
+ }
9809
+
9810
+ .example-sidebar__toggle:hover {
9811
+ background: rgba(255, 255, 255, 0.1);
9812
+ }
9813
+
9814
+ /* Navigation */
9815
+ .example-sidebar__nav {
9816
+ padding: 1rem 0;
9817
+ }
9818
+
9819
+ .example-sidebar__list {
9820
+ list-style: none;
9821
+ margin: 0;
9822
+ padding: 0;
9823
+ }
9824
+
9825
+ .example-sidebar__item {
9826
+ margin-bottom: 0.25rem;
9827
+ }
9828
+
9829
+ .example-sidebar__link {
9830
+ display: flex;
9831
+ align-items: center;
9832
+ gap: 0.75rem;
9833
+ padding: 0.75rem 1rem;
9834
+ background: none;
9835
+ border: none;
9836
+ color: var(--text-color, #333);
9837
+ text-decoration: none;
9838
+ cursor: pointer;
9839
+ transition: all 0.2s ease;
9840
+ width: 100%;
9841
+ text-align: left;
9842
+ font-size: 0.875rem;
9843
+ border-radius: 0;
9844
+ }
9845
+
9846
+ .example-sidebar__link:hover {
9847
+ background: var(--hover-color, rgba(33, 150, 243, 0.08));
9848
+ color: var(--primary-color, #2196f3);
9849
+ }
9850
+
9851
+ .example-sidebar__link.active {
9852
+ background: var(--primary-color, #2196f3);
9853
+ color: white;
9854
+ font-weight: 500;
9855
+ }
9856
+
9857
+ .example-sidebar__link span {
9858
+ white-space: nowrap;
9859
+ overflow: hidden;
9860
+ text-overflow: ellipsis;
9861
+ }
9862
+
9863
+ /* Subsections */
9864
+ .example-sidebar__subsections {
9865
+ list-style: none;
9866
+ margin: 0;
9867
+ padding: 0;
9868
+ margin-left: 1rem;
9869
+ border-left: 2px solid var(--divider-color-light, #f0f0f0);
9870
+ }
9871
+
9872
+ .example-sidebar__subsection {
9873
+ margin-bottom: 0.125rem;
9874
+ }
9875
+
9876
+ .example-sidebar__sublink {
9877
+ display: block;
9878
+ padding: 0.5rem 1rem;
9879
+ background: none;
9880
+ border: none;
9881
+ color: var(--text-color-secondary, #666);
9882
+ text-decoration: none;
9883
+ cursor: pointer;
9884
+ transition: all 0.2s ease;
9885
+ width: 100%;
9886
+ text-align: left;
9887
+ font-size: 0.75rem;
9888
+ border-radius: 0;
9889
+ }
9890
+
9891
+ .example-sidebar__sublink:hover {
9892
+ background: var(--hover-color, rgba(33, 150, 243, 0.05));
9893
+ color: var(--primary-color, #2196f3);
9894
+ }
9895
+
9896
+ .example-sidebar__sublink.active {
9897
+ background: var(--selection-color, rgba(33, 150, 243, 0.1));
9898
+ color: var(--primary-color, #2196f3);
9899
+ font-weight: 500;
9900
+ }
9901
+
9902
+ /* Main content */
9903
+ .example-content {
9904
+ flex: 1;
9905
+ transition: margin-left 0.3s ease;
9906
+ overflow: auto;
9907
+ }
9908
+
9909
+ .example-content.with-sidebar {
9910
+ margin-left: 280px;
9911
+ }
9912
+
9913
+ .example-content.full-width {
9914
+ margin-left: 60px;
9915
+ }
9916
+
9917
+ .example-content__inner {
9918
+ padding: 2rem;
9919
+ max-width: 1200px;
9920
+ margin: 0 auto;
9921
+ }
9922
+
9923
+ /* Example sections */
9924
+ .example-section {
9925
+ margin-bottom: 3rem;
9926
+ scroll-margin-top: 2rem;
9927
+ }
9928
+
9929
+ .example-section__header {
9930
+ display: flex;
9931
+ align-items: center;
9932
+ gap: 0.75rem;
9933
+ margin-bottom: 1.5rem;
9934
+ padding-bottom: 0.75rem;
9935
+ border-bottom: 2px solid var(--divider-color, #e0e0e0);
9936
+ }
9937
+
9938
+ .example-section__title {
9939
+ margin: 0;
9940
+ font-size: 1.75rem;
9941
+ font-weight: 600;
9942
+ color: var(--text-color, #333);
9943
+ }
9944
+
9945
+ .example-section__content {
9946
+ /* Content styles handled by individual components */
9947
+ }
9948
+
9949
+ /* Example subsections */
9950
+ .example-subsection {
9951
+ margin-bottom: 2rem;
9952
+ scroll-margin-top: 2rem;
9953
+ }
9954
+
9955
+ .example-subsection__title {
9956
+ margin: 0 0 1rem 0;
9957
+ font-size: 1.25rem;
9958
+ font-weight: 500;
9959
+ color: var(--text-color, #333);
9960
+ }
9961
+
9962
+ .example-subsection__content {
9963
+ /* Content styles handled by individual components */
9964
+ }
9965
+
9966
+ /* Code snippets */
9967
+ .code-snippet {
9968
+ background: var(--surface-color, #f8f9fa);
9969
+ border: 1px solid var(--divider-color, #e0e0e0);
9970
+ border-radius: 8px;
9971
+ margin: 1rem 0;
9972
+ overflow: hidden;
9973
+ }
9974
+
9975
+ .code-snippet__header {
9976
+ display: flex;
9977
+ align-items: center;
9978
+ justify-content: space-between;
9979
+ padding: 0.75rem 1rem;
9980
+ background: var(--surface-color-dark, #e9ecef);
9981
+ border-bottom: 1px solid var(--divider-color, #e0e0e0);
9982
+ }
9983
+
9984
+ .code-snippet__title {
9985
+ margin: 0;
9986
+ font-size: 0.875rem;
9987
+ font-weight: 500;
9988
+ color: var(--text-color, #333);
9989
+ }
9990
+
9991
+ .code-snippet__copy {
9992
+ display: flex;
9993
+ align-items: center;
9994
+ gap: 0.5rem;
9995
+ padding: 0.25rem 0.5rem;
9996
+ background: none;
9997
+ border: 1px solid var(--divider-color, #e0e0e0);
9998
+ border-radius: 4px;
9999
+ color: var(--text-color-secondary, #666);
10000
+ cursor: pointer;
10001
+ font-size: 0.75rem;
10002
+ transition: all 0.2s ease;
10003
+ }
10004
+
10005
+ .code-snippet__copy:hover {
10006
+ background: var(--hover-color, rgba(33, 150, 243, 0.05));
10007
+ border-color: var(--primary-color, #2196f3);
10008
+ color: var(--primary-color, #2196f3);
10009
+ }
10010
+
10011
+ .code-snippet__content {
10012
+ padding: 1rem;
10013
+ margin: 0;
10014
+ background: white;
10015
+ overflow-x: auto;
10016
+ font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
10017
+ font-size: 0.75rem;
10018
+ line-height: 1.5;
10019
+ }
10020
+
10021
+ .code-snippet__content code {
10022
+ color: var(--text-color, #333);
10023
+ }
10024
+
10025
+ /* Mobile overlay */
10026
+ .example-overlay {
10027
+ position: fixed;
10028
+ top: 0;
10029
+ left: 0;
10030
+ right: 0;
10031
+ bottom: 0;
10032
+ background: rgba(0, 0, 0, 0.5);
10033
+ z-index: 999;
10034
+ display: none;
10035
+ }
10036
+
10037
+ /* Responsive design */
10038
+ @media (max-width: 768px) {
10039
+ .example-sidebar.open {
10040
+ width: 100%;
10041
+ max-width: 320px;
10042
+ }
10043
+
10044
+ .example-sidebar.closed {
10045
+ transform: translateX(-100%);
10046
+ width: 280px;
10047
+ }
10048
+
10049
+ .example-content.with-sidebar,
10050
+ .example-content.full-width {
10051
+ margin-left: 0;
10052
+ }
10053
+
10054
+ .example-content__inner {
10055
+ padding: 1rem;
10056
+ }
10057
+
10058
+ .example-overlay {
10059
+ display: block;
10060
+ }
10061
+
10062
+ .example-section__title {
10063
+ font-size: 1.5rem;
10064
+ }
10065
+
10066
+ .example-subsection__title {
10067
+ font-size: 1.125rem;
10068
+ }
10069
+ }
10070
+
10071
+ /* Dark theme support */
10072
+ @media (prefers-color-scheme: dark) {
10073
+ .example-sidebar {
10074
+ background: #2c1810;
10075
+ border-color: #5d4037;
10076
+ }
10077
+
10078
+ .example-sidebar__header {
10079
+ background: #3e2723;
10080
+ border-color: #5d4037;
10081
+ }
10082
+
10083
+ .example-sidebar__link {
10084
+ color: #f4e6d7;
10085
+ }
10086
+
10087
+ .example-sidebar__link:hover {
10088
+ background: rgba(141, 110, 99, 0.2);
10089
+ color: #8d6e63;
10090
+ }
10091
+
10092
+ .example-sidebar__link.active {
10093
+ background: #8d6e63;
10094
+ color: #f4e6d7;
10095
+ }
10096
+
10097
+ .example-sidebar__sublink {
10098
+ color: #d7ccc8;
10099
+ }
10100
+
10101
+ .example-sidebar__sublink:hover {
10102
+ background: rgba(141, 110, 99, 0.1);
10103
+ color: #8d6e63;
10104
+ }
10105
+
10106
+ .example-sidebar__sublink.active {
10107
+ background: rgba(141, 110, 99, 0.2);
10108
+ color: #8d6e63;
10109
+ }
10110
+
10111
+ .code-snippet {
10112
+ background: #3e2723;
10113
+ border-color: #5d4037;
10114
+ }
10115
+
10116
+ .code-snippet__header {
10117
+ background: #4e342e;
10118
+ border-color: #5d4037;
10119
+ }
10120
+
10121
+ .code-snippet__title {
10122
+ color: #f4e6d7;
10123
+ }
10124
+
10125
+ .code-snippet__copy {
10126
+ border-color: #5d4037;
10127
+ color: #d7ccc8;
10128
+ }
10129
+
10130
+ .code-snippet__copy:hover {
10131
+ background: rgba(141, 110, 99, 0.2);
10132
+ border-color: #8d6e63;
10133
+ color: #8d6e63;
10134
+ }
10135
+
10136
+ .code-snippet__content {
10137
+ background: #2c1810;
10138
+ }
10139
+
10140
+ .code-snippet__content code {
10141
+ color: #f4e6d7;
10142
+ }
10143
+ }
10144
+
9743
10145
  .login-box {
9744
10146
  background-color: var(--paper-color);
9745
10147
  }