mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-08-29 08:50:06 +02:00
🎉 balloonsを追加
This commit is contained in:
69
css/nes.css
69
css/nes.css
@@ -492,6 +492,10 @@ button,
|
||||
padding: 1.5rem 2rem;
|
||||
}
|
||||
|
||||
.container > :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.container::before, .container::after {
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
@@ -606,4 +610,69 @@ button,
|
||||
height: 2px;
|
||||
box-shadow: 2px 2px #212529,4px 2px #212529,6px 2px #212529,8px 2px #212529,10px 2px #212529,12px 2px #212529,14px 2px #212529,18px 2px #212529,20px 2px #212529,2px 4px #212529,16px 4px #212529,18px 4px #212529,20px 4px #212529,2px 6px #212529,14px 6px #212529,16px 6px #212529,2px 8px #212529,4px 8px #212529,12px 8px #212529,14px 8px #212529,2px 10px #212529,4px 10px #212529,6px 10px #212529,10px 10px #212529,12px 10px #212529,16px 10px #212529,2px 12px #212529,6px 12px #212529,8px 12px #212529,10px 12px #212529,16px 12px #212529,2px 14px #212529,8px 14px #212529,16px 14px #212529,2px 16px #212529,4px 16px #212529,6px 16px #212529,8px 16px #212529,10px 16px #212529,12px 16px #212529,14px 16px #212529,16px 16px #212529;;
|
||||
}
|
||||
|
||||
.balloon {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
padding: 1rem 1.5rem;
|
||||
margin: 8px;
|
||||
box-shadow: 0 -4px #fff, 0 -8px #212529, 4px 0 #fff, 4px -4px #212529, 8px 0 #212529, 0 4px #fff, 0 8px #212529, -4px 0 #fff, -4px 4px #212529, -8px 0 #212529, -4px -4px #212529, 4px 4px #212529;
|
||||
}
|
||||
|
||||
.balloon > :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.balloon::before, .balloon::after {
|
||||
position: absolute;
|
||||
content: "";
|
||||
}
|
||||
|
||||
.balloon.from-left {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.balloon.from-left::before, .balloon.from-left::after {
|
||||
left: 2rem;
|
||||
}
|
||||
|
||||
.balloon.from-left::before {
|
||||
bottom: -14px;
|
||||
width: 26px;
|
||||
height: 10px;
|
||||
background-color: #fff;
|
||||
border-right: 4px solid #212529;
|
||||
border-left: 4px solid #212529;
|
||||
}
|
||||
|
||||
.balloon.from-left::after {
|
||||
bottom: -18px;
|
||||
width: 18px;
|
||||
height: 3px;
|
||||
margin-right: 8px;
|
||||
background-color: #fff;
|
||||
box-shadow: -4px 0 #212529, 4px 0 #212529, -4px 4px #fff, 0 4px #212529, -8px 4px #212529, -4px 8px #212529, -8px 8px #212529;
|
||||
}
|
||||
|
||||
.balloon.from-right::before, .balloon.from-right::after {
|
||||
right: 2rem;
|
||||
}
|
||||
|
||||
.balloon.from-right::before {
|
||||
bottom: -14px;
|
||||
width: 26px;
|
||||
height: 10px;
|
||||
background-color: #fff;
|
||||
border-right: 4px solid #212529;
|
||||
border-left: 4px solid #212529;
|
||||
}
|
||||
|
||||
.balloon.from-right::after {
|
||||
bottom: -18px;
|
||||
width: 18px;
|
||||
height: 3px;
|
||||
margin-left: 8px;
|
||||
background-color: #fff;
|
||||
box-shadow: -4px 0 #212529, 4px 0 #212529, 4px 4px #fff, 0 4px #212529, 8px 4px #212529, 4px 8px #212529, 8px 8px #212529;
|
||||
}
|
||||
/*# sourceMappingURL=nes.css.map */
|
File diff suppressed because one or more lines are too long
4
css/nes.min.css
vendored
4
css/nes.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -68,5 +68,10 @@
|
||||
<div>
|
||||
<label><input type="checkbox" class="checkbox" checked /><span>Enable</span></label>
|
||||
</div>
|
||||
|
||||
<div class="balloon from-left"><p>Hello NES.css</p></div>
|
||||
<div class="balloon from-right">
|
||||
<p>Good morning. Thou hast had a good night's sleep I hope.</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@@ -4,3 +4,4 @@
|
||||
@import "containers.scss";
|
||||
@import "radios.scss";
|
||||
@import "checkboxes.scss";
|
||||
@import "balloons.scss";
|
||||
|
99
scss/elements/balloons.scss
Normal file
99
scss/elements/balloons.scss
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
@@ -2,6 +2,10 @@
|
||||
position: relative;
|
||||
padding: 1.5rem 2rem;
|
||||
|
||||
> :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
position: absolute;
|
||||
|
Reference in New Issue
Block a user