1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-04-22 15:12:19 +02:00

👍 バルーンを追加

This commit is contained in:
BcRikko 2018-09-29 09:51:09 +09:00
parent a8ed29a414
commit 590494a983
7 changed files with 176 additions and 12 deletions

View File

@ -486,4 +486,62 @@ dl.description > dt.-colon::after {
dl.description > dd {
grid-column: 2;
}
.balloon {
position: relative;
display: inline-block;
padding: 1rem;
margin-bottom: 26px;
box-shadow: 0 -4px #f7f7f7, 0 -8px #333, 4px 0 #f7f7f7, 4px -4px #333, 8px 0 #333, 0 4px #f7f7f7, 0 8px #333, -4px 0 #f7f7f7, -4px 4px #333, -8px 0 #333, -4px -4px #333, 4px 4px #333;
}
.balloon::before, .balloon::after {
position: absolute;
display: block;
content: "";
}
.balloon.-right::before, .balloon.-right::after {
right: 2rem;
}
.balloon.-right::before {
bottom: -14px;
width: 26px;
height: 10px;
background-color: #f7f7f7;
border-right: 4px solid #333;
border-left: 4px solid #333;
}
.balloon.-right::after {
bottom: -18px;
width: 18px;
height: 3px;
margin-left: 8px;
background-color: #f7f7f7;
box-shadow: -4px 0 #333, 4px 0 #333, 4px 4px #f7f7f7, 0 4px #333, 8px 4px #333, 4px 8px #333, 8px 8px #333;
}
.balloon.-left::before, .balloon.-left::after {
left: 2rem;
}
.balloon.-left::before {
bottom: -14px;
width: 26px;
height: 10px;
background-color: #f7f7f7;
border-right: 4px solid #333;
border-left: 4px solid #333;
}
.balloon.-left::after {
bottom: -18px;
width: 18px;
height: 3px;
margin-right: 8px;
background-color: #f7f7f7;
box-shadow: -4px 0 #333, 4px 0 #333, -4px 4px #f7f7f7, 0 4px #333, -8px 4px #333, -4px 8px #333, -8px 8px #333;
}
/*# sourceMappingURL=nes.css.map */

File diff suppressed because one or more lines are too long

4
css/nes.min.css vendored

File diff suppressed because one or more lines are too long

View File

@ -184,6 +184,16 @@
</section>
</section>
</section>
<section class="container">
<h2 class="title -is-3">Balloons</h2>
<div class="balloon -right">
<p>Good morning. Thou hast had a good night's sleep I hope.</p>
</div>
<div class="balloon -left">
<p>Hello NES.css</p>
</div>
</section>
</main>
</body>

View File

@ -6,3 +6,4 @@
@import "container.scss";
@import "checkbox.scss";
@import "description.scss";
@import "balloon.scss";

View File

@ -0,0 +1,94 @@
.balloon {
position: relative;
display: inline-block;
padding: 1rem;
margin-bottom: 26px;
// prettier-ignore
box-shadow:
0 -4px $background-color,
0 -8px $black,
4px 0 $background-color,
4px -4px $black,
8px 0 $black,
0 4px $background-color,
0 8px $black,
-4px 0 $background-color,
-4px 4px $black,
-8px 0 $black,
-4px -4px $black,
4px 4px $black;
&::before,
&::after {
position: absolute;
display: block;
content: "";
}
&.-right {
&::before,
&::after {
right: 2rem;
}
&::before {
bottom: -14px;
width: 26px;
height: 10px;
background-color: $background-color;
border-right: 4px solid $black;
border-left: 4px solid $black;
}
&::after {
bottom: -18px;
width: 18px;
height: 3px;
margin-left: 8px;
background-color: $background-color;
// prettier-ignore
box-shadow:
-4px 0 $black,
4px 0 $black,
4px 4px $background-color,
0 4px $black,
8px 4px $black,
4px 8px $black,
8px 8px $black;
}
}
&.-left {
&::before,
&::after {
left: 2rem;
}
&::before {
bottom: -14px;
width: 26px;
height: 10px;
background-color: $background-color;
border-right: 4px solid $black;
border-left: 4px solid $black;
}
&::after {
bottom: -18px;
width: 18px;
height: 3px;
margin-right: 8px;
background-color: $background-color;
// prettier-ignore
box-shadow:
-4px 0 $black,
4px 0 $black,
-4px 4px $background-color,
0 4px $black,
-8px 4px $black,
-4px 8px $black,
-8px 8px $black;
}
}
}

View File

@ -65,17 +65,17 @@ body {
/* prettier-ignore */
box-shadow:
0 -3px #f7f7f7,
0 -6px #000,
0 -6px #333,
3px 0 #f7f7f7,
3px -3px #000,
6px 0 #000,
3px -3px #333,
6px 0 #333,
0 3px #f7f7f7,
0 6px #000,
0 6px #333,
-3px 0 #f7f7f7,
-3px 3px #000,
-6px 0 #000,
-3px -3px #000,
3px 3px #000;
-3px 3px #333,
-6px 0 #333,
-3px -3px #333,
3px 3px #333;
}
.github-link .balloon::before,