1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-08-31 01:39:50 +02:00

🎉 balloonsを追加

This commit is contained in:
BcRikko
2018-11-26 14:15:46 +09:00
parent 96d37041ca
commit 2b53f16766
7 changed files with 183 additions and 4 deletions

View File

@@ -4,3 +4,4 @@
@import "containers.scss";
@import "radios.scss";
@import "checkboxes.scss";
@import "balloons.scss";

View File

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

View File

@@ -2,6 +2,10 @@
position: relative;
padding: 1.5rem 2rem;
> :last-child {
margin-bottom: 0;
}
&::before,
&::after {
position: absolute;