mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-25 12:16:37 +00:00
Remove unused scss
Change-type: patch Changelog-entry: Remove unused scss Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzothunder.ambrosi@gmail.com>
This commit is contained in:
parent
098ca9a9a1
commit
8560189a1e
@ -1,65 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2016 balena.io
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Prevent text selection */
|
|
||||||
body {
|
|
||||||
-webkit-user-select: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Allow window to be dragged from anywhere */
|
|
||||||
#app-header {
|
|
||||||
-webkit-app-region: drag;
|
|
||||||
}
|
|
||||||
|
|
||||||
.modal-body {
|
|
||||||
-webkit-app-region: no-drag;
|
|
||||||
}
|
|
||||||
|
|
||||||
button,
|
|
||||||
a,
|
|
||||||
input {
|
|
||||||
-webkit-app-region: no-drag;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Prevent WebView bounce effect in OS X */
|
|
||||||
html,
|
|
||||||
body {
|
|
||||||
height: 100%;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
html {
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
overflow: hidden;
|
|
||||||
-webkit-overflow-scrolling: touch;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Prevent blue outline */
|
|
||||||
a:focus,
|
|
||||||
input:focus,
|
|
||||||
button:focus,
|
|
||||||
[tabindex]:focus {
|
|
||||||
outline: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Titles don't have margins on desktop apps */
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
@ -16,11 +16,8 @@
|
|||||||
|
|
||||||
$disabled-opacity: 0.2;
|
$disabled-opacity: 0.2;
|
||||||
|
|
||||||
@import "./modules/theme";
|
|
||||||
@import "./desktop";
|
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Source Sans Pro";
|
font-family: "SourceSansPro";
|
||||||
src: url("./fonts/SourceSansPro-Regular.ttf") format("truetype");
|
src: url("./fonts/SourceSansPro-Regular.ttf") format("truetype");
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
@ -28,75 +25,43 @@ $disabled-opacity: 0.2;
|
|||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Source Sans Pro";
|
font-family: "SourceSansPro";
|
||||||
src: url("./fonts/SourceSansPro-SemiBold.ttf") format("truetype");
|
src: url("./fonts/SourceSansPro-SemiBold.ttf") format("truetype");
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: block;
|
font-display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Prevent white flash when running application
|
html,
|
||||||
html {
|
|
||||||
background-color: $palette-theme-dark-background;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
background-color: $palette-theme-dark-background;
|
overflow: hidden;
|
||||||
letter-spacing: 0.1px;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
font-family: "SourceSansPro";
|
|
||||||
|
|
||||||
> header {
|
// Prevent white flash when running application
|
||||||
flex: 0 0 auto;
|
background-color: #4d5057;
|
||||||
}
|
|
||||||
|
|
||||||
> main {
|
// Prevent WebView bounce effect in OS X
|
||||||
flex: 1;
|
height: 100%;
|
||||||
display: flex;
|
width: 100%;
|
||||||
}
|
|
||||||
|
|
||||||
> footer {
|
|
||||||
flex: 0 0 auto;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-loader {
|
// Prevent text selection
|
||||||
webview {
|
body {
|
||||||
flex: 0 1;
|
-webkit-user-select: none;
|
||||||
height: 0;
|
-webkit-overflow-scrolling: touch;
|
||||||
width: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.isFinish webview {
|
|
||||||
flex: initial;
|
|
||||||
position: absolute;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 320px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.featured-project {
|
// Allow window to be dragged from header
|
||||||
webview {
|
#app-header {
|
||||||
flex: 0 1;
|
-webkit-app-region: drag;
|
||||||
height: 0;
|
}
|
||||||
width: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.fp-visible webview {
|
// Prevent blue outline
|
||||||
width: 480px;
|
a:focus,
|
||||||
height: 360px;
|
input:focus,
|
||||||
position: absolute;
|
button:focus,
|
||||||
z-index: 1;
|
[tabindex]:focus {
|
||||||
left: 30px;
|
outline: none !important;
|
||||||
top: 45px;
|
|
||||||
border-radius: 7px;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.disabled {
|
.disabled {
|
||||||
|
@ -1,37 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2016 balena.io
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
$palette-theme-dark-foreground: #fff;
|
|
||||||
$palette-theme-dark-background: #4d5057;
|
|
||||||
$palette-theme-light-foreground: #666;
|
|
||||||
$palette-theme-light-background: #fff;
|
|
||||||
$palette-theme-dark-soft-foreground: #ddd;
|
|
||||||
$palette-theme-dark-soft-background: #64686a;
|
|
||||||
$palette-theme-light-soft-foreground: #b3b3b3;
|
|
||||||
$palette-theme-dark-disabled-background: #3a3c41;
|
|
||||||
$palette-theme-dark-disabled-foreground: #787c7f;
|
|
||||||
$palette-theme-light-disabled-background: #d5d5d5;
|
|
||||||
$palette-theme-light-disabled-foreground: #787c7f;
|
|
||||||
$palette-theme-default-background: #ececec;
|
|
||||||
$palette-theme-default-foreground: #b3b3b3;
|
|
||||||
$palette-theme-primary-background: #2297de;
|
|
||||||
$palette-theme-primary-foreground: #fff;
|
|
||||||
$palette-theme-warning-background: #ff912f;
|
|
||||||
$palette-theme-warning-foreground: #fff;
|
|
||||||
$palette-theme-danger-background: #d9534f;
|
|
||||||
$palette-theme-danger-foreground: #fff;
|
|
||||||
$palette-theme-success-background: #5fb835;
|
|
||||||
$palette-theme-success-foreground: #fff;
|
|
@ -65,10 +65,14 @@ export const colors = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const font = 'SourceSansPro';
|
||||||
|
|
||||||
export const theme = {
|
export const theme = {
|
||||||
colors,
|
colors,
|
||||||
|
font,
|
||||||
global: {
|
global: {
|
||||||
font: {
|
font: {
|
||||||
|
family: font,
|
||||||
size: 16,
|
size: 16,
|
||||||
},
|
},
|
||||||
text: {
|
text: {
|
||||||
|
6
npm-shrinkwrap.json
generated
6
npm-shrinkwrap.json
generated
@ -14941,12 +14941,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"roboto-fontface": {
|
|
||||||
"version": "0.10.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/roboto-fontface/-/roboto-fontface-0.10.0.tgz",
|
|
||||||
"integrity": "sha512-OlwfYEgA2RdboZohpldlvJ1xngOins5d7ejqnIBWr9KaMxsnBqotpptRXTyfNRLnFpqzX6sTDt+X+a+6udnU8g==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"run-async": {
|
"run-async": {
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/run-async/-/run-async-0.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/run-async/-/run-async-0.1.0.tgz",
|
||||||
|
@ -99,7 +99,6 @@
|
|||||||
"rendition": "^15.2.1",
|
"rendition": "^15.2.1",
|
||||||
"request": "^2.81.0",
|
"request": "^2.81.0",
|
||||||
"resin-corvus": "^2.0.5",
|
"resin-corvus": "^2.0.5",
|
||||||
"roboto-fontface": "^0.10.0",
|
|
||||||
"sass": "^1.26.5",
|
"sass": "^1.26.5",
|
||||||
"sass-lint": "^1.12.1",
|
"sass-lint": "^1.12.1",
|
||||||
"sass-loader": "^8.0.2",
|
"sass-loader": "^8.0.2",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user