Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Commit 0473608

Browse files
authored
Work on the components (#10)
* Remove redeclaration to resolve issues * Add handlers for the button-component accordingly to the issue #6. * Update some css files * Add some modifier to the button components * Add some modifiers to the group component * Change some property cases * Update some of the components
1 parent 916d256 commit 0473608

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1618
-3037
lines changed

Dependencies/dist/all.css

Lines changed: 666 additions & 413 deletions
Large diffs are not rendered by default.
Lines changed: 48 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,83 @@
1-
:root {
2-
3-
--buttonPadding: 10px 24px 10px 24px;
4-
--buttonBorderColor: 5;
5-
--buttonBorderWidth: 1px;
6-
--buttonBorderRadius: 5px;
7-
--buttonFontSize: 14px;
8-
--buttonFontWeight: normal;
9-
--buttonLineHeight: 1.2rem;
10-
}
1+
/**
2+
button component
3+
*/
114

125
.button {
13-
14-
display: inline-block;
15-
width: 100%;
16-
padding: var(--buttonPadding);
17-
border: var(--buttonBorderWidth) solid transparent;
18-
border-radius: var(--buttonBorderRadius);
19-
font-size: var(--buttonFontSize);
20-
font-weight: var(--buttonFontWeight);
21-
line-height: var(--buttonLineHeight);
6+
display: inline-flex;
7+
flex-direction: row;
8+
align-items: center;
9+
justify-content: center;
10+
padding-top: var(--buttonPaddingY);
11+
padding-right: var(--buttonPaddingX);
12+
padding-bottom: var(--buttonPaddingY);
13+
padding-left: var(--buttonPaddingX);
14+
font-family: var(--textFontFamily);
15+
font-size: 16px;
2216
text-decoration: none;
17+
border-width: var(--buttonBorderWidth);
18+
border-style: solid;
2319
cursor: pointer;
20+
-webkit-user-select: none;
21+
}
22+
23+
.button:hover {
24+
filter: brightness(90%) saturate(90%);
2425
}
2526

2627
.button.style\:primary {
27-
2828
color: var(--whiteColor);
2929
background-color: var(--primaryColor);
30-
}
31-
32-
.button.style\:primary:hover {
33-
34-
background-color: var(--primaryDarkColor);
30+
border-color: var(--primaryColor);
3531
}
3632

3733
.button.style\:secondary {
38-
3934
color: var(--whiteColor);
4035
background-color: var(--secondaryColor);
41-
}
42-
43-
.button.style\:secondary:hover {
44-
45-
background-color: var(--secondaryDarkColor);
36+
border-color: var(--secondaryColor);
4637
}
4738

4839
.button.style\:outline {
49-
5040
color: var(--secondaryColor);
5141
background-color: transparent;
5242
border-color: var(--secondaryColor);
5343
}
5444

55-
.button.style\:outline:hover {
56-
57-
color: var(--whiteColor);
58-
background-color: var(--secondaryDarkColor);
59-
border-color: transparent;
45+
.button.size\:full {
46+
width: 100%;
6047
}
6148

62-
.button.style\:ghost {
63-
64-
color: var(--blackColor);
65-
background-color: transparent;
49+
.button.size\:large {
50+
width: 75%;
6651
}
6752

68-
.button i {
69-
70-
padding: 0px 10px 0px 10px;
53+
.button.size\:medium {
54+
width: 50%;
7155
}
7256

73-
.group {
74-
75-
display: inline-flex;
76-
flex-direction: row;
77-
align-items: center;
57+
.button.size\:small {
58+
width: 25%;
59+
}
60+
61+
.button.shape\:smallrounded {
62+
border-radius: 5px;
63+
}
64+
65+
.button.shape\:largerounded {
66+
border-radius: 10px;
67+
}
68+
69+
.button.shape\:fullrounded {
70+
border-radius: 25px;
7871
}
7972

80-
.group > .button {
81-
82-
border-radius: 0;
73+
.button.shape\:circle {
74+
border-radius: 50%;
8375
}
8476

85-
.group > .button:first-child {
86-
87-
border-top-left-radius: 5px;
88-
border-bottom-left-radius: 5px;
77+
.button > .symbol + * {
78+
margin-left: 15px;
8979
}
9080

91-
.group > .button:last-child {
92-
93-
border-top-right-radius: 5px;
94-
border-bottom-right-radius: 5px;
81+
.button > * + .symbol {
82+
margin-left: 15px;
9583
}
Lines changed: 36 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,44 @@
1-
:root {
2-
3-
--collectionItemHeight: 200px;
4-
--collectionGapSize: 35px;
5-
}
1+
/**
2+
collection component
3+
*/
64

75
.collection {
8-
96
display: grid;
10-
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
11-
grid-auto-rows: 1fr;
12-
grid-gap: var(--collectionGapSize);
7+
gap: var(--collectionGapSize);
138
}
149

1510
.collection-item {
11+
overflow: hidden;
12+
}
13+
14+
.collection.style\:grid > .collection-item {
1615

17-
height: var(--collectionItemHeight);
16+
border-width: var(--collectionBorderWidth);
17+
border-style: solid;
18+
border-color: var(--collectionBorderColor);
19+
border-radius: var(--collectionBorderRadius);
20+
}
21+
22+
.collection.style\:carousel {
23+
24+
}
25+
26+
.collection.ratio\:50 {
27+
grid-template-columns: repeat(2, 1fr);
28+
}
29+
30+
.collection.ratio\:33 {
31+
grid-template-columns: repeat(3, 1fr);
32+
}
33+
34+
.collection.ratio\:25 {
35+
grid-template-columns: repeat(4, 1fr);
36+
}
37+
38+
.collection.ratio\:20 {
39+
grid-template-columns: repeat(5, 1fr);
40+
}
41+
42+
.collection.ratio\:15 {
43+
grid-template-columns: repeat(6, 1fr);
1844
}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
:root {
2-
3-
--dividerColor: #FFFFFF;
4-
}
1+
/**
2+
divider component
3+
*/
54

65
.divider {
7-
8-
width: 100%;
96
display: block;
7+
margin-top: 5px;
8+
margin-bottom: 5px;
9+
width: 100%;
1010
background-color: var(--dividerColor);
1111
}

0 commit comments

Comments
 (0)