Skip to content

Commit ba82bed

Browse files
Merge pull request #1 from flibbertigibbet/feature/css-styles
Use CSS instead of hardcoded styles
2 parents f1d12c5 + 29fbc2d commit ba82bed

File tree

12 files changed

+120
-112
lines changed

12 files changed

+120
-112
lines changed

dist/jsoneditor.css

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
.jse-modal{
2+
background-color: white;
3+
border: 1px solid black;
4+
position: absolute;
5+
z-index: 10;
6+
box-shadow:3px 3px black;
7+
}
8+
.jse-disableHeader, .jse-disableLabel{
9+
color: #ccc;
10+
}
11+
.jse-CheckboxLabel{
12+
font-weight: normal;
13+
}
14+
.jse-Checkbox{
15+
display:inline-block;
16+
width:auto;
17+
}
18+
.jse-MultiCheckboxLabel{
19+
display:block;
20+
}
21+
.jse-MultiCheckboxControl{
22+
display: inline-block;
23+
margin-right: 20px;
24+
}
25+
.jse-Switcher{
26+
background-color:transparent;
27+
height:auto;
28+
font-style:italic;
29+
font-weight:normal;
30+
padding:0 0 0 3px;
31+
}
32+
.jse-TextareaInput{
33+
width:100%;
34+
height:300px;
35+
box-sizing:border-box;
36+
}
37+
.jse-IndentedPanel{
38+
padding-left:10px;
39+
margin-left:10px;
40+
border-left:1px solid #ccc;
41+
}
42+
.jse-Tab{
43+
border: 1px solid #ccc;
44+
borderWidth: 1px 0 1px 1px;
45+
textAlign: center;
46+
lineHeight: 30px;
47+
borderRadius: 5px;
48+
borderBottomRightRadius: 0;
49+
borderTopRightRadius: 0;
50+
fontWeight: bold;
51+
cursor: pointer;
52+
}
53+
.jse-TabActive{
54+
opacity: 1;
55+
background: white;
56+
}
57+
.jse-TabInActive{
58+
opacity:0.5;
59+
background: none;
60+
}
61+
.jse-BlockLink{
62+
display: block;
63+
}
64+
.jse-Media{
65+
width:100%;
66+
}
67+
.jse-{
68+
}
69+
.jse-{
70+
}
71+

dist/jsoneditor.js

Lines changed: 19 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jsoneditor.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jsoneditor.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/advanced.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<title>Advanced JSON Editor Example</title>
66

77
<script src="../dist/jsoneditor.js"></script>
8+
<link rel='stylesheet' href="../dist/jsoneditor.css" href="styles.css">
89
</head>
910
<body>
1011
<h1>Advanced JSON Editor Example</h1>

examples/basic.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="utf-8" />
55
<title>Basic JSON Editor Example</title>
66
<script src="../dist/jsoneditor.js"></script>
7+
<link rel='stylesheet' href="../dist/jsoneditor.css" href="styles.css">
78
</head>
89
<body>
910
<h1>Basic JSON Editor Example</h1>

examples/css_integration.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<link rel='stylesheet' href='//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.0.3/css/font-awesome.css'>
1111

1212
<script src="../dist/jsoneditor.js"></script>
13+
<link rel='stylesheet' href="../dist/jsoneditor.css" href="styles.css">
1314

1415
<script>
1516
// Set the default CSS theme and icon library globally

examples/recursive.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<script src='//cdn.jsdelivr.net/sceditor/1.4.3/plugins/xhtml.js'></script>
1717

1818
<script src="../dist/jsoneditor.js"></script>
19+
<link rel='stylesheet' href="../dist/jsoneditor.css" href="styles.css">
1920
</head>
2021
<body>
2122
<div class='container'>

examples/select2.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="utf-8" />
55
<title>JSON Editor Select2 Integration Example</title>
66
<script src="../dist/jsoneditor.js"></script>
7+
<link rel='stylesheet' href="../dist/jsoneditor.css" href="styles.css">
78
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
89
<script src="//cdn.jsdelivr.net/select2/3.4.8/select2.min.js"></script>
910
<link rel="stylesheet" href="//cdn.jsdelivr.net/select2/3.4.8/select2.css">

examples/upload.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="utf-8" />
55
<title>JSON Editor Upload Example</title>
66
<script src="../dist/jsoneditor.js"></script>
7+
<link rel='stylesheet' href="../dist/jsoneditor.css" href="styles.css">
78
</head>
89
<body>
910
<h1>JSON Editor Upload Example</h1>

0 commit comments

Comments
 (0)