Skip to content

Commit 140bc2c

Browse files
author
Robert Sfarzo
committed
button css
1 parent 50e098d commit 140bc2c

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
lines changed

app/assets/stylesheets/application.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
* It is generally better to create a new file per style scope.
1212
*
1313
*= require_self
14-
*/
14+
*/
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
class ApplicationController < ActionController::Base
2+
# layout "application"
23
end

public/index.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,26 @@
33
<head>
44
<title>Rock-Paper-Scissors Rules</title>
55

6+
<link rel="stylesheet" href="/styles.css">
67
<!-- Expand the number of characters we can use in the document beyond basic ASCII 🎉 -->
78
<meta charset="utf-8">
89
</head>
910

1011
<body>
1112
<div>
12-
<a href="/rock">
13+
<a class="button" href="/rock">
1314
Play Rock
1415
</a>
1516
</div>
1617

1718
<div>
18-
<a href="/paper">
19+
<a class="button" href="/paper">
1920
Play Paper
2021
</a>
2122
</div>
2223

2324
<div>
24-
<a href="/scissors">
25+
<a class="button" href="/scissors">
2526
Play Scissors
2627
</a>
2728
</div>

public/styles.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
* {
2+
font-family: Arial, Helvetica, sans-serif;
3+
}
4+
.button {
5+
background-color: #4CAF50;
6+
border: none;
7+
color: white;
8+
padding: 15px 32px;
9+
text-align: center;
10+
text-decoration: none;
11+
display: inline-block;
12+
font-size: 16px;
13+
margin: 4px 2px;
14+
cursor: pointer;
15+
border-radius: 12px;
16+
}

0 commit comments

Comments
 (0)