-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
77 lines (76 loc) · 1.96 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>CSS表現デモ</title>
<link href="../base.css" rel="stylesheet" type="text/css"/>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic&display=swap" rel="stylesheet">
<style>
.fukidashi-01-11 {
position: relative;
display: grid;
place-items: center;
width: 120px;
height: 120px;
border: 2px solid #333333;
border-radius: 50%;
}
.fukidashi-01-11::after {
content: "";
position: absolute;
top: 100%;
left: 58%;
width: 26px;
height: 2px;
transform: rotate(50deg);
box-sizing: border-box;
background-color: #333333;
box-shadow: 0 2px 0 #ffffff, 0 -2px 0 #ffffff; /* 背景色と同じ色を指定 */
}
.fukidashi-01-11 > .text {
position: absolute;
z-index: 3;
display: grid;
place-items: center;
width: 100%;
height: 100%;
border-radius: 50%;
background-color: #ffffff;
}
.fukidashi-01-11 > .ornament {
position: absolute;
top: -30%;
left: -25%;
z-index: 1;
display: grid;
place-items: center;
width: 60%;
height: 60%;
font-size: 16px;
border: 2px solid #333333;
border-radius: 50%;
background-color: #ffffff;
}
.fukidashi-01-11 > .ornament::before {
content: "";
position: absolute;
bottom: -5px;
left: 70px;
width: 15px;
height: 15px;
transform: rotate(135deg);
box-sizing: border-box;
background-color: #ffffff;
}
</style>
</head>
<body>
<div class="fukidashi-01-11">
<div class="text">かわいい<br>フキダシ</div>
<span class="ornament">Cute!</span>
</div>
</body>
</html>