mirror of
https://github.com/atisawd/boxicons.git
synced 2025-08-01 13:50:15 +02:00
Support for shape
attribute
This commit is contained in:
@@ -34,7 +34,7 @@ export class BoxIconElement extends HTMLElement {
|
|||||||
'rotate',
|
'rotate',
|
||||||
'flip',
|
'flip',
|
||||||
'animation',
|
'animation',
|
||||||
'border',
|
'shape',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -102,6 +102,16 @@ export class BoxIconElement extends HTMLElement {
|
|||||||
width: 3.0rem;
|
width: 3.0rem;
|
||||||
height: 3.0rem;
|
height: 3.0rem;
|
||||||
}
|
}
|
||||||
|
:host([shape=square]) {
|
||||||
|
padding: .25em;
|
||||||
|
border: .07em solid rgba(0,0,0,.1);
|
||||||
|
border-radius: .25em;
|
||||||
|
}
|
||||||
|
:host([shape=circle]) {
|
||||||
|
padding: .25em;
|
||||||
|
border: .07em solid rgba(0,0,0,.1);
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
#icon,
|
#icon,
|
||||||
svg {
|
svg {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
Reference in New Issue
Block a user