Skip to content

Commit 8f5a29a

Browse files
committed
Style note boxes more like current docs
- Switch the body font to Helvetica. Raleway isn't intended as a body copy face. We should continue using a Helvetica stack. - Import the icons and colors for tip/warning/note boxes to match the current book.
1 parent 565fa23 commit 8f5a29a

File tree

6 files changed

+121
-0
lines changed

6 files changed

+121
-0
lines changed

.vitepress/theme/custom.css

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
1+
/* Generated by Font Squirrel (http://www.fontsquirrel.com) on March 22, 2016 */
2+
@font-face {
3+
font-family: 'cake_dingbatsregular';
4+
src: url('/fonts/cakedingbats-webfont.eot');
5+
src: url('/fonts/cakedingbats-webfont.eot?#iefix') format('embedded-opentype'),
6+
url('/fonts/cakedingbats-webfont.woff2') format('woff2'),
7+
url('/fonts/cakedingbats-webfont.woff') format('woff'),
8+
url('/fonts/cakedingbats-webfont.ttf') format('truetype'),
9+
url('/fonts/cakedingbats-webfont.svg#cake_dingbatsregular') format('svg');
10+
font-weight: normal;
11+
font-style: normal;
12+
}
13+
114
/* CakePHP Theme Customization */
215
:root {
316
--cake-color-link: #2D7EA4;
417
--cake-color-progress: #d33c43;
518

619
--vp-font-family-base: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
20+
--vp-font-family-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
21+
--vp-font-family-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
722

823
/* CakePHP Brand Colors - Official Red */
924
--vp-c-brand-1: #d33c43;
@@ -16,6 +31,12 @@
1631
--vp-c-red-2: #c8363d;
1732
--vp-c-red-3: #b02e34;
1833

34+
/* custom blocks (warning, info, tip, added, deprecated) */
35+
--vp-custom-block-tip-bg: #d9edf7;
36+
--vp-custom-block-note-bg: #fcf8e3;
37+
--vp-custom-block-warning-bg: #f2dede;
38+
--vp-custom-block-info-bg: #dff0d8;
39+
--vp-custom-block-font-size: 14px;
1940
}
2041

2142
/* Dark theme adjustments */
@@ -40,3 +61,47 @@
4061
.vp-doc a {
4162
color: var(--cake-color-link);
4263
}
64+
.vp-doc strong,
65+
.vp-doc em,
66+
.vp-doc i,
67+
.vp-doc b,
68+
.vp-doc li,
69+
.vp-doc p {
70+
font-family: var(--vp-font-family-body);
71+
}
72+
73+
/* Warnings, Info, Tip, Added, Deprecated callout blocks */
74+
.custom-block-title {
75+
padding-left: 33px;
76+
position: relative;
77+
}
78+
.custom-block-title:before {
79+
display: block;
80+
font-family: 'cake_dingbatsregular';
81+
font-size: 24px;
82+
line-height: 24px;
83+
position: absolute;
84+
top: 1px;
85+
left: 1px;
86+
user-select: none;
87+
}
88+
.custom-block.tip .custom-block-title:before {
89+
content: 'X';
90+
color: #97CAE4;
91+
}
92+
.custom-block.note .custom-block-title:before {
93+
color: #E2C99C;
94+
content: 'U';
95+
}
96+
.custom-block.warning .custom-block-title:before {
97+
color: #E0B9B9;
98+
content: 'W';
99+
}
100+
.custom-block.deprecated .custom-block-title:before {
101+
color: #E0B9B9;
102+
content: 'H';
103+
}
104+
.custom-block.info .custom-block-title:before {
105+
color: #A7D096;
106+
content: 'V';
107+
}
13.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)