-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Edit border styling and fix size property
- Loading branch information
donovanroubos
committed
Jul 23, 2020
1 parent
cd6bae0
commit 8363b0f
Showing
5 changed files
with
9,730 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
163 changes: 88 additions & 75 deletions
163
projects/angular-flagpack/src/lib/angular-flagpack.style.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,101 +1,114 @@ | ||
@mixin before-styling { | ||
content: ''; | ||
width: 100%; | ||
height: 100%; | ||
position: absolute; | ||
display: block; | ||
mix-blend-mode: overlay; | ||
box-sizing: border-box; | ||
} | ||
|
||
.flag { | ||
display: inline-block; | ||
overflow: hidden; | ||
position: relative; | ||
box-sizing: border-box; | ||
|
||
&.size { | ||
&-s { | ||
width: 16px; | ||
height: 12px; | ||
// Shared styles | ||
@mixin before-styling { | ||
content: ''; | ||
width: 100%; | ||
height: 100%; | ||
position: absolute; | ||
display: block; | ||
mix-blend-mode: overlay; | ||
box-sizing: border-box; | ||
} | ||
|
||
// Flag | ||
.flag { | ||
display: inline-block; | ||
overflow: hidden; | ||
position: relative; | ||
box-sizing: border-box; | ||
|
||
&.size { | ||
&-s { | ||
width: 16px; | ||
height: 12px; | ||
|
||
&.drop-shadow { | ||
box-shadow: 0 0 1px 0.5px rgba(0,0,0,0.10); | ||
} | ||
|
||
&.drop-shadow { | ||
box-shadow: 0 0 1px 0.5px rgba(0, 0, 0, 0.10); | ||
} | ||
&.border-radius { | ||
border-radius: 1px; | ||
|
||
&.border-radius { | ||
border-radius: 1px; | ||
&.border { | ||
&::before { | ||
border-radius: 1px; | ||
} | ||
} | ||
} | ||
} | ||
|
||
&-m { | ||
width: 20px; | ||
height: 15px; | ||
|
||
&.drop-shadow { | ||
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.10); | ||
} | ||
&-m { | ||
width: 20px; | ||
height: 15px; | ||
|
||
&.border-radius { | ||
border-radius: 1.5px; | ||
} | ||
&.drop-shadow { | ||
box-shadow: 0 1px 2px 0 rgba(0,0,0,0.10); | ||
} | ||
|
||
&-l { | ||
width: 32px; | ||
height: 24px; | ||
|
||
&.drop-shadow { | ||
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.10); | ||
} | ||
&.border-radius { | ||
border-radius: 1.5px; | ||
|
||
&.border-radius { | ||
border-radius: 2px; | ||
&.border { | ||
&::before { | ||
border-radius: 1.5px; | ||
} | ||
} | ||
} | ||
} | ||
|
||
&.border { | ||
&::before { | ||
@include before-styling(); | ||
border: 1px solid rgba(0, 0, 0, .5); | ||
mix-blend-mode: overlay; | ||
&-l { | ||
width: 32px; | ||
height: 24px; | ||
|
||
&.drop-shadow { | ||
box-shadow: 0 2px 3px 0 rgba(0,0,0,0.10); | ||
} | ||
} | ||
|
||
&.border-radius { | ||
&::before { | ||
@include before-styling(); | ||
border-radius: 1px; | ||
&.border-radius { | ||
border-radius: 2px; | ||
|
||
&.border { | ||
&::before { | ||
border-radius: 2px; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
&.top-down { | ||
&::before { | ||
@include before-styling(); | ||
background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.30) 2%, rgba(255, 255, 255, 0.70) 100%); | ||
} | ||
&.border { | ||
&::before { | ||
@include before-styling(); | ||
border: 1px solid rgba(0, 0, 0, .5); | ||
mix-blend-mode: overlay; | ||
} | ||
} | ||
|
||
&.real-linear { | ||
&::before { | ||
@include before-styling(); | ||
background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.20) 0%, rgba(39, 39, 39, 0.22) 11%, rgba(255, 255, 255, 0.30) 27%, rgba(0, 0, 0, 0.24) 41%, rgba(0, 0, 0, 0.55) 52%, rgba(255, 255, 255, 0.26) 63%, rgba(0, 0, 0, 0.27) 74%, rgba(255, 255, 255, 0.30) 100%); | ||
} | ||
&.top-down { | ||
&::before { | ||
@include before-styling(); | ||
background-image: linear-gradient(0deg, rgba(0,0,0,0.30) 2%, rgba(255,255,255,0.70) 100%); | ||
} | ||
} | ||
|
||
&.real-circular { | ||
&::before { | ||
@include before-styling(); | ||
background: radial-gradient(50% 36%, rgba(255, 255, 255, 0.30) 0%, rgba(0, 0, 0, 0.24) 11%, rgba(0, 0, 0, 0.55) 17%, rgba(255, 255, 255, 0.26) 22%, rgba(0, 0, 0, 0.17) 27%, rgba(255, 255, 255, 0.28) 31%, rgba(255, 255, 255, 0.00) 37%) center calc(50% - 8px) / 600% 600%, | ||
radial-gradient(50% 123%, rgba(255, 255, 255, 0.30) 25%, rgba(0, 0, 0, 0.24) 48%, rgba(0, 0, 0, 0.55) 61%, rgba(255, 255, 255, 0.26) 72%, rgba(0, 0, 0, 0.17) 80%, rgba(255, 255, 255, 0.28) 88%, rgba(255, 255, 255, 0.30) 100%) center calc(50% - 8px) / 600% 600%; | ||
} | ||
&.real-linear { | ||
&::before { | ||
@include before-styling(); | ||
background-image: linear-gradient(45deg, rgba(0,0,0,0.20) 0%, rgba(39,39,39,0.22) 11%, rgba(255,255,255,0.30) 27%, rgba(0,0,0,0.24) 41%, rgba(0,0,0,0.55) 52%, rgba(255,255,255,0.26) 63%, rgba(0,0,0,0.27) 74%, rgba(255,255,255,0.30) 100%); | ||
} | ||
} | ||
|
||
img { | ||
display: block; | ||
width: 100%; | ||
height: 100%; | ||
object-fit: cover; | ||
&.real-circular { | ||
&::before { | ||
@include before-styling(); | ||
background: radial-gradient(50% 36%, rgba(255,255,255,0.30) 0%, rgba(0,0,0,0.24) 11%, rgba(0,0,0,0.55) 17%, rgba(255,255,255,0.26) 22%, rgba(0,0,0,0.17) 27%, rgba(255,255,255,0.28) 31%, rgba(255,255,255,0.00) 37%) center calc(50% - 8px) / 600% 600%, | ||
radial-gradient(50% 123%, rgba(255,255,255,0.30) 25%, rgba(0,0,0,0.24) 48%, rgba(0,0,0,0.55) 61%, rgba(255,255,255,0.26) 72%, rgba(0,0,0,0.17) 80%, rgba(255,255,255,0.28) 88%, rgba(255,255,255,0.30) 100%) center calc(50% - 8px) / 600% 600%; | ||
} | ||
} | ||
|
||
img { | ||
display: block; | ||
width: 100%; | ||
height: 100%; | ||
object-fit: cover; | ||
} | ||
} |
10 changes: 5 additions & 5 deletions
10
projects/angular-flagpack/src/lib/angular-flagpack.template.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.