Skip to content

Commit 053f991

Browse files
committed
Add full width button and styles for popup button
1 parent bfe8d8e commit 053f991

File tree

3 files changed

+44
-4
lines changed

3 files changed

+44
-4
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.content_item_button {
2+
border: 1px solid #BBB;
3+
margin-top: 10px;
4+
margin-bottom: 10px;
5+
width: 100%;
6+
background-color: white;
7+
color: #747D8E;
8+
9+
&:active {
10+
background-color: #DDD;
11+
}
12+
}
13+
14+
.text-center {
15+
text-align: center;
16+
}
17+
18+
.logo {
19+
font-size: 56px;
20+
}
21+
22+
.button_content {
23+
padding-top: 30px;
24+
padding-bottom: 20px;
25+
}
26+
27+
.content_item_button-text {
28+
font-size: 12px;
29+
}
Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,13 @@
1-
%button{ class: "popup--open mdl-button mdl-js-button mdl-button--raised mdl-button--success mdl-js-ripple-effect" }
2-
= render_button_name
1+
= render_label
2+
%br
3+
%button.content_item_button.text-center
4+
.button_content
5+
%i{ class: "material-icons icon" }
6+
cloud_upload
7+
%br
8+
%span.content_item_button-text
9+
Click to add a
10+
= field.name
11+
from the media library
12+
%small
13+
Recommended size: 1452px x 530px with a live area of 930px x 530px

app/cells/plugins/core/content_item_cell.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ def popup
77

88
private
99

10-
def render_field_name
11-
"Insert #{field.name}"
10+
def render_label
11+
"Add #{field.name}"
1212
end
1313
end
1414
end

0 commit comments

Comments
 (0)