Skip to content

Commit 9c478c5

Browse files
authored
Merge pull request #55 from SimplyEdit/feature/component-boxes
Feature/component boxes
2 parents 191ae0b + ebbc1ef commit 9c478c5

File tree

24 files changed

+1069
-1001
lines changed

24 files changed

+1069
-1001
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"id":"font-cocon","description":""}
1+
{"id":"font-cocon","description":"Cocon Regular font (simply logo font)"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"id":"0-ds-styling","description":""}
1+
{"id":"0-ds-styling","description":"DS base styling"}
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
@import url('https://fonts.googleapis.com/css?family=Alegreya+Sans:400,400i,700,700i');
22

33
html, body {
4-
margin: 0;
5-
padding: 0;
6-
width: 100%;
4+
margin: 0;
5+
padding: 0;
6+
width: 100%;
77
}
88
main {
9-
padding: 0px 15px;
9+
padding: 0px 15px;
1010
}
1111
[data-simply-command] {
12-
cursor: pointer; /* Dear iOS, why don't you have a click event when the cursor is not a pointer? */
12+
cursor: pointer; /* Dear iOS, why don't you have a click event when the cursor is not a pointer? */
1313
}
1414
textarea {
15-
width: 100%;
16-
height: 120px;
17-
color: #e0e0e0;
18-
background-color: #151515;
19-
border: 0;
20-
padding: 10px;
15+
width: 100%;
16+
height: 120px;
17+
color: #e0e0e0;
18+
background-color: #151515;
19+
border: 0;
20+
padding: 10px;
2121
}
2222
input:not([type]),
2323
input[type=text] {
24-
color: #e0e0e0;
25-
background-color: #151515;
26-
border: 0;
27-
padding: 5px;
24+
color: #e0e0e0;
25+
background-color: #151515;
26+
border: 0;
27+
padding: 5px;
2828
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
:root {
2+
--simplycode-component-list-spacing-row: calc(0.5 * var(--ds-spacing));
3+
--simplycode-component-list-spacing-column: calc(0.5 * var(--ds-spacing));
4+
--simplycode-component-list-min-colwidth: 10rem;
5+
--simplycode-component-list-item-font-size: calc(0.9 * var(--ds-font-size));
6+
--simplycode-component-list-item-background: var(--ds-grey-90);
7+
--simplycode-component-list-item-background-active: var(--ds-grey-80);
8+
--simplycode-component-list-item-color: inherit;
9+
--simplycode-component-list-item-color-active: inherit;
10+
--simplycode-component-list-item-min-height: 4rem;
11+
}
12+
13+
.simplycode-component-list {
14+
display: grid;
15+
grid-column-gap: var(--simplycode-component-list-spacing-column);
16+
grid-row-gap: var(--simplycode-component-list-spacing-row);
17+
grid-template-columns: repeat(auto-fit, minmax(var(--simplycode-component-list-min-colwidth), 1fr));
18+
19+
font-size: var(--simplycode-component-list-item-font-size);
20+
line-height: 1.6em;
21+
margin-bottom: var(--simplycode-component-list-spacing-column);
22+
}
23+
.simplycode-component-list-item {
24+
background-color: var(--simplycode-component-list-item-background);
25+
padding: calc(0.5 * var(--simplycode-component-list-spacing-column));
26+
display: flex;
27+
flex-direction: column;
28+
flex: 1 1 0;
29+
min-height: var(--simplycode-component-list-item-min-height);
30+
}
31+
32+
.simplycode-component-list-item,
33+
a.simplycode-component-list-item,
34+
a.simplycode-component-list-item * {
35+
text-decoration: none;
36+
color: var(--simplycode-component-list-item-color);
37+
}
38+
.simplycode-component-list-item:hover,
39+
a.simplycode-component-list-item:hover,
40+
a.simplycode-component-list-item:active {
41+
background-color: var(--simplycode-component-list-item-background-active);
42+
color: var(--simplycode-component-list-item-color-active);
43+
}
44+
45+
.simplycode-component-list-item > :first-child {
46+
margin-top: 0;
47+
}
48+
.simplycode-component-list-item > :last-child {
49+
margin-bottom: 0;
50+
}

www/api/data/components/1-styling/componentCss/simplycode-ds-mapping.css

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
11
/* simplycode-ds-core-colors */
22
:root {
3-
--ds-simplycode: #ae47ff;
4-
--ds-simplycode-light:#c880ff;
5-
--ds-simplycode-dark:#8d00f8;
6-
--ds-simplycode-bump:#b65cfc;
7-
--ds-simplycode-contrast: var(--ds-white);
8-
--ds-simplycode-gradient: linear-gradient( 180deg, var(--ds-simplycode-light), var(--ds-simplycode-dark) );
9-
--ds-simplycode-gradient-bump: linear-gradient( 180deg, var(--ds-simplycode-bump), var(--ds-simplycode-light) 95%, var(--ds-simplycode-dark) 100%);
10-
11-
--ds-primary: var(--ds-simplycode);
12-
--ds-primary-dark: var(--ds-simplycode-dark);
13-
--ds-primary-contrast: var(--ds-white);
14-
--ds-primary-light: var(--ds-simplycode-light);
15-
--ds-primary-gradient: var(--ds-simplycode-gradient);
16-
--ds-primary-gradient-bump: var(--ds-simplycode-gradient-bump);
3+
--ds-primary: var(--simplycode-highlight-light);
4+
--ds-primary-dark: var(--simplycode-highlight-dark);
5+
--ds-primary-contrast: var(--simplycode-highlight-color);
6+
--ds-primary-light: var(--simplycode-highlight-light);
7+
--ds-primary-gradient: var(--simplycode-highlight-gradient);
8+
--ds-primary-bump: #b65cfc;
9+
--ds-primary-gradient-bump: linear-gradient( 180deg, var(--ds-primary-bump), var(--simplycode-highlight-light) 95%, var(--simplycode-highlight-dark) 100%);
1710

1811
--ds-support: #06CC06;
1912
--ds-support-dark: #05BB05;

0 commit comments

Comments
 (0)