Skip to content

Commit 3ab3529

Browse files
committed
Move upgrade related css into separate file
1 parent fb8e6b8 commit 3ab3529

File tree

4 files changed

+45
-47
lines changed

4 files changed

+45
-47
lines changed

dash/dash-renderer/src/components/error/FrontEnd/FrontEndError.css

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,6 @@
1212
margin-right: 10px;
1313
}
1414

15-
.dash-debug-menu__upgrade-button {
16-
background-color: #a159ff0d;
17-
border: 1px solid #864ad433;
18-
color: #7f4bc4;
19-
margin-left: 10px;
20-
}
21-
22-
.dash-debug-menu__upgrade-button:hover {
23-
background-color: #864ad433;
24-
}
25-
2615
.dash-fe-error__icon-x:hover {
2716
color: #a1a9b5;
2817
}
@@ -53,14 +42,6 @@
5342
height: 28px;
5443
margin: 0px 8px;
5544
}
56-
.dash-debug-menu__error-count {
57-
font-size: 12px;
58-
color: #fff;
59-
background-color: #c73a3a;
60-
padding: 3px 5px;
61-
border-radius: 3px;
62-
margin: 0 5px;
63-
}
6445
.dash-fe-error-top__group:first-child {
6546
/*
6647
* 77% is the maximum space allowed based off of the other elements

dash/dash-renderer/src/components/error/menu/DebugMenu.css

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -68,31 +68,6 @@
6868
margin: 0 5px;
6969
}
7070

71-
.dash-debug-menu__upgrade-tooltip button,
72-
.dash-debug-menu__upgrade-tooltip a {
73-
background: white;
74-
border: none;
75-
padding: 2px 5px;
76-
white-space: nowrap;
77-
color: #7f4bc4;
78-
font-size: 10pt;
79-
text-decoration: none;
80-
font-family: none;
81-
cursor: pointer;
82-
display: flex;
83-
}
84-
85-
.dash-debug-menu__upgrade-tooltip:after {
86-
content: ' ';
87-
position: absolute;
88-
top: 100%;
89-
left: 50%;
90-
margin-left: -5px;
91-
border-width: 10px;
92-
border-style: solid;
93-
border-color: white transparent transparent transparent;
94-
}
95-
9671
.dash-debug-menu__content {
9772
display: flex;
9873
align-items: stretch;
@@ -156,9 +131,13 @@
156131
color: rgb(50, 50, 50);
157132
}
158133

159-
.dash-debug-error-count {
160-
display: block;
161-
margin: 0 3px;
134+
.dash-debug-menu__error-count {
135+
font-size: 12px;
136+
color: #fff;
137+
background-color: #c73a3a;
138+
padding: 3px 5px;
139+
border-radius: 3px;
140+
margin: 0 5px;
162141
}
163142

164143
.dash-debug-disconnected {
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
2+
.dash-debug-menu__upgrade-tooltip button,
3+
.dash-debug-menu__upgrade-tooltip a {
4+
background: white;
5+
border: none;
6+
padding: 2px 5px;
7+
white-space: nowrap;
8+
color: #7f4bc4;
9+
font-size: 10pt;
10+
text-decoration: none;
11+
font-family: none;
12+
cursor: pointer;
13+
display: flex;
14+
}
15+
16+
.dash-debug-menu__upgrade-tooltip:after {
17+
content: ' ';
18+
position: absolute;
19+
top: 100%;
20+
left: 50%;
21+
margin-left: -5px;
22+
border-width: 10px;
23+
border-style: solid;
24+
border-color: white transparent transparent transparent;
25+
}
26+
27+
.dash-debug-menu__upgrade-button {
28+
background-color: #a159ff0d;
29+
border: 1px solid #864ad433;
30+
color: #7f4bc4;
31+
margin-left: 10px;
32+
}
33+
34+
.dash-debug-menu__upgrade-button:hover {
35+
background-color: #864ad433;
36+
}

dash/dash-renderer/src/components/error/menu/VersionInfo.react.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import React, {useEffect, useState} from 'react';
22

3+
import './VersionInfo.css';
4+
35
const DAY_IN_MS = 86400000;
46

57
function compareVersions(v1, v2) {

0 commit comments

Comments
 (0)