Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ff9d801

Browse filesBrowse files
committed
move plot.ly logo on top for vertical modebar
1 parent 1d4ac7e commit ff9d801
Copy full SHA for ff9d801

File tree

Expand file treeCollapse file tree

3 files changed

+7
-3
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+7
-3
lines changed

‎build/plotcss.js

Copy file name to clipboardExpand all lines: build/plotcss.js
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ var rules = {
3737
"X .modebar-group": "float:left;display:inline-block;box-sizing:border-box;margin-left:8px;position:relative;vertical-align:middle;white-space:nowrap;",
3838
"X .modebar-btn": "position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;",
3939
"X .modebar-btn svg": "position:relative;top:2px;",
40-
"X .modebar-btn.modebar-btn--logo": "font-size:20px;",
4140
"X .modebar.vertical .modebar-group": "display:block;float:none;margin-left:0px;margin-top:8px;",
4241
"X .modebar.vertical .modebar-group .modebar-btn": "display:block;text-align:center;",
4342
"X [data-title]:before,X [data-title]:after": "position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;",

‎src/components/modebar/modebar.js

Copy file name to clipboardExpand all lines: src/components/modebar/modebar.js
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,12 @@ proto.update = function(graphInfo, buttons) {
7070
this.updateButtons(buttons, context.modeBarStyle.iconColor);
7171

7272
if(context.displaylogo) {
73-
this.element.appendChild(this.getLogo());
73+
if(context.modeBarStyle.orientation === 'v') {
74+
this.element.prepend(this.getLogo());
75+
} else {
76+
this.element.appendChild(this.getLogo());
77+
}
78+
7479
this.hasLogo = true;
7580
}
7681
}

‎src/css/_modebar.scss

Copy file name to clipboardExpand all lines: src/css/_modebar.scss
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141

4242
&.modebar-btn--logo {
43-
font-size: 20px;
43+
4444
}
4545
}
4646

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.