From 350792d5fe14e570b3d489148aabcab7cdea4572 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 24 Jan 2015 03:48:54 -0500 Subject: main view: Add "Save" button Create & style a save button to save your current note. --- app/assets/stylesheets/layouts/_global.scss | 30 +++++++++++++++++++++++++++++ app/views/home/main.html.erb | 4 ++++ 2 files changed, 34 insertions(+) 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 @@