<div class="quote-wrapper">
<blockquote class="text" cite="">
<p> ほげほげふがふがぴよぴよ・・<br>
hogehoge hugahuga piyopiyo
hogehoge hugahuga piyopiyo
hogehoge hugahuga piyopiyo
hogehoge hugahuga piyopiyo
hogehoge hugahuga piyopiyo!!!!!!!</p>
<footer>– かちびと.net</footer>
</blockquote>
</div>
<!--THIS HTML IS NOT REQUIRED FOR CIRCULAR TEXT-->
<p class="note"><a href="https://drafts.csswg.org/css-shapes-2/#propdef-shape-inside" target="_blank">Note: A future
level of CSS Shapes will define a shape-inside property, which will define a shape to wrap content within the
element.</a></p>
*,
*:before,
*:after {
box-sizing: border-box;
}
body {
line-height: 1.4;
color: #161b1e;
}
.quote-wrapper {/*親*/
width: 300px;
height: 300px;
position: relative;
margin: 10vh auto 0;
}
.text {
width: 100%;
height: 100%;
/*円形グラデーション*/
background: radial-gradient(
ellipse at center,
rgba(0, 128, 172, 1) 0%,
rgba(0, 128, 172, 1) 70%,
rgba(0, 128, 172, 0) 70.3%
);
position: relative;
margin: 0;
color: white;
}
.text p {
height: 100%;
line-height: 1.25;
padding: 0;
text-align: center;
font-style: italic;
text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.3);
}
.text::before {
content: "";
width: 50%;
height: 100%;
float: left;
shape-outside: polygon(
0 0,
98% 0,
50% 6%,
23.4% 17.3%,
6% 32.6%,
0 50%,
6% 65.6%,
23.4% 82.7%,
50% 94%,
98% 100%,
0 100%
);
shape-margin: 7%;
}
.text p::before {
content: "";
width: 50%;
height: 100%;
float: right;
shape-outside: polygon(
2% 0%,
100% 0%,
100% 100%,
2% 100%,
50% 94%,
76.6% 82.7%,
94% 65.6%,
100% 50%,
94% 32.6%,
76.6% 17.3%,
50% 6%
);
shape-margin: 7%;
}
.quote-wrapper blockquote footer {
width: 100%;
position: absolute;
bottom: 25px;
font-size: 13px;
text-align: center;
font-style: italic;
text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.3);
}
.quote-wrapper::before {
content: "\201C";
font-size: 270px;
height: 82px;
line-height: 0.78;
line-height: 1;
position: absolute;
top: -48px;
left: 0;
z-index: 1;
font-family: sans-serif, serif;
color: #ccc;
opacity: 0.9;
}
@media (min-width: 850px) {
.quote-wrapper {
width: 370px;
height: 370px;
}
.quote-wrapper::before {
font-size: 300px;
}
.text p {
font-size: 20px;
}
.quote-wrapper blockquote footer {
bottom: 32px;
}
}
/*THIS CSS IS NOT REQUIRED FOR CIRCULAR TEXT*/
/*THIS CSS IS NOT REQUIRED FOR CIRCULAR TEXT*/
.note {
margin: 5vw;
padding: 0.5em;
border-left: 0.5em solid #52e052;
background: #e9fbe9;
}
.note a {
text-decoration: none;
color: #161b1e;
}
.note a:hover {
text-decoration: underline;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.