diff --git a/src/EsrpaymentslipServiceProvider.php b/src/EsrpaymentslipServiceProvider.php index 8009b4c..bfb4515 100644 --- a/src/EsrpaymentslipServiceProvider.php +++ b/src/EsrpaymentslipServiceProvider.php @@ -34,5 +34,9 @@ public function boot() $this->publishes([ __DIR__.'/public/images' => public_path('checkitsedo/images'), ], 'public'); + + $this->publishes([ + __DIR__.'/public/css' => public_path('checkitsedo/css'), + ], 'public'); } } diff --git a/src/public/css/style.css b/src/public/css/style.css new file mode 100644 index 0000000..e8b0f62 --- /dev/null +++ b/src/public/css/style.css @@ -0,0 +1,274 @@ +/* +--------------------------- +general styles +--------------------------- */ + +/*body { + background: #e9edf0; +}*/ +div#container { + width: 55%; + margin: 20px 40px; + padding: 20px; + background: #fff; +} +main .row { + margin: 10px; +} +main .table { + margin: 10px; + width: 98%; +} +main .lead { + margin: 10px; +} +.py-4 { + margin: 10px; +} + + +/* +----------------------------------------------------------------- +form +----------------------------------------------------------------- */ + +form.dm_form { + width: 100%; + font-family: sans-serif; font-size: 0.8em; + margin: 0; + padding: 0; + border: 0; +} +form.dm_form div.form_wrapper { + /*margin: 0 -1%;*/ + padding: 0; +} +form.dm_form fieldset { + /*clear: both;*/ + margin: 0 10px 20px 10px; + padding: 0; + border: 0; + float: left; + width: 48%; +} +.singleRow { + float: left; + width: 48%; +} + + +/* +--------------------------- +labels and wrappers +--------------------------- */ + +form.dm_form label { + margin: 0 1%; + padding: 0; + border: 0; + float: left; + display: table; + width: 1%; +} +form.dm_form span.wrapper { + margin: 0; + padding: 0; + display: table-cell; + width: 1%; /* firefox */ +} + + +/* +--------------------------- +width +--------------------------- */ + +form.dm_form label.w100 { + width: 98%; + display: block; +} +form.dm_form label.w75 { + width: 73%; + display: block; +} +form.dm_form label.w50 { + width: 48%; + display: block; +} +form.dm_form label.w25 { + width: 23%; + display: block; +} + + +/* +--------------------------- +position +--------------------------- */ + +form.dm_form label.p25 { + margin-left: 26%; +} +form.dm_form label.p50 { + margin-left: 51%; +} +form.dm_form label.p75 { + margin-left: 76%; +} + + +/* +--------------------------- +errors +--------------------------- */ + +form.dm_form label.error input.field, +form.dm_form label.error select.field, +form.dm_form label.error textarea.field { + border-color: #dd1100; +} +form.dm_form label.error span.title { + color: #dd1100; +} + + +/* +--------------------------- +title and examples +--------------------------- */ + +form.dm_form label span.title { +} +form.dm_form label span.example { + color: #999; + font-style: italic; +} + + +/* +--------------------------- +input/select fields +--------------------------- */ + +form.dm_form label input.field, +form.dm_form label select.field, +form.dm_form label textarea.field { + width: 100%; + display: block; + border: 1px solid #d0d6da; + border-left: 3px solid #809db5; + background: #e9edf0; + padding: 4px; + font-family: sans-serif; font-size: 1em; + box-sizing: border-box; + -moz-box-sizing: border-box; /* gecko */ + -webkit-box-sizing: border-box; /* khtml/webkit */ + -ms-box-sizing: border-box; /* IE */ +} +form.dm_form label select.field { + padding: 4px 1px 1px 1px; /* have to try out */ +} +form.dm_form label input.field:focus, +form.dm_form label select.field:focus, +form.dm_form label textarea.field:focus { + border: 1px solid #d0d6da; + border-left: 3px solid #57ab44; + background: #e0eadd; +} + +/* Pflichtfelder + mandatory fields */ +form.dm_form label.mandatory input.field, +form.dm_form label.mandatory select.field, +form.dm_form label.mandatory textarea.field { + border: 1px solid #809db5; + border-left: 8px solid #809db5; +} + + +/* +--------------------------- +submit button +--------------------------- */ + +form.dm_form input.submit { + width: 100%; + background: #809db5; + color: #fff; + padding: 2px 0; + font-size: 1em; +} +form.dm_form input.submit:hover, +form.dm_form input.submit:focus { + background: #57ab44; + /* cursor: pointer; sorry, can't use that one in front of Opera */ +} + + +/* +--------------------------- +additional styles for +input/select fields +--------------------------- */ + +form.dm_form label.inputselect span.title { + margin: 0 0 2px 0; + display: table; /* act as inline-block */ +} +form.dm_form label span.title:hover, +form.dm_form label span.title:focus { + color: #57ab44; + cursor: pointer; +} +form.dm_form label br { + margin: 0 0 2px 0; +} + + +/* +--------------------------- +clearing elements +--------------------------- */ + +.clear { + clear: both; + display: block; + padding: 0 0 10px 0; +} +.mb0 { + margin-bottom: 0 !important; +} +.pb20 { + padding-bottom: 20px !important; +} + + +/* +--------------------------- +form content +--------------------------- */ + +form.dm_form p, +form.dm_form h3 { + margin: 0 1% 10px 1%; +} +div.errors { + display: none; /* JS toggle */ + margin: 0 1% 30px 1%; + padding: 5px 10px; + background: #dd1100; +} +div.errors p { + color: #fff; + margin: 0 0 0.5em 0; +} +div.errors ul { + margin: 0 0 0 1.6em; + padding: 0; +} +div.errors ul li { + margin: 0; + padding: 0; + color: #fff; + list-style-type: square; +} \ No newline at end of file diff --git a/src/views/layouts/app.blade.php b/src/views/layouts/app.blade.php index c2598ba..500d1e7 100644 --- a/src/views/layouts/app.blade.php +++ b/src/views/layouts/app.blade.php @@ -31,7 +31,7 @@ - +