Skip to content

Commit b9d9339

Browse files
author
G
committed
Fixed responsive issue + change menu names
1 parent d308f0f commit b9d9339

File tree

6 files changed

+22
-10
lines changed

6 files changed

+22
-10
lines changed

public/mix-manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"/build/main.js": "/build/main.js?id=a79ecbd217e7d4cc2bc7",
3-
"/build/main.css": "/build/main.css?id=bd3f263ddc7ec877b8c6",
4-
"/build/programmer/edit.css": "/build/programmer/edit.css?id=cb6235baf3f14dbfff87",
3+
"/build/main.css": "/build/main.css?id=598084051f1a3c8f9693",
4+
"/build/programmer/edit.css": "/build/programmer/edit.css?id=3f1866c951a3a75f8d8f",
55
"/build/tutorial.css": "/build/tutorial.css?id=6ad6d8d0e314941f3c24",
66
"/build/programmer/edit.js": "/build/programmer/edit.js?id=0d21f0af8c2053f569f9"
77
}

resources/sass/form.scss

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ ul.checkboxListHorizontal {
112112
}
113113
}
114114

115-
/* Responsive layout - when the screen is less than 600px wide, make the two columns stack on top of each other instead of next to each other */
115+
/* Responsive layout - when the screen is less than 500px wide, make the two columns stack on top of each other instead of next to each other */
116116
@media screen and (max-width: 500px) {
117117
.label-col, .input-col, input[type=submit] {
118118
width: 100%;
@@ -123,3 +123,13 @@ ul.checkboxListHorizontal {
123123
text-align: left;
124124
}
125125
}
126+
127+
@media screen and (max-width: 400px) {
128+
129+
.dateRange {
130+
> .table-cell {
131+
display:block;
132+
padding-right:inherit;
133+
}
134+
}
135+
}

resources/sass/programmer/edit.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@
1818
}
1919
#switchLang {
2020
text-align: right;
21+
padding: 0 0 1em 0;
2122
}

resources/views/layouts/layoutTutorials.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@
4646
</header>
4747
<ul>
4848
<li><a href="{{ route('tutorial.intro') }}" accesskey="i">Introduction</a></li>
49-
<li><a href="{{ route('programmer.create', ['locale'=>'en_US']) }}" accesskey="l">Laravel Collective Example</a></li>
49+
<li><a href="{{ route('programmer.create', ['locale'=>'en_US']) }}" accesskey="l">Example Form</a></li>
5050
<li><a href="{{ route('tutorial.techniques') }}" accesskey="e">General Techniques Used</a></li>
5151
<li><a href="{{ route('tutorial.instructions') }}" accesskey="o">Instructions</a></li>
52-
<li><a href="{{ route('programmer.list') }}" accesskey="e">Experience List</a></li>
52+
<li><a href="{{ route('programmer.list') }}" accesskey="e">Form Entries</a></li>
5353
</ul>
5454
</nav>
5555
</div>

resources/views/programmer/_experience.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<div class="label-col">
4242
@lang('messages.period')
4343
</div>
44-
<div class="input-col">
44+
<div class="input-col dateRange">
4545
<div class="table-cell">
4646
{!! Form::myInput('date', 'experience['.$k.'][startDate]', null, ['placeholder'=>trans('messages.start')]) !!}
4747
</div>

resources/views/programmer/edit.blade.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ function onSubmit(token) {
2222
@endpush
2323

2424
@section('content')
25-
<div id="switchLang">
26-
@languageSwitch()
27-
</div>
25+
2826
<header class="main">
2927
<h1>Laravel Collective Forms Example: @lang('messages.Add Programming Experience')</h1>
3028
<h2>I.T. Recruitment Agency - Candidate Experience Form</h2>
@@ -34,8 +32,11 @@ function onSubmit(token) {
3432
</p>
3533
<p>
3634
Feel free to use the form and test it. Your saved data will be removed after your session has expired.
37-
Switch languages used in the form using the link to the above right.
35+
Switch languages used in the form using the link below on the right.
3836
</p>
37+
<div id="switchLang">
38+
@languageSwitch()
39+
</div>
3940
@if(!empty($personExperience))
4041
{!! Form::model($personExperience, [
4142
'route'=>['programmer.update', 'id'=>$personExperience->id, 'locale'=>app()->getLocale()],

0 commit comments

Comments
 (0)