Skip to content

Commit 58454a4

Browse files
committed
feat: 情報ボックスのスタイルを追加
1 parent b2418d5 commit 58454a4

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

website/src/styles.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@import "tailwindcss";
22
@plugin "@tailwindcss/typography";
33

4+
/* Global font family */
45
@font-face {
56
font-family: "HK Grotesk";
67
src: url("/assets/fonts/HKGrotesk-Regular.woff2") format("woff2");
@@ -46,3 +47,21 @@ samp {
4647
font-family: "Cascadia Mono", SFMono-Regular, Menlo, Monaco, Consolas,
4748
"Liberation Mono", "Courier New", monospace;
4849
}
50+
51+
/* Information box */
52+
.info-box {
53+
@apply my-8 rounded-md border border-cyan-200 bg-cyan-50 overflow-hidden relative;
54+
}
55+
56+
.info-box > * {
57+
@apply px-6;
58+
}
59+
60+
.info-box::before {
61+
content: "情報";
62+
@apply absolute top-0 left-0 bg-cyan-200 text-cyan-800 text-xs font-bold py-1 px-3 rounded-br;
63+
}
64+
65+
.info-box > *:first-child {
66+
@apply pt-4;
67+
}

0 commit comments

Comments
 (0)