Skip to content

Commit 3349a93

Browse files
committed
Improve some styling
1 parent 456fcf1 commit 3349a93

File tree

11 files changed

+56
-39
lines changed

11 files changed

+56
-39
lines changed

assets/dist/assets/main-f6864d5b.js renamed to assets/dist/assets/main-33c9acb7.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/dist/assets/main-5e610ca6.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/dist/assets/main-fbe2bd5e.css

-1
This file was deleted.

assets/dist/manifest.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"src/main.css": {
3-
"file": "assets/main-fbe2bd5e.css",
3+
"file": "assets/main-5e610ca6.css",
44
"src": "src/main.css"
55
},
66
"src/main.ts": {
77
"css": [
8-
"assets/main-fbe2bd5e.css"
8+
"assets/main-5e610ca6.css"
99
],
10-
"file": "assets/main-f6864d5b.js",
10+
"file": "assets/main-33c9acb7.js",
1111
"isEntry": true,
1212
"src": "src/main.ts"
1313
}

assets/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"dev": "vite",
88
"build": "vite build",
9+
"watch": "vite build --mode development --watch",
910
"eslint": "eslint --ext .js,.vue ./src",
1011
"eslint:fix": "eslint --fix --ext .js,.vue ./src",
1112
"stylelint": "stylelint ./src/assets/scss",

assets/src/app.vue

+5-7
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33
<h3>Content Security Policy</h3>
44

55
<div class="mt-4">
6-
<div class="main-wrapper border">
7-
<router-view v-slot="{Component}">
8-
<transition name="fade" mode="out-in">
9-
<component :is="Component" />
10-
</transition>
11-
</router-view>
12-
</div>
6+
<router-view v-slot="{Component}">
7+
<transition name="fade" mode="out-in">
8+
<component :is="Component" />
9+
</transition>
10+
</router-view>
1311
</div>
1412
</div>
1513
</template>

assets/src/components/directive.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</div>
99
<div class="ms-auto">
1010
<b-button v-if="canSave" variant="primary" class="me-2" @click="onSave">&check;</b-button>
11-
<b-button variant="secondary" @click="onAdd">&plus;</b-button>
11+
<b-button variant="secondary" size="sm" @click="onAdd"><i class="icon icon-plus"></i></b-button>
1212
</div>
1313
</div>
1414
</div>

assets/src/components/group.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
@click="checkGroup(record)"
1111
/>
1212
</div>
13-
<div class="ps-md-2">
13+
<div class="csp-directives">
1414
<div
1515
v-for="directive in record.directives"
1616
:key="directive.key"
17-
class="d-flex align-items-center justify-content-between mt-2"
17+
class="d-flex align-items-center justify-content-between"
1818
>
1919
<div class="pe-md-3">
2020
<div class="fw-bold cursor-pointer" @click="checkDirective(directive)">{{ directive.key }}</div>

assets/src/pages/index.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<template>
22
<div>
3-
<b-tabs v-if="items.length" v-model="tab" pills fill content-class="pt-4">
3+
<b-tabs v-if="items.length" v-model="tab" underline content-class="main-wrapper border-start border-end">
44
<b-tab title="Global">
55
<b-alert variant="light" :model-value="true">
6-
Use this switches below to globally enable/disable directives.
6+
Use these switches below to globally enable/disable directives.
77
</b-alert>
88
<group v-for="group in items" :key="group.id" :model-value="group" class="mt-4" />
99
</b-tab>

assets/src/scss/_variables.scss

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
$primary: #508237;
1+
// $primary: #508237;
2+
$primary: #6cb24a;
23
$success: #6cb24a;
34
$warning: #ffce00;
45
$danger: #cf1124;
@@ -10,4 +11,4 @@ $link-color: #234368;
1011
@import "bootstrap/scss/maps";
1112
@import "bootstrap/scss/mixins";
1213
@import "bootstrap/scss/utilities";
13-
@import "bootstrap/scss/root";
14+
@import "bootstrap/scss/root";

assets/src/scss/index.scss

+36-19
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,40 @@
55
// @import "bootstrap-vue-next/dist/bootstrap-vue-next.css";
66

77
#app-root {
8-
// @import "bootstrap";
9-
font-size: 14px;
10-
11-
@import "bootstrap/scss/reboot";
12-
@import "bootstrap/scss/grid";
13-
@import "bootstrap/scss/containers";
14-
@import "bootstrap/scss/nav";
15-
@import "bootstrap/scss/forms";
16-
@import "bootstrap/scss/buttons";
17-
@import "bootstrap/scss/type";
18-
@import "bootstrap/scss/alert";
19-
@import "bootstrap/scss/close";
20-
@import "bootstrap/scss/transitions";
21-
@import "bootstrap/scss/helpers";
22-
@import "bootstrap/scss/utilities/api";
23-
24-
.cursor-pointer {
25-
cursor: pointer;
26-
}
8+
// @import "bootstrap";
9+
font-size: 14px;
10+
11+
@import "bootstrap/scss/reboot";
12+
@import "bootstrap/scss/grid";
13+
@import "bootstrap/scss/containers";
14+
@import "bootstrap/scss/nav";
15+
@import "bootstrap/scss/forms";
16+
@import "bootstrap/scss/buttons";
17+
@import "bootstrap/scss/type";
18+
@import "bootstrap/scss/alert";
19+
@import "bootstrap/scss/close";
20+
@import "bootstrap/scss/transitions";
21+
@import "bootstrap/scss/helpers";
22+
@import "bootstrap/scss/utilities/api";
23+
24+
.cursor-pointer {
25+
cursor: pointer;
26+
}
27+
28+
.form-switch {
29+
display: flex;
30+
align-items: center;
31+
}
32+
33+
.csp-directives {
34+
margin-top: .5rem;
35+
36+
> div {
37+
padding: .5rem;
38+
39+
&:hover {
40+
background: $gray-200;
41+
}
42+
}
43+
}
2744
}

0 commit comments

Comments
 (0)