@konfuzio/document-validation-ui 0.1.7 → 0.1.8-scoped-styles-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konfuzio/document-validation-ui",
3
- "version": "0.1.7",
3
+ "version": "0.1.8-scoped-styles-2",
4
4
  "repository": "git://github.com:konfuzio-ai/document-validation-ui.git",
5
5
  "main": "dist/app.js",
6
6
  "scripts": {
@@ -1 +1,3 @@
1
1
  @import "./variables.scss";
2
+ @import "~buefy/dist/buefy.css";
3
+ @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");
@@ -1,9 +1,10 @@
1
- @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");
2
- @import "./imports.scss";
1
+ .dv-ui-app-container {
2
+ @import "./variables.scss";
3
3
 
4
- body {
4
+ display: flex;
5
+ height: 100%;
6
+ flex-direction: column;
5
7
  margin: 0;
6
- font-family: $font-family;
7
8
 
8
9
  .overlay {
9
10
  height: 100%;
@@ -16,13 +17,8 @@ body {
16
17
  overflow-x: hidden;
17
18
  }
18
19
 
19
- .dv-ui-app-container {
20
- display: flex;
21
- height: 100%;
22
- flex-direction: column;
23
- }
24
-
25
- .dv-ui-theme {
20
+ &.dv-ui-theme {
21
+ font-family: $font-family;
26
22
  button {
27
23
  &.is-primary {
28
24
  background-color: $primary !important;
@@ -1,6 +1,11 @@
1
- /* Theme */
1
+ :root {
2
+ --konfuzio-green: #41af85;
3
+ --white: #fff;
4
+ --primary-color: var(--konfuzio-green);
5
+ --primary-button: 4px;
6
+ --top-bar-background: var(--$white);
7
+ }
2
8
 
3
- $konfuzio-green: #41af85;
4
9
  $green: #4bb543;
5
10
  $green-low-opacity: rgba(75, 181, 67, 0.11);
6
11
  $green-border: #67d19f;
@@ -30,7 +35,7 @@ $detail: #e2e3e4;
30
35
  $dark: #2f3032;
31
36
  $full-black: #000;
32
37
 
33
- $white: #fff;
38
+ $white: var(--white);
34
39
  $low-opacity-white: rgba(255, 255, 255, 0.1);
35
40
 
36
41
  $yellow: #ffd600;
@@ -41,12 +46,6 @@ $purple: #7b61ff;
41
46
  $purple-low-opacity: rgba(123, 97, 255, 0.08);
42
47
  $text-color: #1a1a1a;
43
48
 
44
- :root {
45
- --primary-color: #{$konfuzio-green};
46
- --primary-button: 4px;
47
- --top-bar-background: #{$white};
48
- }
49
-
50
49
  $primary: var(--primary-color);
51
50
  $hover-style: brightness(0.8) contrast(160%) grayscale(0.4);
52
51
  $font-family: "Inter", sans-serif;
@@ -128,4 +128,5 @@ export default {
128
128
  };
129
129
  </script>
130
130
 
131
- <style lang="scss" src="../assets/scss/main.scss"></style>
131
+ <style scoped lang="scss" src="../assets/scss/imports.scss"></style>
132
+ <style lang="scss" src="../assets/scss/theme.scss"></style>
package/src/main.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import Vue from "vue";
2
2
  import Buefy from "buefy";
3
- import "buefy/dist/buefy.css";
4
3
  import VueKonva from "vue-konva";
5
4
  import App from "./components/App";
6
5
  import * as Sentry from "@sentry/vue";