Skip to content

Commit b5cc76c

Browse files
author
LAPTOP-48KIJ867\Langri
committed
no message
1 parent c9761e7 commit b5cc76c

30 files changed

+688
-147
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ Should you wish to publish to `app` folder only selected resources, use these co
3838
- app files: View files
3939
`php artisan vendor:publish --provider="Unrulynatives\Helpers\HelpersServiceProvider" --tag=views --force`
4040

41+
WARNING:
42+
- app files: View files to be copied to `resources/views/layouts/` folder
43+
`php artisan vendor:publish --provider="Unrulynatives\Helpers\HelpersServiceProvider" --tag=viewslayouts --force`
44+
4145
- migration files
4246
`php artisan vendor:publish --provider="Unrulynatives\Helpers\HelpersServiceProvider" --tag=migrations --force`
4347

public/css/elements_common.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/css/elements_common.less

Lines changed: 104 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
//
55
// DON'T FORGET TO STORE IT BACK TO THE PACKAGE!
66
//
7+
// LAST MOD: 2017-08-28
8+
//
79
////////////////////////////////
810

911
// Import fonts
@@ -290,7 +292,8 @@ footer a i {
290292

291293
.un_flex_vs {
292294
flex-direction: column;
293-
justify-content: space-around;
295+
/*justify-content: space-around;*/
296+
justify-content: space-between;
294297
align-items: stretch;
295298
}
296299

@@ -607,11 +610,32 @@ h2 span {
607610

608611
.un_nav_2 {
609612
padding: .5rem;
613+
610614
.btn {
611615
padding: .2rem!important;
612616
}
613617
}
614618

619+
.un_nav_3 {
620+
font-size: 70%;
621+
text-align: center;
622+
padding: .5rem;
623+
background: @step3;
624+
border: 2px solid #aaa;
625+
border-radius: 4px;
626+
> * {
627+
padding: .2rem!important;
628+
background: @step4;
629+
border: none;
630+
border-radius: 4px;
631+
}
632+
> button:hover {
633+
background: @cstep1;
634+
color:#444;
635+
636+
}
637+
}
638+
615639
.nav-item {
616640
font: italic 700 1.3rem 'Open Sans';
617641
}
@@ -878,20 +902,21 @@ h2 span {
878902

879903
}
880904

881-
.un_user
882-
{
905+
.un_user {
883906
max-width: 100%;
884907
display: inline-block;
885908
height: 2.4rem;
886-
}
887909

888-
.un_user img
889-
{
890-
width: 2.4rem;
891-
height: 2.4rem;
892-
max-height: 2.4rem;
893-
max-width: 2.4rem;
910+
img {
911+
width: 2.4rem;
912+
height: 2.4rem;
913+
max-height: 2.4rem;
914+
max-width: 2.4rem;
915+
}
916+
894917
}
918+
919+
.un_user
895920
.un_user div
896921
{
897922
padding: .2rem;
@@ -910,6 +935,21 @@ padding: .2rem;
910935
}
911936

912937

938+
.un_user_2 {
939+
max-width: 100%;
940+
display: inline-block;
941+
height: 3.6rem;
942+
943+
img {
944+
width: 3.6rem;
945+
height: 3.6rem;
946+
max-height: 3.6rem;
947+
max-width: 3.6rem;
948+
}
949+
div {
950+
align-self: center;
951+
}
952+
}
913953

914954
.un_wrapper {
915955
margin: 1rem!important;
@@ -2145,6 +2185,19 @@ div[class^="communique"] + div[class^="communique"]{
21452185
background: #444;
21462186
}
21472187

2188+
/*bordered button for dropbox*/
2189+
.un_border_2 {
2190+
border: 2px solid #999;
2191+
/*background: #444;*/
2192+
2193+
}
2194+
/*bordered button for dropbox*/
2195+
.un_border_1 {
2196+
border: 2px solid #999;
2197+
padding: 1rem;
2198+
2199+
}
2200+
21482201

21492202
.un_btn_lg {
21502203
border: 2px solid rgba(211,208,193,.06);
@@ -2503,7 +2556,7 @@ label {
25032556
animation: checkbox-check 125ms 250ms cubic-bezier(.4,.0,.23,1) forwards;
25042557
}
25052558

2506-
.un_checkbox_4 {
2559+
.un_checkbox_5 {
25072560
/*background: green;*/
25082561

25092562
li {
@@ -2512,46 +2565,46 @@ label {
25122565
margin-bottom: 1em;
25132566
position: relative;
25142567
}
2515-
input[type="checkbox"],
2516-
input[type="radio"] {
2517-
display: none;
2518-
}
2519-
input[type="checkbox"]+label,
2520-
input[type="radio"]+label {
2521-
padding-left: 2em;
2522-
}
2523-
input[type="checkbox"]+label:before,
2524-
input[type="checkbox"]+label:after,
2525-
input[type="radio"]+label:before {
2526-
content: '';
2527-
background: #ececec;
2528-
border-radius: 50%;
2529-
width: 20px;
2530-
height: 20px;
2531-
display: inline-block;
2532-
border: 1px solid #ccc;
2533-
z-index: -1;
2534-
position: absolute;
2535-
left: 0;
2536-
transition: all ease .5s;
2537-
}
2538-
input[type="checkbox"]+label:after{
2539-
border-radius: 0;
2540-
}
2541-
input[type="checkbox"]:checked+label:after,
2542-
input[type="radio"]:checked+label:before {
2543-
border-radius: 50% 0 50% 50%;
2544-
transition: all ease .75s;
2545-
transform: rotate( 45deg );
2546-
background: #666;
2547-
border: 1px solid #666;
2548-
}
2549-
input[type="checkbox"]:checked+label:before {
2550-
transition: all ease .75s;
2551-
border-radius: 0 50% 50% 0;
2552-
background: #666;
2553-
border: 1px solid #666;
2554-
}
2568+
input[type="checkbox"],
2569+
input[type="radio"] {
2570+
display: none;
2571+
}
2572+
input[type="checkbox"]+label,
2573+
input[type="radio"]+label {
2574+
padding-left: 2em;
2575+
}
2576+
input[type="checkbox"]+label:before,
2577+
input[type="checkbox"]+label:after,
2578+
input[type="radio"]+label:before {
2579+
content: '';
2580+
background: #ececec;
2581+
border-radius: 50%;
2582+
width: 20px;
2583+
height: 20px;
2584+
display: inline-block;
2585+
border: 1px solid #ccc;
2586+
z-index: -1;
2587+
position: absolute;
2588+
left: 0;
2589+
transition: all ease .5s;
2590+
}
2591+
input[type="checkbox"]+label:after{
2592+
border-radius: 0;
2593+
}
2594+
input[type="checkbox"]:checked+label:after,
2595+
input[type="radio"]:checked+label:before {
2596+
border-radius: 50% 0 50% 50%;
2597+
transition: all ease .75s;
2598+
transform: rotate( 45deg );
2599+
background: #666;
2600+
border: 1px solid #666;
2601+
}
2602+
input[type="checkbox"]:checked+label:before {
2603+
transition: all ease .75s;
2604+
border-radius: 0 50% 50% 0;
2605+
background: #666;
2606+
border: 1px solid #666;
2607+
}
25552608
}
25562609

25572610
.text-greenish {

public/css/spaces.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/minitool_dom_patch.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
// ajax-load into an element
2-
1+
// ajax-load into a response with `load` jQuery function
32
$('body').on('click', '[data-load]', function() {
3+
console.log('dom-patch script works! (minitool_dom_patch)');
44
var lnk = $(this).data("load");
55
var target = $(this).data("puthere");
66
// http://stackoverflow.com/a/1318091/4209866
77
var chunk = $(this).data('chunk');
88

9-
// alert('test');
109

1110
// removes data-load after first click
1211
// http://stackoverflow.com/questions/1318076/jquery-hasattr-checking-to-see-if-there-is-an-attribute-on-an-element
@@ -23,5 +22,14 @@ $('body').on('click', '[data-load]', function() {
2322
$(target).load(lnk);
2423

2524

25+
26+
2627
});
2728

29+
// allows you to place the target text into a feedback message element
30+
$('body').on('click', '[data-otfchange]', function() {
31+
var target = $(this).data("otfchange");
32+
var message = $(this).text();
33+
console.log(message);
34+
$(target).text(message);
35+
});
Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,16 @@
1-
@unless(!isset($wrapperclass) || $wrapperclass == '')
2-
@endunless
3-
<div class="un_forminput {{ @$wrapperclass}}">
1+
<label for="{{$fieldname}}">{{trans('buttons.'.$fieldname)}}</label>
2+
<div class="input-group mb-2 mr-sm-2 mb-sm-0">
3+
<div class="input-group-addon">URL</div>
44

5+
@if($purpose == 'create')
6+
{!! Form::text($fieldname, @$preselected, array('class' => 'form-control '.@$class, 'placeholder' => @$placeholder, 'maxlength' => @$maxlength, 'id' => @$id, 'aria-describedby' => $fieldname.'Help')) !!}
7+
@else
58

6-
@unless(isset($label) && $label == 'none')
7-
<div class="un_fielditem" id="" title=""><i class="fa fa-chain"></i> </div>
89

9-
@endunless
10+
{!! Form::text($fieldname, $object->$fieldname, array('class' => 'form-control '.@$class,'maxlength' => @$maxlength, 'id' => @$id, 'placeholder' => @$placeholder, 'aria-describedby' => $fieldname.'Help')) !!}
11+
@endif
1012

13+
<small id="{{$fieldname}}Help" class="form-text text-muted">{{@$hint}}</small>
14+
</div>
1115

12-
@if($purpose == 'create')
13-
{!! Form::text($fieldname, Input::old($fieldname), array('class' => @$class, 'placeholder' => 'http://...', 'id' => @$id)) !!}
1416

15-
@elseif($purpose == 'edit')
16-
{!! Form::text($fieldname, @$object->$fieldname, array('class' => @$class, 'placeholder' => 'http://...', 'id' => @$id)) !!}
17-
18-
19-
@endif
20-
21-
22-
23-
</div>
24-
@unless(!isset($wrapperclass) || $wrapperclass == '')
25-
@endunless

src/unstarter_views/forms/_field_date.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<div class="ui big fluid labeled input">
66

77
@if($purpose == 'create')
8-
{!! Form::date($fieldname, Input::old($fieldname), array('class' => @$class, 'placeholder' => @$placeholder)) !!}
8+
{!! Form::date($fieldname, Input::old($fieldname), array('class' => @$class, 'placeholder' => @$placeholder, 'id'=> @$id)) !!}
99
@else
10-
{!! Form::date($fieldname, $object->$fieldname, array('class' => @$class, 'placeholder' => @$placeholder)) !!}
10+
{!! Form::date($fieldname, $object->$fieldname, array('class' => @$class, 'placeholder' => @$placeholder, 'id'=> @$id ))!!}
1111
@endif
1212

1313

src/unstarter_views/forms/_field_file.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{!! Form::text($fieldname, @$object->$fieldname) !!}
88
@endif
99

10-
</div>
10+
</div>
1111

1212

1313

src/unstarter_views/forms/_field_select.blade.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11

2-
@unless(isset($label) && $label == 'none')
2+
@unless(isset($fieldlabel) && $fieldlabel == 'none')
33

4-
<div class="un_input_label "><i class="fa fa-angle-right icon"></i>_ {{trans('buttons.'.$fieldlabel)}} </div>
4+
{{-- <div class="un_input_label p-1"><i class="fa fa-angle-right icon"></i>_ {{trans('buttons._'.$fieldlabel)}} </div> --}}
55
@endunless
66

77
@if(isset($icon))
8-
9-
<div class="p-a-2 csch_subtle3">
10-
{{-- <div class="btn">
11-
<i class="{{ @$icon }} icon"></i>
12-
</div> --}}
8+
<div class="p-1 un_widefull csch_subtle_3">
9+
<div class="btn">
10+
<i class="fa {{ @$icon }}"></i>
11+
</div>
1312
@else
1413

15-
<div class="p-a-2 csch_subtle3">
14+
<div class="p-1 un_widefull">
1615
@endif
1716

1817
@if($purpose == 'create')

0 commit comments

Comments
 (0)