Skip to content

Commit a4c4041

Browse files
authored
Merge pull request #8 from rajbos/css-moved
Move css to central file
2 parents 77eeb58 + 8095e6d commit a4c4041

File tree

7 files changed

+42
-69
lines changed

7 files changed

+42
-69
lines changed

styles.css

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
.column-container {
2+
display: flex;
3+
justify-content: center;
4+
}
5+
6+
.column {
7+
flex: 1;
8+
margin: 0 10px;
9+
}
10+
11+
.GHAzDo-widget {
12+
background-color: rgb(104, 33, 122);
13+
color: white;
14+
text-align: center;
15+
font-size: 30px;
16+
}
17+
18+
.link {
19+
color: white !important;
20+
text-decoration: none !important;
21+
}
22+
23+
.title {
24+
font-size: 1rem;
25+
text-align: left;
26+
text-wrap: balance;
27+
}
28+
29+
.alertValue {
30+
margin-block-start: 10px;
31+
}

vss-extension-dev.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifestVersion": 1,
33
"id": "GHAzDoWidget-DEV",
4-
"version": "0.0.1.34",
4+
"version": "0.0.1.35",
55
"public": false,
66
"name": "Advanced Security dashboard Widgets [DEV]",
77
"description": "[DEV] GitHub Advanced Security for Azure DevOps dashboard widgets",
@@ -116,6 +116,9 @@
116116
{
117117
"path": "library.js", "addressable": true
118118
},
119+
{
120+
"path": "styles.css", "addressable": true
121+
},
119122
{
120123
"path": "sdk/scripts", "addressable": true
121124
},

vss-extension.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@
116116
{
117117
"path": "library.js", "addressable": true
118118
},
119+
{
120+
"path": "styles.css", "addressable": true
121+
},
119122
{
120123
"path": "sdk/scripts", "addressable": true
121124
},

widget_1x1/configuration_1x1.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<html xmlns="http://www.w3.org/1999/xhtml">
33
<head>
44
<script src="../lib/VSS.SDK.min.js"></script>
5+
<link rel="stylesheet" href="../styles.css" />
56

67
<script type="text/javascript">
78
VSS.init({

widget_1x1/widget_1x1.html

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<head>
44
<script src="../lib/VSS.SDK.min.js"></script>
55
<script src="../library.js"></script>
6+
<link rel="stylesheet" href="../styles.css" />
67

78
<script type="text/javascript">
89
VSS.init({
@@ -134,40 +135,6 @@
134135
}
135136
</script>
136137

137-
<style>
138-
.column-container {
139-
display: flex;
140-
justify-content: center;
141-
}
142-
143-
.column {
144-
flex: 1;
145-
margin: 0 10px;
146-
}
147-
148-
.GHAzDo-widget {
149-
background-color: rgb(104, 33, 122);
150-
color: white;
151-
text-align: center;
152-
font-size: 30px;
153-
}
154-
155-
.link {
156-
color: white !important;
157-
text-decoration: none !important;
158-
}
159-
160-
.title {
161-
font-size: 1rem;
162-
text-align: left;
163-
text-wrap: balance;
164-
}
165-
166-
.alertValue {
167-
margin-block-start: 10px;
168-
}
169-
</style>
170-
171138
</head>
172139
<body>
173140
<div class="widget GHAzDo-widget">

widget_2x1/configuration_2x1.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<html xmlns="http://www.w3.org/1999/xhtml">
33
<head>
44
<script src="../lib/VSS.SDK.min.js"></script>
5+
<link rel="stylesheet" href="../styles.css" />
56

67
<script type="text/javascript">
78
VSS.init({

widget_2x1/widget_2x1.html

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<head>
44
<script src="../lib/VSS.SDK.min.js"></script>
55
<script src="../library.js"></script>
6+
<link rel="stylesheet" href="../styles.css" />
67

78
<script type="text/javascript">
89
VSS.init({
@@ -104,40 +105,6 @@
104105
}
105106
</script>
106107

107-
<style>
108-
.column-container {
109-
display: flex;
110-
justify-content: center;
111-
}
112-
113-
.column {
114-
flex: 1;
115-
margin: 0 10px;
116-
}
117-
118-
.GHAzDo-widget {
119-
background-color: rgb(104, 33, 122);
120-
color: white;
121-
text-align: center;
122-
font-size: 30px;
123-
}
124-
125-
.link {
126-
color: white !important;
127-
text-decoration: none !important;
128-
}
129-
130-
.title {
131-
font-size: 1rem;
132-
text-align: left;
133-
text-wrap: balance;
134-
}
135-
136-
.alertValue {
137-
margin-block-start: 10px;
138-
}
139-
</style>
140-
141108
</head>
142109
<body>
143110
<div class="widget GHAzDo-widget">

0 commit comments

Comments
 (0)