+ const box =
{title}
@@ -59,6 +59,8 @@ class Window extends React.Component {
;
+
+ return mask ?
{box}
: box;
}
}
@@ -70,6 +72,7 @@ Window.propTypes = {
width: PropTypes.string,
height: PropTypes.string,
hidden: PropTypes.bool,
+ mask: PropTypes.bool,
};
Window.defaultProps = {
@@ -80,6 +83,7 @@ Window.defaultProps = {
width: '600px',
height: '400px',
hidden: false,
+ mask: true,
};
export default Window;
\ No newline at end of file
diff --git a/ShadowEditor.UI/src/window/css/Window.css b/ShadowEditor.UI/src/window/css/Window.css
index 43036289..b176cdc3 100644
--- a/ShadowEditor.UI/src/window/css/Window.css
+++ b/ShadowEditor.UI/src/window/css/Window.css
@@ -1,7 +1,17 @@
-.Window {
+.WindowMask {
position: fixed;
left: 0;
top: 0;
+ width: 100%;
+ height: 100%;
+ background-color: rgba(0, 0, 0, 0.6);
+ z-index: 900;
+}
+
+.Window {
+ position: absolute;
+ left: 0;
+ top: 0;
width: 600px;
height: 400px;
padding: 0px 5px 5px;