app/views/layouts/opay/application.html.erb in opay-1.1.3 vs app/views/layouts/opay/application.html.erb in opay-1.1.4

- old
+ new

@@ -3,12 +3,695 @@ <head> <title>Opay</title> <%= stylesheet_link_tag "opay/application", :media => "all" %> <%= javascript_include_tag "opay/application" %> <%= csrf_meta_tags %> + + <style> + .wraper { + width: 400px; + margin: 0 auto; + } + + .pull-left {float: left;} + .pull-right {float: right;} + + a {text-decoration: none;} + + /*! + * Bootstrap v2.3.2 + * + * Copyright 2013 Twitter, Inc + * Licensed under the Apache License v2.0 + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Designed and built with all the love in the world @twitter by @mdo and @fat. + */ + .clearfix { + *zoom: 1; + } + .clearfix:before, + .clearfix:after { + display: table; + content: ""; + line-height: 0; + } + .clearfix:after { + clear: both; + } + .hide-text { + font: 0/0 a; + color: transparent; + text-shadow: none; + background-color: transparent; + border: 0; + } + .input-block-level { + display: block; + width: 100%; + min-height: 30px; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + } + table { + max-width: 100%; + background-color: transparent; + border-collapse: collapse; + border-spacing: 0; + } + .table { + width: 100%; + margin-bottom: 20px; + } + .table th, + .table td { + padding: 8px; + line-height: 20px; + text-align: left; + vertical-align: top; + border-top: 1px solid #dddddd; + } + .table th { + font-weight: bold; + } + .table thead th { + vertical-align: bottom; + } + .table caption + thead tr:first-child th, + .table caption + thead tr:first-child td, + .table colgroup + thead tr:first-child th, + .table colgroup + thead tr:first-child td, + .table thead:first-child tr:first-child th, + .table thead:first-child tr:first-child td { + border-top: 0; + } + .table tbody + tbody { + border-top: 2px solid #dddddd; + } + .table .table { + background-color: #ffffff; + } + .table-condensed th, + .table-condensed td { + padding: 4px 5px; + } + .table-bordered { + border: 1px solid #dddddd; + border-collapse: separate; + *border-collapse: collapse; + border-left: 0; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + } + .table-bordered th, + .table-bordered td { + border-left: 1px solid #dddddd; + } + .table-bordered caption + thead tr:first-child th, + .table-bordered caption + tbody tr:first-child th, + .table-bordered caption + tbody tr:first-child td, + .table-bordered colgroup + thead tr:first-child th, + .table-bordered colgroup + tbody tr:first-child th, + .table-bordered colgroup + tbody tr:first-child td, + .table-bordered thead:first-child tr:first-child th, + .table-bordered tbody:first-child tr:first-child th, + .table-bordered tbody:first-child tr:first-child td { + border-top: 0; + } + .table-bordered thead:first-child tr:first-child > th:first-child, + .table-bordered tbody:first-child tr:first-child > td:first-child, + .table-bordered tbody:first-child tr:first-child > th:first-child { + -webkit-border-top-left-radius: 4px; + -moz-border-radius-topleft: 4px; + border-top-left-radius: 4px; + } + .table-bordered thead:first-child tr:first-child > th:last-child, + .table-bordered tbody:first-child tr:first-child > td:last-child, + .table-bordered tbody:first-child tr:first-child > th:last-child { + -webkit-border-top-right-radius: 4px; + -moz-border-radius-topright: 4px; + border-top-right-radius: 4px; + } + .table-bordered thead:last-child tr:last-child > th:first-child, + .table-bordered tbody:last-child tr:last-child > td:first-child, + .table-bordered tbody:last-child tr:last-child > th:first-child, + .table-bordered tfoot:last-child tr:last-child > td:first-child, + .table-bordered tfoot:last-child tr:last-child > th:first-child { + -webkit-border-bottom-left-radius: 4px; + -moz-border-radius-bottomleft: 4px; + border-bottom-left-radius: 4px; + } + .table-bordered thead:last-child tr:last-child > th:last-child, + .table-bordered tbody:last-child tr:last-child > td:last-child, + .table-bordered tbody:last-child tr:last-child > th:last-child, + .table-bordered tfoot:last-child tr:last-child > td:last-child, + .table-bordered tfoot:last-child tr:last-child > th:last-child { + -webkit-border-bottom-right-radius: 4px; + -moz-border-radius-bottomright: 4px; + border-bottom-right-radius: 4px; + } + .table-bordered tfoot + tbody:last-child tr:last-child td:first-child { + -webkit-border-bottom-left-radius: 0; + -moz-border-radius-bottomleft: 0; + border-bottom-left-radius: 0; + } + .table-bordered tfoot + tbody:last-child tr:last-child td:last-child { + -webkit-border-bottom-right-radius: 0; + -moz-border-radius-bottomright: 0; + border-bottom-right-radius: 0; + } + .table-bordered caption + thead tr:first-child th:first-child, + .table-bordered caption + tbody tr:first-child td:first-child, + .table-bordered colgroup + thead tr:first-child th:first-child, + .table-bordered colgroup + tbody tr:first-child td:first-child { + -webkit-border-top-left-radius: 4px; + -moz-border-radius-topleft: 4px; + border-top-left-radius: 4px; + } + .table-bordered caption + thead tr:first-child th:last-child, + .table-bordered caption + tbody tr:first-child td:last-child, + .table-bordered colgroup + thead tr:first-child th:last-child, + .table-bordered colgroup + tbody tr:first-child td:last-child { + -webkit-border-top-right-radius: 4px; + -moz-border-radius-topright: 4px; + border-top-right-radius: 4px; + } + .table-striped tbody > tr:nth-child(odd) > td, + .table-striped tbody > tr:nth-child(odd) > th { + background-color: #f9f9f9; + } + .table-hover tbody tr:hover > td, + .table-hover tbody tr:hover > th { + background-color: #f5f5f5; + } + table td[class*="span"], + table th[class*="span"], + .row-fluid table td[class*="span"], + .row-fluid table th[class*="span"] { + display: table-cell; + float: none; + margin-left: 0; + } + .table td.span1, + .table th.span1 { + float: none; + width: 44px; + margin-left: 0; + } + .table td.span2, + .table th.span2 { + float: none; + width: 124px; + margin-left: 0; + } + .table td.span3, + .table th.span3 { + float: none; + width: 204px; + margin-left: 0; + } + .table td.span4, + .table th.span4 { + float: none; + width: 284px; + margin-left: 0; + } + .table td.span5, + .table th.span5 { + float: none; + width: 364px; + margin-left: 0; + } + .table td.span6, + .table th.span6 { + float: none; + width: 444px; + margin-left: 0; + } + .table td.span7, + .table th.span7 { + float: none; + width: 524px; + margin-left: 0; + } + .table td.span8, + .table th.span8 { + float: none; + width: 604px; + margin-left: 0; + } + .table td.span9, + .table th.span9 { + float: none; + width: 684px; + margin-left: 0; + } + .table td.span10, + .table th.span10 { + float: none; + width: 764px; + margin-left: 0; + } + .table td.span11, + .table th.span11 { + float: none; + width: 844px; + margin-left: 0; + } + .table td.span12, + .table th.span12 { + float: none; + width: 924px; + margin-left: 0; + } + .table tbody tr.success > td { + background-color: #dff0d8; + } + .table tbody tr.error > td { + background-color: #f2dede; + } + .table tbody tr.warning > td { + background-color: #fcf8e3; + } + .table tbody tr.info > td { + background-color: #d9edf7; + } + .table-hover tbody tr.success:hover > td { + background-color: #d0e9c6; + } + .table-hover tbody tr.error:hover > td { + background-color: #ebcccc; + } + .table-hover tbody tr.warning:hover > td { + background-color: #faf2cc; + } + .table-hover tbody tr.info:hover > td { + background-color: #c4e3f3; + } + .btn { + display: inline-block; + *display: inline; + /* IE7 inline-block hack */ + + *zoom: 1; + padding: 4px 12px; + margin-bottom: 0; + font-size: 14px; + line-height: 20px; + text-align: center; + vertical-align: middle; + cursor: pointer; + color: #333333; + text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75); + background-color: #f5f5f5; + background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6)); + background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6); + background-image: -o-linear-gradient(top, #ffffff, #e6e6e6); + background-image: linear-gradient(to bottom, #ffffff, #e6e6e6); + background-repeat: repeat-x; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0); + border-color: #e6e6e6 #e6e6e6 #bfbfbf; + border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); + *background-color: #e6e6e6; + /* Darken IE7 buttons by default so they stand out more given they won't have borders */ + + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); + border: 1px solid #cccccc; + *border: 0; + border-bottom-color: #b3b3b3; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + *margin-left: .3em; + -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); + -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); + box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); + } + .btn:hover, + .btn:focus, + .btn:active, + .btn.active, + .btn.disabled, + .btn[disabled] { + color: #333333; + background-color: #e6e6e6; + *background-color: #d9d9d9; + } + .btn:active, + .btn.active { + background-color: #cccccc \9; + } + .btn:first-child { + *margin-left: 0; + } + .btn:hover, + .btn:focus { + color: #333333; + text-decoration: none; + background-position: 0 -15px; + -webkit-transition: background-position 0.1s linear; + -moz-transition: background-position 0.1s linear; + -o-transition: background-position 0.1s linear; + transition: background-position 0.1s linear; + } + .btn:focus { + outline: thin dotted #333; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; + } + .btn.active, + .btn:active { + background-image: none; + outline: 0; + -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); + -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); + box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); + } + .btn.disabled, + .btn[disabled] { + cursor: default; + background-image: none; + opacity: 0.65; + filter: alpha(opacity=65); + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + } + .btn-large { + padding: 11px 19px; + font-size: 17.5px; + -webkit-border-radius: 6px; + -moz-border-radius: 6px; + border-radius: 6px; + } + .btn-large [class^="icon-"], + .btn-large [class*=" icon-"] { + margin-top: 4px; + } + .btn-small { + padding: 2px 10px; + font-size: 11.9px; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + } + .btn-small [class^="icon-"], + .btn-small [class*=" icon-"] { + margin-top: 0; + } + .btn-mini [class^="icon-"], + .btn-mini [class*=" icon-"] { + margin-top: -1px; + } + .btn-mini { + padding: 0 6px; + font-size: 10.5px; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + } + .btn-block { + display: block; + width: 100%; + padding-left: 0; + padding-right: 0; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + } + .btn-block + .btn-block { + margin-top: 5px; + } + input[type="submit"].btn-block, + input[type="reset"].btn-block, + input[type="button"].btn-block { + width: 100%; + } + .btn-primary.active, + .btn-warning.active, + .btn-danger.active, + .btn-success.active, + .btn-info.active, + .btn-inverse.active { + color: rgba(255, 255, 255, 0.75); + } + .btn-primary { + color: #ffffff; + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); + background-color: #006dcc; + background-image: -moz-linear-gradient(top, #0088cc, #0044cc); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc)); + background-image: -webkit-linear-gradient(top, #0088cc, #0044cc); + background-image: -o-linear-gradient(top, #0088cc, #0044cc); + background-image: linear-gradient(to bottom, #0088cc, #0044cc); + background-repeat: repeat-x; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0044cc', GradientType=0); + border-color: #0044cc #0044cc #002a80; + border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); + *background-color: #0044cc; + /* Darken IE7 buttons by default so they stand out more given they won't have borders */ + + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); + } + .btn-primary:hover, + .btn-primary:focus, + .btn-primary:active, + .btn-primary.active, + .btn-primary.disabled, + .btn-primary[disabled] { + color: #ffffff; + background-color: #0044cc; + *background-color: #003bb3; + } + .btn-primary:active, + .btn-primary.active { + background-color: #003399 \9; + } + .btn-warning { + color: #ffffff; + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); + background-color: #faa732; + background-image: -moz-linear-gradient(top, #fbb450, #f89406); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406)); + background-image: -webkit-linear-gradient(top, #fbb450, #f89406); + background-image: -o-linear-gradient(top, #fbb450, #f89406); + background-image: linear-gradient(to bottom, #fbb450, #f89406); + background-repeat: repeat-x; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450', endColorstr='#fff89406', GradientType=0); + border-color: #f89406 #f89406 #ad6704; + border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); + *background-color: #f89406; + /* Darken IE7 buttons by default so they stand out more given they won't have borders */ + + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); + } + .btn-warning:hover, + .btn-warning:focus, + .btn-warning:active, + .btn-warning.active, + .btn-warning.disabled, + .btn-warning[disabled] { + color: #ffffff; + background-color: #f89406; + *background-color: #df8505; + } + .btn-warning:active, + .btn-warning.active { + background-color: #c67605 \9; + } + .btn-danger { + color: #ffffff; + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); + background-color: #da4f49; + background-image: -moz-linear-gradient(top, #ee5f5b, #bd362f); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f)); + background-image: -webkit-linear-gradient(top, #ee5f5b, #bd362f); + background-image: -o-linear-gradient(top, #ee5f5b, #bd362f); + background-image: linear-gradient(to bottom, #ee5f5b, #bd362f); + background-repeat: repeat-x; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffbd362f', GradientType=0); + border-color: #bd362f #bd362f #802420; + border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); + *background-color: #bd362f; + /* Darken IE7 buttons by default so they stand out more given they won't have borders */ + + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); + } + .btn-danger:hover, + .btn-danger:focus, + .btn-danger:active, + .btn-danger.active, + .btn-danger.disabled, + .btn-danger[disabled] { + color: #ffffff; + background-color: #bd362f; + *background-color: #a9302a; + } + .btn-danger:active, + .btn-danger.active { + background-color: #942a25 \9; + } + .btn-success { + color: #ffffff; + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); + background-color: #5bb75b; + background-image: -moz-linear-gradient(top, #62c462, #51a351); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351)); + background-image: -webkit-linear-gradient(top, #62c462, #51a351); + background-image: -o-linear-gradient(top, #62c462, #51a351); + background-image: linear-gradient(to bottom, #62c462, #51a351); + background-repeat: repeat-x; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff51a351', GradientType=0); + border-color: #51a351 #51a351 #387038; + border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); + *background-color: #51a351; + /* Darken IE7 buttons by default so they stand out more given they won't have borders */ + + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); + } + .btn-success:hover, + .btn-success:focus, + .btn-success:active, + .btn-success.active, + .btn-success.disabled, + .btn-success[disabled] { + color: #ffffff; + background-color: #51a351; + *background-color: #499249; + } + .btn-success:active, + .btn-success.active { + background-color: #408140 \9; + } + .btn-info { + color: #ffffff; + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); + background-color: #49afcd; + background-image: -moz-linear-gradient(top, #5bc0de, #2f96b4); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#2f96b4)); + background-image: -webkit-linear-gradient(top, #5bc0de, #2f96b4); + background-image: -o-linear-gradient(top, #5bc0de, #2f96b4); + background-image: linear-gradient(to bottom, #5bc0de, #2f96b4); + background-repeat: repeat-x; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2f96b4', GradientType=0); + border-color: #2f96b4 #2f96b4 #1f6377; + border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); + *background-color: #2f96b4; + /* Darken IE7 buttons by default so they stand out more given they won't have borders */ + + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); + } + .btn-info:hover, + .btn-info:focus, + .btn-info:active, + .btn-info.active, + .btn-info.disabled, + .btn-info[disabled] { + color: #ffffff; + background-color: #2f96b4; + *background-color: #2a85a0; + } + .btn-info:active, + .btn-info.active { + background-color: #24748c \9; + } + .btn-inverse { + color: #ffffff; + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); + background-color: #363636; + background-image: -moz-linear-gradient(top, #444444, #222222); + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#444444), to(#222222)); + background-image: -webkit-linear-gradient(top, #444444, #222222); + background-image: -o-linear-gradient(top, #444444, #222222); + background-image: linear-gradient(to bottom, #444444, #222222); + background-repeat: repeat-x; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff444444', endColorstr='#ff222222', GradientType=0); + border-color: #222222 #222222 #000000; + border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); + *background-color: #222222; + /* Darken IE7 buttons by default so they stand out more given they won't have borders */ + + filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); + } + .btn-inverse:hover, + .btn-inverse:focus, + .btn-inverse:active, + .btn-inverse.active, + .btn-inverse.disabled, + .btn-inverse[disabled] { + color: #ffffff; + background-color: #222222; + *background-color: #151515; + } + .btn-inverse:active, + .btn-inverse.active { + background-color: #080808 \9; + } + button.btn, + input[type="submit"].btn { + *padding-top: 3px; + *padding-bottom: 3px; + } + button.btn::-moz-focus-inner, + input[type="submit"].btn::-moz-focus-inner { + padding: 0; + border: 0; + } + button.btn.btn-large, + input[type="submit"].btn.btn-large { + *padding-top: 7px; + *padding-bottom: 7px; + } + button.btn.btn-small, + input[type="submit"].btn.btn-small { + *padding-top: 3px; + *padding-bottom: 3px; + } + button.btn.btn-mini, + input[type="submit"].btn.btn-mini { + *padding-top: 1px; + *padding-bottom: 1px; + } + .btn-link, + .btn-link:active, + .btn-link[disabled] { + background-color: transparent; + background-image: none; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + } + .btn-link { + border-color: transparent; + cursor: pointer; + color: #0088cc; + -webkit-border-radius: 0; + -moz-border-radius: 0; + border-radius: 0; + } + .btn-link:hover, + .btn-link:focus { + color: #005580; + text-decoration: underline; + background-color: transparent; + } + .btn-link[disabled]:hover, + .btn-link[disabled]:focus { + color: #333333; + text-decoration: none; + } + + </style> + + </head> </head> <body> -<%= yield %> +<div class="wraper"> + <%= yield %> +</div> </body> </html>