Skip to content

Commit 062aafa

Browse files
author
Alvin
committed
improves tab styles
1 parent 725375e commit 062aafa

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

src/themes/semantic_ui.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ JSONEditor.defaults.themes.semantic_ui = JSONEditor.AbstractTheme.extend({
5353

5454
return group;
5555
},
56-
getIndentedPanel: function() {
56+
getIndentedPanel: function() {
5757
var el = document.createElement('div');
58-
el.className = 'ui form ui bottom attached segment';
59-
el.style.paddingBottom = 0;
60-
return el;
58+
el.className = 'ui form ui basic segment';
59+
//el.style.paddingBottom = 0;
60+
return el;
6161
},
6262
getFormInputDescription: function(text) {
6363
var el = document.createElement('p');
@@ -67,7 +67,8 @@ JSONEditor.defaults.themes.semantic_ui = JSONEditor.AbstractTheme.extend({
6767
},
6868
getHeaderButtonHolder: function() {
6969
var el = this.getButtonHolder();
70-
el.className = 'ui compact mini right floated buttons';
70+
//el.className = 'ui compact mini right floated buttons';
71+
el.style.float = "right"
7172
return el;
7273
},
7374
getButtonHolder: function() {
@@ -107,8 +108,11 @@ JSONEditor.defaults.themes.semantic_ui = JSONEditor.AbstractTheme.extend({
107108
},
108109
getTabHolder: function() {
109110
var el = document.createElement('div');
110-
el.innerHTML = "<div class='ui small top attached tabular menu'></div><div class='tab item'></div>";
111-
el.className = 'rows';
111+
el.className = 'ui tabbed-array grid';
112+
//el.style.borderTop = "2px solid #ddd";
113+
//el.style.marginTop = "10px!important";
114+
el.style.clear = "both";
115+
el.innerHTML = "<div class='three wide column ui small vertical secondary pointing menu'></div><div class='rows thirteen wide stretched column'></div>";
112116
return el;
113117
},
114118
getTab: function(text) {

0 commit comments

Comments
 (0)