diff options
author | Teddy Wing | 2015-01-24 03:48:54 -0500 |
---|---|---|
committer | Teddy Wing | 2015-01-24 03:48:54 -0500 |
commit | 350792d5fe14e570b3d489148aabcab7cdea4572 (patch) | |
tree | ff072e982b059e6023a2a987d1595f52e93a38b2 | |
parent | 2289566e8eec89f14d18d0c8480f0c1ba446ea95 (diff) | |
download | Notes-angular-demo-350792d5fe14e570b3d489148aabcab7cdea4572.tar.bz2 |
main view: Add "Save" button
Create & style a save button to save your current note.
-rw-r--r-- | app/assets/stylesheets/layouts/_global.scss | 30 | ||||
-rw-r--r-- | app/views/home/main.html.erb | 4 |
2 files changed, 34 insertions, 0 deletions
diff --git a/app/assets/stylesheets/layouts/_global.scss b/app/assets/stylesheets/layouts/_global.scss index e952fb2..621df8d 100644 --- a/app/assets/stylesheets/layouts/_global.scss +++ b/app/assets/stylesheets/layouts/_global.scss @@ -19,6 +19,10 @@ body { } +.position-relative { + position: relative; +} + .position-fixed { position: fixed; } @@ -39,6 +43,12 @@ body { width: 100%; height: 30px; padding: 20px; + + .right-button { + position: absolute; + right: 40px; + top: -33px; + } } @@ -79,3 +89,23 @@ $sidebar-width: 250px; font: 18px/1.7 Georgia, Times, serif; outline: none; } + + +.button { + padding: 12px 15px; + background-color: rgb(18, 113, 18); + color: #ddd; + text-decoration: none; + border-radius: 6px; +} + +.button:hover { + background-color: #178E17; + color: #eee; +} + +.button:active { + color: #ddd; + -webkit-box-shadow:inset 0 2px 4px 0 #0D4F0D; + box-shadow:inset 0 2px 4px 0 #0D4F0D; +} diff --git a/app/views/home/main.html.erb b/app/views/home/main.html.erb index c3bbcd5..73ee2b6 100644 --- a/app/views/home/main.html.erb +++ b/app/views/home/main.html.erb @@ -1,5 +1,9 @@ <div class="header position-fixed top-0"> <h1 class="font-size-28 font-weight-semibold">Notes</h1> + + <div class="position-relative"> + <a href="#" class="button right-button">Save</a> + </div> </div> <div class="margin-top-70"> |