-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added copy of javafx-graphics CSS file for j2cl
- Loading branch information
Showing
2 changed files
with
46 additions
and
0 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
23 changes: 23 additions & 0 deletions
23
...ebfx-kit-javafxgraphics-fat-j2cl/src/main/webfx/css/[email protected]
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* Mocking some basic JavaFX behaviours */ | ||
body { | ||
overflow: hidden; /* Disabling browser horizontal and vertical scroll bars */ | ||
margin: 0; /* Removing the default margin around the body */ | ||
/* Disabling user selection by default */ | ||
-webkit-touch-callout: none; | ||
-webkit-user-select: none; | ||
-moz-user-select: none; | ||
-ms-user-select: none; | ||
user-select: none; | ||
} | ||
|
||
/* Making disabled nodes semi-transparent */ | ||
.disabled { | ||
opacity: 50%; | ||
} | ||
|
||
/* When fill and stroke are not set by application code, we make them transparent by default like in JavaFX (otherwise | ||
the browser will make them black). */ | ||
fx-svgpath svg { | ||
fill: none; | ||
stroke: none; | ||
} |