@open-condo/ui 1.1.0 → 1.2.0

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/styles.css CHANGED
@@ -46,6 +46,14 @@
46
46
  font-display: swap;
47
47
  src: url(https://fonts.gstatic.com/s/opensans/v34/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsg-1y4n.ttf) format('truetype');
48
48
  }
49
+ @font-face {
50
+ font-family: 'Noto Sans Mono';
51
+ font-style: normal;
52
+ font-weight: 400;
53
+ font-stretch: normal;
54
+ font-display: swap;
55
+ src: url(https://fonts.gstatic.com/s/notosansmono/v21/BngrUXNETWXI6LwhGYvaxZikqZqK6fBq6kPvUce2oAZcdthSBUsYck4-_FNJ49o.ttf) format('truetype');
56
+ }
49
57
 
50
58
  /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
51
59
  /* stylelint-disable no-duplicate-selectors */
@@ -1913,6 +1921,109 @@ a.condo-btn-lg {
1913
1921
  a.condo-btn-sm {
1914
1922
  line-height: 22px;
1915
1923
  }
1924
+ .condo-btn-compact-item:not(.condo-btn-compact-last-item):not(.condo-btn-compact-item-rtl) {
1925
+ margin-right: -1px;
1926
+ }
1927
+ .condo-btn-compact-item:not(.condo-btn-compact-last-item).condo-btn-compact-item-rtl {
1928
+ margin-left: -1px;
1929
+ }
1930
+ .condo-btn-compact-item:hover,
1931
+ .condo-btn-compact-item:focus,
1932
+ .condo-btn-compact-item:active {
1933
+ z-index: 2;
1934
+ }
1935
+ .condo-btn-compact-item[disabled] {
1936
+ z-index: 0;
1937
+ }
1938
+ .condo-btn-compact-item:not(.condo-btn-compact-first-item):not(.condo-btn-compact-last-item).condo-btn {
1939
+ border-radius: 0;
1940
+ }
1941
+ .condo-btn-compact-item.condo-btn.condo-btn-compact-first-item:not(.condo-btn-compact-item-rtl) {
1942
+ border-top-right-radius: 0;
1943
+ border-bottom-right-radius: 0;
1944
+ }
1945
+ .condo-btn-compact-item.condo-btn.condo-btn-compact-last-item:not(.condo-btn-compact-item-rtl) {
1946
+ border-top-left-radius: 0;
1947
+ border-bottom-left-radius: 0;
1948
+ }
1949
+ .condo-btn-compact-item.condo-btn.condo-btn-compact-item-rtl.condo-btn-compact-first-item {
1950
+ border-top-left-radius: 0;
1951
+ border-bottom-left-radius: 0;
1952
+ }
1953
+ .condo-btn-compact-item.condo-btn.condo-btn-compact-item-rtl.condo-btn-compact-last-item {
1954
+ border-top-right-radius: 0;
1955
+ border-bottom-right-radius: 0;
1956
+ }
1957
+ .condo-btn-icon-only.condo-btn-compact-item {
1958
+ flex: none;
1959
+ }
1960
+ .condo-btn-compact-item.condo-btn-primary:not([disabled]) + .condo-btn-compact-item.condo-btn-primary:not([disabled]) {
1961
+ position: relative;
1962
+ }
1963
+ .condo-btn-compact-item.condo-btn-primary:not([disabled]) + .condo-btn-compact-item.condo-btn-primary:not([disabled])::after {
1964
+ position: absolute;
1965
+ top: -1px;
1966
+ left: -1px;
1967
+ display: inline-block;
1968
+ width: 1px;
1969
+ height: calc(100% + 1px * 2);
1970
+ background-color: #40a9ff;
1971
+ content: ' ';
1972
+ }
1973
+ .condo-btn-compact-item-rtl.condo-btn-compact-first-item.condo-btn-compact-item-rtl:not(.condo-btn-compact-last-item) {
1974
+ border-top-left-radius: 0;
1975
+ border-bottom-left-radius: 0;
1976
+ }
1977
+ .condo-btn-compact-item-rtl.condo-btn-compact-last-item.condo-btn-compact-item-rtl:not(.condo-btn-compact-first-item) {
1978
+ border-top-right-radius: 0;
1979
+ border-bottom-right-radius: 0;
1980
+ }
1981
+ .condo-btn-compact-item-rtl.condo-btn-sm.condo-btn-compact-first-item.condo-btn-compact-item-rtl.condo-btn-sm:not(.condo-btn-compact-last-item) {
1982
+ border-top-left-radius: 0;
1983
+ border-bottom-left-radius: 0;
1984
+ }
1985
+ .condo-btn-compact-item-rtl.condo-btn-sm.condo-btn-compact-last-item.condo-btn-compact-item-rtl.condo-btn-sm:not(.condo-btn-compact-first-item) {
1986
+ border-top-right-radius: 0;
1987
+ border-bottom-right-radius: 0;
1988
+ }
1989
+ .condo-btn-compact-item-rtl.condo-btn-primary:not([disabled]) + .condo-btn-compact-item-rtl.condo-btn-primary:not([disabled])::after {
1990
+ right: -1px;
1991
+ }
1992
+ .condo-btn-compact-vertical-item:not(.condo-btn-compact-vertical-last-item) {
1993
+ margin-bottom: -1px;
1994
+ }
1995
+ .condo-btn-compact-vertical-item:hover,
1996
+ .condo-btn-compact-vertical-item:focus,
1997
+ .condo-btn-compact-vertical-item:active {
1998
+ z-index: 2;
1999
+ }
2000
+ .condo-btn-compact-vertical-item[disabled] {
2001
+ z-index: 0;
2002
+ }
2003
+ .condo-btn-compact-vertical-item:not(.condo-btn-compact-vertical-first-item):not(.condo-btn-compact-vertical-last-item) {
2004
+ border-radius: 0;
2005
+ }
2006
+ .condo-btn-compact-vertical-item.condo-btn-compact-vertical-first-item {
2007
+ border-bottom-right-radius: 0;
2008
+ border-bottom-left-radius: 0;
2009
+ }
2010
+ .condo-btn-compact-vertical-item.condo-btn-compact-vertical-last-item {
2011
+ border-top-left-radius: 0;
2012
+ border-top-right-radius: 0;
2013
+ }
2014
+ .condo-btn-compact-vertical-item.condo-btn-primary:not([disabled]) + .condo-btn-compact-vertical-item.condo-btn-primary:not([disabled]) {
2015
+ position: relative;
2016
+ }
2017
+ .condo-btn-compact-vertical-item.condo-btn-primary:not([disabled]) + .condo-btn-compact-vertical-item.condo-btn-primary:not([disabled])::after {
2018
+ position: absolute;
2019
+ top: -1px;
2020
+ left: -1px;
2021
+ display: inline-block;
2022
+ width: calc(100% + 1px * 2);
2023
+ height: 1px;
2024
+ background-color: #40a9ff;
2025
+ content: ' ';
2026
+ }
1916
2027
  .condo-btn-rtl {
1917
2028
  direction: rtl;
1918
2029
  }
@@ -1941,6 +2052,7 @@ a.condo-btn-sm {
1941
2052
  font-family: "Open Sans", sans-serif;
1942
2053
  line-height: 24px;
1943
2054
  letter-spacing: -0.01em;
2055
+ margin: 0;
1944
2056
  position: relative;
1945
2057
  text-shadow: none;
1946
2058
  border-radius: 8px;
@@ -2468,6 +2580,7 @@ a.condo-btn-sm {
2468
2580
  z-index: 15;
2469
2581
  justify-content: center;
2470
2582
  margin-right: 15%;
2583
+ margin-bottom: 0;
2471
2584
  margin-left: 15%;
2472
2585
  padding-left: 0;
2473
2586
  list-style: none;
@@ -2486,9 +2599,7 @@ a.condo-btn-sm {
2486
2599
  box-sizing: content-box;
2487
2600
  width: 8px;
2488
2601
  height: 8px;
2489
- margin: 0 2px;
2490
- margin-right: 3px;
2491
- margin-left: 3px;
2602
+ margin: 0 4px;
2492
2603
  padding: 0;
2493
2604
  text-align: center;
2494
2605
  text-indent: -999px;
@@ -2496,6 +2607,7 @@ a.condo-btn-sm {
2496
2607
  transition: all 0.5s;
2497
2608
  }
2498
2609
  .condo-carousel .slick-dots li button {
2610
+ position: relative;
2499
2611
  display: block;
2500
2612
  width: 100%;
2501
2613
  height: 8px;
@@ -2514,6 +2626,14 @@ a.condo-btn-sm {
2514
2626
  .condo-carousel .slick-dots li button:focus {
2515
2627
  opacity: 0.75;
2516
2628
  }
2629
+ .condo-carousel .slick-dots li button::after {
2630
+ position: absolute;
2631
+ top: -4px;
2632
+ right: -4px;
2633
+ bottom: -4px;
2634
+ left: -4px;
2635
+ content: '';
2636
+ }
2517
2637
  .condo-carousel .slick-dots li.slick-active {
2518
2638
  width: 8px;
2519
2639
  }
@@ -2545,7 +2665,7 @@ a.condo-btn-sm {
2545
2665
  .condo-carousel-vertical .slick-dots li {
2546
2666
  width: 8px;
2547
2667
  height: 8px;
2548
- margin: 4px 2px;
2668
+ margin: 4px 0;
2549
2669
  vertical-align: baseline;
2550
2670
  }
2551
2671
  .condo-carousel-vertical .slick-dots li button {
@@ -2655,3 +2775,272 @@ a.condo-btn-sm {
2655
2775
  overflow: hidden;
2656
2776
  }
2657
2777
 
2778
+ .condo-typography {
2779
+ color: #222;
2780
+ word-break: break-word;
2781
+ }
2782
+ .condo-typography,
2783
+ .condo-typography-large {
2784
+ margin: 0;
2785
+ font-weight: 400;
2786
+ font-size: 16px;
2787
+ font-family: "Open Sans", sans-serif;
2788
+ line-height: 24px;
2789
+ letter-spacing: -0.01em;
2790
+ }
2791
+ .condo-typography-medium {
2792
+ margin: 0;
2793
+ font-weight: 400;
2794
+ font-size: 14px;
2795
+ font-family: "Open Sans", sans-serif;
2796
+ line-height: 22px;
2797
+ letter-spacing: -0.01em;
2798
+ }
2799
+ .condo-typography-small {
2800
+ margin: 0;
2801
+ font-weight: 400;
2802
+ font-size: 12px;
2803
+ font-family: "Open Sans", sans-serif;
2804
+ line-height: 20px;
2805
+ letter-spacing: -0.01em;
2806
+ }
2807
+ .condo-typography-secondary {
2808
+ color: #707695;
2809
+ }
2810
+ .condo-typography-inverted {
2811
+ color: #fff;
2812
+ }
2813
+ .condo-typography-info {
2814
+ color: #2696f3;
2815
+ }
2816
+ .condo-typography-success {
2817
+ color: #39ce66;
2818
+ }
2819
+ .condo-typography-warning {
2820
+ color: #ff9500;
2821
+ }
2822
+ .condo-typography-danger {
2823
+ color: #ff3b30;
2824
+ }
2825
+ .condo-typography-disabled {
2826
+ cursor: not-allowed;
2827
+ opacity: 0.5;
2828
+ -webkit-user-select: none;
2829
+ -moz-user-select: none;
2830
+ -ms-user-select: none;
2831
+ user-select: none;
2832
+ }
2833
+ .condo-typography u,
2834
+ .condo-typography ins {
2835
+ text-decoration: underline;
2836
+ -webkit-text-decoration-skip: ink;
2837
+ text-decoration-skip-ink: auto;
2838
+ text-decoration-thickness: 1px;
2839
+ }
2840
+ .condo-typography s,
2841
+ .condo-typography del {
2842
+ text-decoration: line-through;
2843
+ text-decoration-thickness: 1px;
2844
+ }
2845
+ .condo-typography strong {
2846
+ font-weight: 600;
2847
+ }
2848
+ .condo-typography code {
2849
+ box-sizing: border-box;
2850
+ margin: 0 0.2em;
2851
+ padding: 0.25em 0.4em;
2852
+ font-size: 95%;
2853
+ font-family: "Noto Sans Mono", monospace;
2854
+ background: #f2f4f6;
2855
+ border: 1px solid #e1e5ed;
2856
+ border-radius: 4px;
2857
+ }
2858
+ div.condo-typography:not(:last-of-type),
2859
+ .condo-typography p:not(:last-of-type) {
2860
+ margin-bottom: 16px;
2861
+ }
2862
+ div.condo-typography:not(:last-of-type).condo-typography-medium,
2863
+ .condo-typography p:not(:last-of-type).condo-typography-medium {
2864
+ margin-bottom: 14px;
2865
+ }
2866
+ div.condo-typography:not(:last-of-type).condo-typography-small,
2867
+ .condo-typography p:not(:last-of-type).condo-typography-small {
2868
+ margin-bottom: 12px;
2869
+ }
2870
+ h1.condo-typography,
2871
+ div.condo-typography-h1,
2872
+ div.condo-typography-h1 > textarea,
2873
+ .condo-typography h1 {
2874
+ font-weight: 700;
2875
+ font-size: 38px;
2876
+ font-family: "Open Sans", sans-serif;
2877
+ line-height: 46px;
2878
+ letter-spacing: -0.01em;
2879
+ margin: 0;
2880
+ }
2881
+ h2.condo-typography,
2882
+ div.condo-typography-h2,
2883
+ div.condo-typography-h2 > textarea,
2884
+ .condo-typography h2 {
2885
+ font-weight: 700;
2886
+ font-size: 24px;
2887
+ font-family: "Open Sans", sans-serif;
2888
+ line-height: 32px;
2889
+ letter-spacing: -0.01em;
2890
+ margin: 0;
2891
+ }
2892
+ h3.condo-typography,
2893
+ div.condo-typography-h3,
2894
+ div.condo-typography-h3 > textarea,
2895
+ .condo-typography h3 {
2896
+ font-weight: 700;
2897
+ font-size: 20px;
2898
+ font-family: "Open Sans", sans-serif;
2899
+ line-height: 28px;
2900
+ letter-spacing: -0.01em;
2901
+ margin: 0;
2902
+ }
2903
+ h4.condo-typography,
2904
+ div.condo-typography-h4,
2905
+ div.condo-typography-h4 > textarea,
2906
+ .condo-typography h4 {
2907
+ font-weight: 600;
2908
+ font-size: 16px;
2909
+ font-family: "Open Sans", sans-serif;
2910
+ line-height: 24px;
2911
+ letter-spacing: -0.01em;
2912
+ margin: 0;
2913
+ }
2914
+ h5.condo-typography,
2915
+ div.condo-typography-h5,
2916
+ div.condo-typography-h5 > textarea,
2917
+ .condo-typography h5 {
2918
+ font-weight: 600;
2919
+ font-size: 14px;
2920
+ font-family: "Open Sans", sans-serif;
2921
+ line-height: 22px;
2922
+ letter-spacing: -0.01em;
2923
+ margin: 0;
2924
+ }
2925
+ h6.condo-typography,
2926
+ div.condo-typography-h6,
2927
+ div.condo-typography-h6 > textarea,
2928
+ .condo-typography h6 {
2929
+ font-weight: 600;
2930
+ font-size: 12px;
2931
+ font-family: "Open Sans", sans-serif;
2932
+ line-height: 20px;
2933
+ letter-spacing: -0.01em;
2934
+ margin: 0;
2935
+ }
2936
+ a.condo-typography-ellipsis,
2937
+ span.condo-typography-ellipsis {
2938
+ display: inline-block;
2939
+ max-width: 100%;
2940
+ }
2941
+ a.condo-typography,
2942
+ .condo-typography a {
2943
+ color: #222;
2944
+ text-decoration: underline;
2945
+ text-underline-offset: 0.2em;
2946
+ text-decoration-thickness: 1px;
2947
+ -webkit-text-decoration-color: #707695;
2948
+ text-decoration-color: #707695;
2949
+ outline: none;
2950
+ cursor: pointer;
2951
+ transition-duration: 0.15s;
2952
+ transition-property: color, -webkit-text-decoration-color;
2953
+ transition-property: color, text-decoration-color;
2954
+ transition-property: color, text-decoration-color, -webkit-text-decoration-color;
2955
+ }
2956
+ a.condo-typography.focus-visible,
2957
+ .condo-typography a.focus-visible,
2958
+ a.condo-typography:hover,
2959
+ .condo-typography a:hover {
2960
+ color: #39ce66;
2961
+ -webkit-text-decoration-color: #39ce66;
2962
+ text-decoration-color: #39ce66;
2963
+ }
2964
+ a.condo-typography:focus-visible,
2965
+ .condo-typography a:focus-visible,
2966
+ a.condo-typography:hover,
2967
+ .condo-typography a:hover {
2968
+ color: #39ce66;
2969
+ -webkit-text-decoration-color: #39ce66;
2970
+ text-decoration-color: #39ce66;
2971
+ }
2972
+ a.condo-typography:active,
2973
+ .condo-typography a:active {
2974
+ color: #39ce66;
2975
+ opacity: 0.8;
2976
+ -webkit-text-decoration-color: #39ce66;
2977
+ text-decoration-color: #39ce66;
2978
+ }
2979
+ a.condo-typography:not(.condo-typography-large):not(.condo-typography-medium):not(.condo-typography-small),
2980
+ .condo-typography a:not(.condo-typography-large):not(.condo-typography-medium):not(.condo-typography-small) {
2981
+ font-size: inherit;
2982
+ }
2983
+ a.condo-typography[disabled],
2984
+ .condo-typography a[disabled],
2985
+ a.condo-typography.condo-typography-disabled,
2986
+ .condo-typography a.condo-typography-disabled,
2987
+ a.condo-typography[disabled].focus-visible,
2988
+ .condo-typography a[disabled].focus-visible,
2989
+ a.condo-typography.condo-typography-disabled.focus-visible,
2990
+ .condo-typography a.condo-typography-disabled.focus-visible,
2991
+ a.condo-typography[disabled]:hover,
2992
+ .condo-typography a[disabled]:hover,
2993
+ a.condo-typography.condo-typography-disabled:hover,
2994
+ .condo-typography a.condo-typography-disabled:hover,
2995
+ a.condo-typography[disabled]:active,
2996
+ .condo-typography a[disabled]:active,
2997
+ a.condo-typography.condo-typography-disabled:active,
2998
+ .condo-typography a.condo-typography-disabled:active {
2999
+ color: #222;
3000
+ cursor: not-allowed;
3001
+ opacity: 0.5;
3002
+ pointer-events: none;
3003
+ }
3004
+ a.condo-typography[disabled],
3005
+ .condo-typography a[disabled],
3006
+ a.condo-typography.condo-typography-disabled,
3007
+ .condo-typography a.condo-typography-disabled,
3008
+ a.condo-typography[disabled].focus-visible,
3009
+ .condo-typography a[disabled].focus-visible,
3010
+ a.condo-typography.condo-typography-disabled.focus-visible,
3011
+ .condo-typography a.condo-typography-disabled.focus-visible,
3012
+ a.condo-typography[disabled]:hover,
3013
+ .condo-typography a[disabled]:hover,
3014
+ a.condo-typography.condo-typography-disabled:hover,
3015
+ .condo-typography a.condo-typography-disabled:hover,
3016
+ a.condo-typography[disabled]:active,
3017
+ .condo-typography a[disabled]:active,
3018
+ a.condo-typography.condo-typography-disabled:active,
3019
+ .condo-typography a.condo-typography-disabled:active {
3020
+ color: #222;
3021
+ cursor: not-allowed;
3022
+ opacity: 0.5;
3023
+ pointer-events: none;
3024
+ }
3025
+ a.condo-typography[disabled],
3026
+ .condo-typography a[disabled],
3027
+ a.condo-typography.condo-typography-disabled,
3028
+ .condo-typography a.condo-typography-disabled,
3029
+ a.condo-typography[disabled]:focus-visible,
3030
+ .condo-typography a[disabled]:focus-visible,
3031
+ a.condo-typography.condo-typography-disabled:focus-visible,
3032
+ .condo-typography a.condo-typography-disabled:focus-visible,
3033
+ a.condo-typography[disabled]:hover,
3034
+ .condo-typography a[disabled]:hover,
3035
+ a.condo-typography.condo-typography-disabled:hover,
3036
+ .condo-typography a.condo-typography-disabled:hover,
3037
+ a.condo-typography[disabled]:active,
3038
+ .condo-typography a[disabled]:active,
3039
+ a.condo-typography.condo-typography-disabled:active,
3040
+ .condo-typography a.condo-typography-disabled:active {
3041
+ color: #222;
3042
+ cursor: not-allowed;
3043
+ opacity: 0.5;
3044
+ pointer-events: none;
3045
+ }
3046
+