mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-10-26 11:16:11 +01:00
feat: Fixed at corner
This commit is contained in:
32
styles/patterns/_fixed-at-corner.scss
Normal file
32
styles/patterns/_fixed-at-corner.scss
Normal file
@@ -0,0 +1,32 @@
|
||||
.fixed-at-corner {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: 1px solid rgba(0, 0, 0, .3);
|
||||
border-radius: 0.25rem;
|
||||
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.fixed-at-corner__corner {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.fixed-at-corner__corner--tl {
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.fixed-at-corner__corner--tr {
|
||||
top: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.fixed-at-corner__corner--br {
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.fixed-at-corner__corner--bl {
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
Reference in New Issue
Block a user