-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop target should follow window size when you resize it to be taller
- Loading branch information
Showing
2 changed files
with
34 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,29 @@ | ||
.empty { | ||
// border in day mode | ||
border: 1px dashed #3b4351; | ||
|
||
display: block; | ||
height: calc(100% - 14px); | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
margin-top: 6px; | ||
margin-left: 8px; | ||
margin-right: 8px; | ||
margin-bottom: 6px; | ||
padding: 0; | ||
|
||
.empty-inner { | ||
position: absolute; | ||
|
||
// position the top+left edges of the element | ||
// at the middle of the parent | ||
top: 50%; | ||
left: 50%; | ||
|
||
// This is a shorthand of translateX(-50%) and translateY(-50%) | ||
transform: translate(-50%, -50%); | ||
} | ||
} |