
Merge branch 'feature/sidebar-button' into next
Reviewed-by: Suwon Chae
@ebb2a7062749f3da9640546cdf7b15669b0f88f1
--- app/assets/stylesheets/less/_page.less
+++ app/assets/stylesheets/less/_page.less
... | ... | @@ -133,6 +133,10 @@ |
133 | 133 |
padding: 6px 2px; |
134 | 134 |
} |
135 | 135 |
|
136 |
+ .yobicon-arrow-left { |
|
137 |
+ padding: 6px 2px; |
|
138 |
+ } |
|
139 |
+ |
|
136 | 140 |
&:hover { |
137 | 141 |
cursor: pointer; |
138 | 142 |
color: white; |
--- app/views/layout.scala.html
+++ app/views/layout.scala.html
... | ... | @@ -100,13 +100,20 @@ |
100 | 100 |
window.location.href = "@routes.Application.index?path=" + window.location.pathname; |
101 | 101 |
} else { |
102 | 102 |
window.parent.$(".sidebar").toggle(); |
103 |
+ var btn = $("div.pin > i.yobicon-arrow-right").removeClass("yobicon-arrow-right").addClass("yobicon-arrow-left"); |
|
104 |
+ if (btn.length < 1) { |
|
105 |
+ $("div.pin > i.yobicon-arrow-left").removeClass("yobicon-arrow-left").addClass("yobicon-arrow-right"); |
|
106 |
+ } |
|
103 | 107 |
if(window.parent.$(".sidebar").text().trim().length < 1) { |
104 | 108 |
window.parent.location.reload(); |
105 | 109 |
} |
106 | 110 |
} |
107 | 111 |
}); |
108 |
- }) |
|
109 | 112 |
|
113 |
+ if ($("div#sidebar.sidebar", window.parent.document).css("display") === "block") { |
|
114 |
+ $("div.pin > i.yobicon-arrow-right").removeClass("yobicon-arrow-right").addClass("yobicon-arrow-left"); |
|
115 |
+ } |
|
116 |
+ }); |
|
110 | 117 |
</script> |
111 | 118 |
|
112 | 119 |
@if(Application.SEND_YONA_USAGE){ |
--- public/stylesheets/yobicon/style.css
+++ public/stylesheets/yobicon/style.css
... | ... | @@ -180,10 +180,10 @@ |
180 | 180 |
content: "\e02f"; |
181 | 181 |
} |
182 | 182 |
.yobicon-arrow-left:before { |
183 |
- content: "\e030"; |
|
183 |
+ content: "\e031"; |
|
184 | 184 |
} |
185 | 185 |
.yobicon-arrow-right:before { |
186 |
- content: "\e031"; |
|
186 |
+ content: "\e030"; |
|
187 | 187 |
} |
188 | 188 |
.yobicon-arrow-up:before { |
189 | 189 |
content: "\e032"; |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?