Skip to content

Commit 5bd9aa0

Browse files
committed
fix styling
1 parent 872a00d commit 5bd9aa0

File tree

4 files changed

+21
-16
lines changed

4 files changed

+21
-16
lines changed

app/assets/stylesheets/_install_steps.scss

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ section {
4747
}
4848

4949
.install_steps.show {
50-
// color: white;
50+
color: white;
5151
}
5252

5353
.install_steps.show {
@@ -56,7 +56,11 @@ section {
5656
}
5757
}
5858

59-
.choose_os_version, .install_rails, .update_rubygems {
59+
.step_color_0 {
60+
color: rgb(59, 60, 60)!important;
61+
}
62+
63+
.step_color_1 {
6064
background-color: #5B6474;
6165

6266
.note:before {
@@ -84,15 +88,15 @@ section {
8488
padding: 1.7em;
8589
}
8690

87-
.find_the_command_line, .install_rvm_and_ruby {
91+
.step_color_2 {
8892
background-color: #3B4960;
8993

9094
.note:before {
9195
border-color:#fff #3B4960 rgba(255,255,255,0.2) #658E15;
9296
}
9397
}
9498

95-
.railsinstaller, .rails_for_linux_and_other, .install_git, .railsinstaller_windows {
99+
.step_color_3 {
96100
background-color: #CE613E;
97101

98102
.prompt {
@@ -119,23 +123,23 @@ section {
119123
}
120124
}
121125

122-
.verify_ruby_version, .install_xcode, .textmate {
126+
.step_color_4 {
123127
background-color: #65AE55;
124128

125129
.note:before {
126130
border-color:#fff #65AE55 rgba(255,255,255,0.2) #658E15;
127131
}
128132
}
129133

130-
.configure_git, .find_git_bash, .install_homebrew, .verify_rails_version {
131-
// background-color: #8E59BC;
134+
.step_color_5 {
135+
background-color: #8E59BC;
132136

133137
.note:before {
134138
border-color:#fff #8E59BC rgba(255,255,255,0.2) #658E15;
135139
}
136140
}
137141

138-
.sublime_text, .update_ruby, .create_ssh_key {
142+
.step_color_6 {
139143
background-color: #72B49B;
140144

141145
.option {
@@ -152,15 +156,15 @@ section {
152156
}
153157
}
154158

155-
.create_your_first_app, .update_rails {
159+
.step_color_7 {
156160
background: #CF7C00;
157161

158162
.note:before {
159163
border-color:#fff #CF7C00 rgba(255,255,255,0.2) #658E15;
160164
}
161165
}
162166

163-
.see_it_live {
167+
.step_color_8 {
164168
background: #5181BD;
165169

166170
.note:before {
@@ -198,7 +202,7 @@ header {
198202
}
199203

200204
.instructions {
201-
// text-align: center;
205+
text-align: center;
202206
font-size: 20px;
203207
line-height: 1.4;
204208
margin: 0 15%;
@@ -280,7 +284,7 @@ http://nicolasgallagher.com/pure-css-folded-corner-effect/
280284

281285
.note {
282286
background: rgba(255,255,255,0.2);
283-
// color: #fff;
287+
color: #fff;
284288
font-size: 90%;
285289
margin-bottom: 2em;
286290
margin-top: 2em;
@@ -295,7 +299,7 @@ http://nicolasgallagher.com/pure-css-folded-corner-effect/
295299
right:0;
296300
border-width:0 16px 16px 0;
297301
border-style:solid;
298-
// border-color:#fff #CF7C00 rgba(255,255,255,0.2) #658E15;
302+
border-color:#fff #CF7C00 rgba(255,255,255,0.2) #658E15;
299303
background: rgba(255,255,255,1);
300304
-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
301305
-moz-box-shadow:0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);

app/controllers/install_steps_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class InstallStepsController < ApplicationController
88
# rescue_from Wicked::Wizard::InvalidStepError, with: ->{ redirect_to root_path }
99

1010
def show
11+
@color_class = "step_color_#{current_step_index % 9}" if current_step_index.present?
1112
render_wizard
1213
end
1314

app/views/install_steps/install_homebrew.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
</li>
1010
<li>
1111
<p>Press enter and you’ll be prompted for your password. Enter your system password and press enter again.</p>
12-
<p>Note: When you enter your system password here, you won’t see any movement or dots or characters. It’s confusing at first, but once you press enter it will tell you if it’s wrong.</p>
12+
<p class="note">Note: When you enter your system password here, you won’t see any movement or dots or characters. It’s confusing at first, but once you press enter it will tell you if it’s wrong.</p>
1313
<p>When this is done you should see a screen like this</p>
1414
<%= image_tag 'mac_steps/homebrew_terminal_install_finish.png', class: "img-responsive" %>
15-
<p>Note the block towards the bottoms that says <samp>==> Installation successful!</samp> Woop woop! First part down.</p>
15+
<p class="note">Note the block towards the bottoms that says <samp>==> Installation successful!</samp> Woop woop! First part down.</p>
1616
</li>
1717
</ol>
1818
</section>

app/views/layouts/application.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<%= yield(:head) %>
1616
</head>
17-
<body class="<%= controller_name %> <%= action_name %> <%= params[:id] %>">
17+
<body class="<%= controller_name %> <%= action_name %> <%= params[:id] %> <%= @color_class %>">
1818

1919
<%= yield(:header) %>
2020

0 commit comments

Comments
 (0)