Scoped CSS classes inside .scope-app class

This commit is contained in:
jpellizzari
2017-01-24 09:31:17 -08:00
parent 0bf7fa49dd
commit a6412f12b2
4 changed files with 43 additions and 54 deletions

View File

@@ -104,7 +104,7 @@ class App extends React.Component {
const isIframe = window !== window.top;
return (
<div className="app">
<div className="scope-app">
{showingDebugToolbar() && <DebugToolbar />}
{showingHelp && <HelpPanel />}

View File

@@ -1,5 +1,5 @@
const PREFIX = 'Weave Scope';
const PREFIX = document.title || 'Weave Scope';
const SEPARATOR = ' - ';
export function setDocumentTitle(title) {

View File

@@ -115,63 +115,52 @@ $label-background-color: fade-out($background-average-color, .3);
}
}
* {
box-sizing: border-box;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
*:before,
*:after {
box-sizing: border-box;
}
html {
-webkit-font-smoothing: antialiased;
}
html,
body {
height: 100%;
width: 100%;
}
/* Space out content a bit */
body {
background: $body-background-color;
color: $text-color;
line-height: 150%;
font-family: $base-font;
font-size: 13px;
margin: 0;
}
p {
line-height: 20px;
padding-top: 6px;
margin-bottom: 14px;
letter-spacing: 0;
font-weight: 400;
color: $text-color;
}
h2 {
font-size: 34px;
line-height: 40px;
padding-top: 8px;
margin-bottom: 12px;
font-weight: 400;
}
.hide {
opacity: 0;
}
.app {
position: fixed;
top: 0;
left: 0;
.scope-app {
-webkit-font-smoothing: antialiased;
background: $body-background-color;
bottom: 0;
right: 0;
color: $text-color;
font-family: $base-font;
font-size: 13px;
height: 100%;
left: 0;
line-height: 150%;
margin: 0;
overflow: auto;
position: fixed;
right: 0;
top: 0;
width: 100%;
* {
box-sizing: border-box;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
*:before,
*:after {
box-sizing: border-box;
}
p {
line-height: 20px;
padding-top: 6px;
margin-bottom: 14px;
letter-spacing: 0;
font-weight: 400;
color: $text-color;
}
h2 {
font-size: 34px;
line-height: 40px;
padding-top: 8px;
margin-bottom: 12px;
font-weight: 400;
}
}
.header {

2
scope
View File

@@ -74,7 +74,7 @@ check_docker_access() {
}
# - The image embeds the weave script & Docker 1.3.1 client
# - Docker versions prior to 1.5.0 do not support --pid=host
# - Docker versions prior to 1.5.0 do not support --pid=host
# - Weave needs 1.6.0 now (image pulling changes)
MIN_DOCKER_VERSION=1.6.0