pangea-lib 1.1.0 → 1.2.1

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.
@@ -1,40 +1,74 @@
1
+ break-word()
2
+ word-break break-word
3
+ word-wrap break-word
4
+
1
5
  padding-y()
2
- padding-top arguments
3
- padding-bottom arguments
6
+ const argumentsNum = length(arguments)
7
+ if argumentsNum == 1
8
+ padding-top arguments[0]
9
+ padding-bottom arguments[0]
10
+ if argumentsNum == 2
11
+ padding-top arguments[0]
12
+ padding-bottom arguments[1]
4
13
 
5
14
  padding-x()
6
- padding-left arguments
7
- padding-right arguments
15
+ const argumentsNum = length(arguments)
16
+ if argumentsNum == 1
17
+ padding-left arguments[0]
18
+ padding-right arguments[0]
19
+ if argumentsNum == 2
20
+ padding-left arguments[0]
21
+ padding-right arguments[1]
8
22
 
9
23
  margin-y()
10
- margin-top arguments
11
- margin-bottom arguments
24
+ const argumentsNum = length(arguments)
25
+ if argumentsNum == 1
26
+ margin-top arguments[0]
27
+ margin-bottom arguments[0]
28
+ if argumentsNum == 2
29
+ margin-top arguments[0]
30
+ margin-bottom arguments[1]
12
31
 
13
32
  margin-x()
14
- margin-left arguments
15
- margin-right arguments
33
+ const argumentsNum = length(arguments)
34
+ if argumentsNum == 1
35
+ margin-left arguments[0]
36
+ margin-right arguments[0]
37
+ if argumentsNum == 2
38
+ margin-left arguments[0]
39
+ margin-right arguments[1]
16
40
 
17
- flexbox(_flex-direction = row, _justify-content = center, _align-items = center, _gap = 0, _flex-wrap = nowrap)
18
- display flex
19
- flex-direction _flex-direction
20
- justify-content _justify-content
21
- align-items _align-items
22
- gap _gap
23
- flex-wrap _flex-wrap
41
+ height-and-width($heightSize, $widthSize = false)
42
+ height $heightSize
43
+ min-height $heightSize
44
+ if $widthSize
45
+ width $widthSize
46
+ min-width $widthSize
47
+ else
48
+ width $heightSize
49
+ min-width $heightSize
24
50
 
25
- flexbox-column()
26
- display flex
27
- flex-direction column
28
- justify-content flex-start
29
- align-items stretch
30
- gap 1rem
51
+ rounded-item($size)
52
+ height $size
53
+ width $size
54
+ border-radius 100%
31
55
 
32
- flexbox-row()
56
+ flex($flexDirection = row, $justifyContent = flex-start, $alignItems = stretch, $gap = 0, $flexWrap = nowrap)
33
57
  display flex
34
- flex-direction row
35
- justify-content flex-start
36
- align-items center
37
- gap 0.5rem
58
+ flex-direction $flexDirection
59
+ justify-content $justifyContent
60
+ align-items $alignItems
61
+ gap $gap
62
+ flex-wrap $flexWrap
63
+
64
+ flex-center()
65
+ flex(row, center, center)
66
+
67
+ flex-column()
68
+ flex(column, flex-start, stretch, 1rem)
69
+
70
+ flex-row()
71
+ flex(row, flex-start, center, 0.5rem)
38
72
 
39
- shadow(_blur, _color)
40
- box-shadow 0 0 _blur _color;
73
+ shadow($blur = 1rem, $color = rgba(0, 0, 0, 0.2))
74
+ box-shadow 0 0 $blur $color
@@ -1,48 +1,64 @@
1
1
  // // BREAKPOINTS
2
- // Large desktops
3
- // no breakpoint since this is the default
4
- // Desktops
5
- $largeDevicesBreakpoint = 1200px
6
- // Tablets
7
- $mediumDevicesBreakpoint = 992px
8
- // Landscape phones
9
- $smallDevicesBreakpoint = 768px
10
- // Portrait phones
11
- $extraSmallDevicesBreakpoint = 576px
2
+ // Large desktops
3
+ // no breakpoint since this is the default
4
+ // Desktops
5
+ $largeDevicesBreakpoint = 1200px
6
+ // Tablets
7
+ $mediumDevicesBreakpoint = 992px
8
+ // Landscape phones
9
+ $smallDevicesBreakpoint = 768px
10
+ // Portrait phones
11
+ $extraSmallDevicesBreakpoint = 576px
12
12
 
13
13
  // // FONT
14
- // size
15
- $fontSizeXXXXL = 1.5rem
16
- $fontSizeXXXL = 1.4rem
17
- $fontSizeXXL = 1.3rem
18
- $fontSizeXL = 1.2rem
19
- $fontSizeL = 1.1rem
20
- $fontSizeM = 1rem
21
- $fontSizeS = 0.9rem
22
- $fontSizeXS = 0.8rem
14
+ // family
15
+ $titleFontFamily = 'Antic Didone'
16
+ $normalFontFamily = Alike
17
+ // size
18
+ $fontSizeXXXXL = 1.5rem
19
+ $fontSizeXXXL = 1.4rem
20
+ $fontSizeXXL = 1.3rem
21
+ $fontSizeXL = 1.2rem
22
+ $fontSizeL = 1.1rem
23
+ $fontSizeM = 1rem
24
+ $fontSizeS = 0.9rem
25
+ $fontSizeXS = 0.8rem
26
+ $fontSizeXXS = 0.7rem
27
+ $fontSizeXXXS = 0.6rem
23
28
 
24
29
  // // COLORS
25
- // light
26
- $primaryLightColor = #000000
27
- $secondaryLightColor = #777777
28
- $tertiaryLightColor = #9B9B9B
29
- $bgPrimaryLightColor = #ffffff
30
- $bgSecondaryLightColor = #efefef
31
- $bgTertiaryLightColor = #ddd
32
- // dark
33
- $primaryDarkColor = rgba(255, 255, 255, 0.9)
34
- $secondaryDarkColor = rgba(215, 215, 215, 0.75)
35
- $tertiaryDarkColor = rgba(175, 175, 175, 0.6)
36
- $bgPrimaryDarkColor = #1a1a1a
37
- $bgSecondaryDarkColor = #242424
38
- $bgTertiaryDarkColor = #5e5e5e
39
- // unique
40
- $successColor = #95CD41
41
- $warningColor = #FFBD35
42
- $dangerColor = #FF5959
43
- $darkColor = #1E1E1E
44
- $lightColor = #F0F0F0
45
- $redColor = #DE4795
46
- $purpleColor = #7746DB
47
- $skyColor = #1AB8C3
48
- $beigeColor = rgba(#FDF5E6, 0.5)
30
+ // light
31
+ $primaryLightColor = #000000
32
+ $secondaryLightColor = #585858
33
+ $tertiaryLightColor = #9B9B9B
34
+ $primaryLightBackgroundColor = #ffffff
35
+ $secondaryLightBackgroundColor = #efefef
36
+ $tertiaryLightBackgroundColor = #ddd
37
+ // dark
38
+ $primaryDarkColor = rgba(255, 255, 255, 0.9)
39
+ $secondaryDarkColor = rgba(215, 215, 215, 0.75)
40
+ $tertiaryDarkColor = rgba(175, 175, 175, 0.6)
41
+ $primaryDarkBackgroundColor = #1a1a1a
42
+ $secondaryDarkBackgroundColor = #242424
43
+ $tertiaryDarkBackgroundColor = #5e5e5e
44
+ // unique
45
+ $firstColor = #218c5a
46
+ $secondColor = #218c5a
47
+ $successColor = #95CD41
48
+ $warningColor = #FFBD35
49
+ $dangerColor = #FF5959
50
+ $darkColor = #1E1E1E
51
+ $lightColor = #F0F0F0
52
+ $redColor = #DE4795
53
+ $purpleColor = #7746DB
54
+ $skyColor = #1AB8C3
55
+ $beigeColor = #FDF5E6
56
+ $linkColor = #0064FF
57
+ $infoColor = #54B4D3
58
+ $errorColor = rgba(225, 21, 21, 0.912)
59
+
60
+ // // APP
61
+ $headerHeight = 5rem
62
+ $sidebarWidth = 15rem
63
+ $clientMainPagePaddingY = 1rem
64
+ $clientMainPagePaddingX = 1.5rem