diff options
author | Javan Makhmali <javan@javan.us> | 2018-02-08 16:02:16 -0500 |
---|---|---|
committer | Javan Makhmali <javan@javan.us> | 2018-02-08 16:02:16 -0500 |
commit | d8fd858c9cba69c04e6934f438d045dad2717e90 (patch) | |
tree | 1a90026bcf7fe5c4aaf8e3e72fcfb751a44d2a54 /test/dummy/app/assets | |
parent | 5012d645daa65ef776d27eb973b3278302c36cad (diff) | |
download | rails-d8fd858c9cba69c04e6934f438d045dad2717e90.tar.gz rails-d8fd858c9cba69c04e6934f438d045dad2717e90.tar.bz2 rails-d8fd858c9cba69c04e6934f438d045dad2717e90.zip |
Tests: Add Message scaffolding
Diffstat (limited to 'test/dummy/app/assets')
-rw-r--r-- | test/dummy/app/assets/javascripts/messages.js | 2 | ||||
-rw-r--r-- | test/dummy/app/assets/stylesheets/messages.css | 4 | ||||
-rw-r--r-- | test/dummy/app/assets/stylesheets/scaffold.css | 80 |
3 files changed, 86 insertions, 0 deletions
diff --git a/test/dummy/app/assets/javascripts/messages.js b/test/dummy/app/assets/javascripts/messages.js new file mode 100644 index 0000000000..dee720facd --- /dev/null +++ b/test/dummy/app/assets/javascripts/messages.js @@ -0,0 +1,2 @@ +// Place all the behaviors and hooks related to the matching controller here. +// All this logic will automatically be available in application.js. diff --git a/test/dummy/app/assets/stylesheets/messages.css b/test/dummy/app/assets/stylesheets/messages.css new file mode 100644 index 0000000000..afad32db02 --- /dev/null +++ b/test/dummy/app/assets/stylesheets/messages.css @@ -0,0 +1,4 @@ +/* + Place all the styles related to the matching controller here. + They will automatically be included in application.css. +*/ diff --git a/test/dummy/app/assets/stylesheets/scaffold.css b/test/dummy/app/assets/stylesheets/scaffold.css new file mode 100644 index 0000000000..cd4f3de38d --- /dev/null +++ b/test/dummy/app/assets/stylesheets/scaffold.css @@ -0,0 +1,80 @@ +body { + background-color: #fff; + color: #333; + margin: 33px; +} + +body, p, ol, ul, td { + font-family: verdana, arial, helvetica, sans-serif; + font-size: 13px; + line-height: 18px; +} + +pre { + background-color: #eee; + padding: 10px; + font-size: 11px; +} + +a { + color: #000; +} + +a:visited { + color: #666; +} + +a:hover { + color: #fff; + background-color: #000; +} + +th { + padding-bottom: 5px; +} + +td { + padding: 0 5px 7px; +} + +div.field, +div.actions { + margin-bottom: 10px; +} + +#notice { + color: green; +} + +.field_with_errors { + padding: 2px; + background-color: red; + display: table; +} + +#error_explanation { + width: 450px; + border: 2px solid red; + padding: 7px 7px 0; + margin-bottom: 20px; + background-color: #f0f0f0; +} + +#error_explanation h2 { + text-align: left; + font-weight: bold; + padding: 5px 5px 5px 15px; + font-size: 12px; + margin: -7px -7px 0; + background-color: #c00; + color: #fff; +} + +#error_explanation ul li { + font-size: 12px; + list-style: square; +} + +label { + display: block; +} |