Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 82847a8

Browse files
style: font size BIGGER
1 parent 71ca251 commit 82847a8

File tree

5 files changed

+112
-52
lines changed

5 files changed

+112
-52
lines changed

studio/src/app/pages/app-editor/app-editor.scss

Lines changed: 3 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
@import "../../../global/theme/editor/editor-deck";
2+
@import "../../../global/theme/editor/editor-deck-fonts";
3+
14
app-editor {
25
main {
36
position: relative;
@@ -9,51 +12,6 @@ app-editor {
912
margin: auto;
1013

1114
overflow: hidden;
12-
13-
deckgo-deck {
14-
--background: white;
15-
--color: black;
16-
--padding-end: 64px;
17-
18-
--slide-user-select: text;
19-
20-
h1, h2, h3, p {
21-
width: 100%;
22-
overflow: hidden;
23-
24-
border-radius: 2px;
25-
border: 1px solid var(--ion-color-light);
26-
27-
padding: 8px;
28-
29-
&:focus {
30-
outline: 0;
31-
box-shadow: 0 0 0 3px rgba(var(--ion-color-primary-rgb), .5);
32-
}
33-
}
34-
35-
h1 {
36-
min-height: calc(var(--font-size-h1) + 4px);
37-
}
38-
39-
h2 {
40-
min-height: calc(var(--font-size-h2) + 4px);
41-
}
42-
43-
h3 {
44-
min-height: calc(var(--font-size-h3) + 4px);
45-
}
46-
47-
p {
48-
min-height: calc(var(--font-size-normal) + 4px);
49-
}
50-
51-
deckgo-slide-split {
52-
p {
53-
height: fit-content;
54-
}
55-
}
56-
}
5715
}
5816

5917
deckgo-inline-editor {

studio/src/components.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
import '@stencil/core';
99

1010
import '@ionic/core';
11-
import 'ionicons';
1211
import 'deckdeckgo';
1312
import 'deckdeckgo-inline-editor';
13+
import 'ionicons';
1414
import {
1515
EventEmitter,
1616
} from '@stencil/core';
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
// Synchro with https://github.com/deckgo/deckdeckgo-starter/blob/master/src/css/font.css
2+
3+
deckgo-deck {
4+
*, h3, h4, h5, h6 {
5+
font-weight: 300;
6+
}
7+
8+
a, strong {
9+
font-weight: 500;
10+
}
11+
12+
h1, h2 {
13+
text-transform: uppercase;
14+
}
15+
16+
h1 {
17+
font-size: 3em;
18+
}
19+
20+
h2 {
21+
font-size: 2em;
22+
}
23+
24+
h3 {
25+
font-size: 1.4em;
26+
}
27+
28+
h1, h2, h3, h4, h5, h6 {
29+
max-width: 100%
30+
}
31+
32+
--code-font-size: 10px;
33+
--code-font-family: Menlo, monospace;
34+
35+
--pager-text-size: 0.6rem;
36+
37+
ion-label, ion-label[text-wrap].sc-ion-label-md-h, p {
38+
font-size: 1em;
39+
}
40+
}
41+
42+
// 1200 and not 992 because of menu
43+
@media(min-width: 1200px) {
44+
deckgo-deck {
45+
font-size: 32px;
46+
--code-font-size: 24px;
47+
48+
ion-label, ion-label[text-wrap].sc-ion-label-md-h, p {
49+
font-size: 32px;
50+
}
51+
}
52+
}
53+
54+
@media(max-width: 768px) {
55+
deckgo-deck {
56+
h1 {
57+
font-size: 2.4em;
58+
}
59+
60+
h3 {
61+
font-size: 1.2em;
62+
}
63+
}
64+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
deckgo-deck {
2+
--background: white;
3+
--color: black;
4+
--padding-end: 64px;
5+
6+
--slide-user-select: text;
7+
8+
h1, h2, h3, p {
9+
width: 100%;
10+
overflow: hidden;
11+
12+
border-radius: 2px;
13+
border: 1px solid var(--ion-color-light);
14+
15+
padding: 8px;
16+
17+
&:focus {
18+
outline: 0;
19+
box-shadow: 0 0 0 3px rgba(var(--ion-color-primary-rgb), .5);
20+
}
21+
}
22+
23+
h1 {
24+
min-height: calc(var(--font-size-h1) + 4px);
25+
}
26+
27+
h2 {
28+
min-height: calc(var(--font-size-h2) + 4px);
29+
}
30+
31+
h3 {
32+
min-height: calc(var(--font-size-h3) + 4px);
33+
}
34+
35+
p {
36+
min-height: calc(var(--font-size-normal) + 4px);
37+
}
38+
39+
deckgo-slide-split {
40+
p {
41+
height: fit-content;
42+
}
43+
}
44+
}

studio/src/global/theme/fonts.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@
1212
--font-size-h3: 17px;
1313
}
1414

15-
* {
16-
// Fonts
17-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
18-
--ion-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
19-
}
20-
2115
h1,
2216
h1 a {
2317
font-size: var(--font-size-h1);

0 commit comments

Comments
 (0)