Skip to content

Commit caef599

Browse files
committed
Style content
1 parent 85f3213 commit caef599

File tree

5 files changed

+95
-61
lines changed

5 files changed

+95
-61
lines changed

resources/css/app.css

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,14 @@
55

66
@plugin '@tailwindcss/forms';
77

8+
@import "./variables.css";
9+
810
@import "./typography.css";
11+
@import "./utilities.css";
912
@import "./forms.css";
1013
@import "./buttons.css";
1114
@import "./content.css";
1215

13-
@theme {
14-
--font-text: "Arial", sans-serif;
15-
--font-heading: "Arial", sans-serif;
16-
17-
--breakpoint-xs: 321px;
18-
--breakpoint-sm: 451px;
19-
--breakpoint-md: 671px;
20-
--breakpoint-lg: 769px;
21-
--breakpoint-xl: 1025px;
22-
--breakpoint-2xl: 1281px;
23-
--breakpoint-3xl: 1441px;
24-
--breakpoint-4xl: 1901px;
25-
26-
--color-brand-50: #f3f6fb;
27-
--color-brand-100: #e5e9f4;
28-
--color-brand-200: #d0d9ed;
29-
--color-brand-300: #b0c0e0;
30-
--color-brand-400: #8a9fd0;
31-
--color-brand-500: #6a7fc1;
32-
--color-brand-600: #5b6bb5;
33-
--color-brand-700: #505aa5;
34-
--color-brand-800: #464c87;
35-
--color-brand-900: #3c416c;
36-
--color-brand-950: #282a43;
37-
}
38-
3916
@layer base {
4017
#app {
4118
@apply h-full;

resources/css/content.css

Lines changed: 57 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,114 @@
11
@utility content {
2-
@apply text-neutral-700;
2+
strong {
3+
@apply font-bold;
4+
}
35

46
h1,
57
h2,
68
h3,
79
h4,
810
h5,
911
h6 {
10-
@apply font-heading font-bold text-neutral-900;
12+
@apply heading;
1113
}
1214

1315
h1 {
14-
@apply text-4xl md:text-5xl;
16+
@apply h1;
1517
}
1618

1719
h2 {
18-
@apply text-3xl;
20+
@apply h2;
1921
}
2022

2123
h3 {
22-
@apply text-2xl;
24+
@apply h3;
2325
}
2426

2527
h4 {
26-
@apply text-xl;
28+
@apply h4;
2729
}
2830

2931
h5 {
30-
@apply text-lg;
32+
@apply h5;
3133
}
3234

3335
h6 {
34-
@apply text-base;
36+
@apply h6;
3537
}
3638

37-
li {
38-
@apply ml-8;
39+
a:not(.button) {
40+
@apply text-link;
3941
}
4042

41-
a {
42-
@apply underline hover:decoration-transparent transition-colors;
43+
blockquote {
44+
@apply pl-6 py-3 border-l-3 border-brand-300;
45+
46+
p {
47+
@apply text-xl font-serif italic;
48+
}
4349
}
4450

45-
ul li {
46-
@apply list-disc;
51+
.table-wrap {
52+
@apply p-8 rounded-lg bg-white;
4753
}
4854

49-
ol li {
50-
@apply list-decimal;
55+
table {
56+
@apply table;
5157
}
5258

53-
strong {
54-
@apply font-bold;
59+
tr:first-child th {
60+
@apply pt-0;
5561
}
5662

57-
blockquote {
58-
@apply pl-4 py-3 my-4 border-s-4 border-gray-300 text-xl italic;
63+
ol,
64+
ul {
65+
@apply list-inside;
5966
}
6067

61-
table {
62-
@apply w-full text-sm text-left;
68+
ol li {
69+
@apply list-decimal;
70+
}
71+
72+
ul li {
73+
@apply list-disc;
6374
}
6475

65-
th {
66-
@apply p-4 font-bold bg-brand-200;
76+
> * + * {
77+
@apply mt-12;
6778
}
6879

69-
td {
70-
@apply p-4 font-medium;
80+
p + p,
81+
p + ol,
82+
ol + p,
83+
p + ul,
84+
ul + p,
85+
ul + ul,
86+
ol + ol,
87+
ul + ol,
88+
ol + ul {
89+
@apply mt-6;
7190
}
7291

73-
tr:not(:last-child) td {
74-
@apply border-b border-brand-200;
92+
li + li {
93+
@apply mt-2;
7594
}
7695

77-
* {
96+
h1,
97+
h2,
98+
h3,
99+
h4,
100+
h5,
101+
h6 {
102+
& + p,
103+
& + ul,
104+
& + ol,
78105
& + h1,
79106
& + h2,
80107
& + h3,
81108
& + h4,
82109
& + h5,
83110
& + h6 {
84-
@apply mt-8;
111+
@apply mt-6;
85112
}
86113
}
87114
}

resources/css/utilities.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@utility text-link {
2+
@apply underline hover:decoration-transparent transition-colors;
3+
}

resources/css/variables.css

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
@theme {
2+
--font-text: "Arial", sans-serif;
3+
--font-heading: "Arial", sans-serif;
4+
--font-serif: "Georgia", sans-serif;
5+
6+
--breakpoint-xs: 321px;
7+
--breakpoint-sm: 451px;
8+
--breakpoint-md: 671px;
9+
--breakpoint-lg: 769px;
10+
--breakpoint-xl: 1025px;
11+
--breakpoint-2xl: 1281px;
12+
--breakpoint-3xl: 1441px;
13+
--breakpoint-4xl: 1901px;
14+
15+
--color-brand-50: #f3f6fb;
16+
--color-brand-100: #e5e9f4;
17+
--color-brand-200: #d0d9ed;
18+
--color-brand-300: #b0c0e0;
19+
--color-brand-400: #8a9fd0;
20+
--color-brand-500: #6a7fc1;
21+
--color-brand-600: #5b6bb5;
22+
--color-brand-700: #505aa5;
23+
--color-brand-800: #464c87;
24+
--color-brand-900: #3c416c;
25+
--color-brand-950: #282a43;
26+
}

resources/js/Pages/Elements.vue

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@
9696
class="sr-only peer"
9797
type="checkbox"
9898
/>
99-
<div
100-
class="peer">
99+
<div class="peer">
101100
</div>
102101
<span>
103102
Toggle
@@ -142,9 +141,11 @@
142141
<li>Ordered List Item 3</li>
143142
</ol>
144143
<blockquote>
145-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Hic praesentium consectetur eum
146-
laudantium optio temporibus. Beatae, nulla natus aut accusamus sint culpa at itaque, voluptates
147-
architecto laboriosam ipsum voluptatem ducimus.
144+
<p>
145+
Lorem ipsum dolor sit amet consectetur adipisicing elit. Hic praesentium consectetur eum
146+
laudantium optio temporibus. Beatae, nulla natus aut accusamus sint culpa at itaque,
147+
voluptates architecto laboriosam ipsum voluptatem ducimus.
148+
</p>
148149
</blockquote>
149150
<table>
150151
<thead>

0 commit comments

Comments
 (0)