Skip to content

Commit 5ba15b9

Browse files
committed
Added css and js folders. Some minor fixes
1 parent 659bcca commit 5ba15b9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+99665
-22
lines changed

README.md

+34-13
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,53 @@
1-
# laravel-helpers
2-
A set of code snippets, traits and functions to use across all projects
1+
# laravel-helper
2+
A set of code snippets and functions to use across all projects.
33

4-
# Current version: 0.0.7
4+
This package contains some modifications made over a fresh installation of Laravel 5.3.
5+
With time, the starter kit would only need to be extended by this package.
56

6-
# Features
77

8-
- extends User model with gravatar
98

10-
# Installation
9+
## Features
1110

12-
1. add `"unrulynatives/helpers": "0.*"` to your `composer.json` file
11+
- Gravatar for your User model
1312

14-
2. add these lines to your `User` model
13+
- some usefull css and jQuery tools included. See the Starter kit for details and examples: http://dev.unrulynatives.com/feature
1514

15+
## Installation
16+
17+
1. Add
18+
`"unrulynatives/helpers": "0.0.8"``
19+
to your composer.json file.
20+
21+
2. Add this to your `config/app.php` file in packages section
22+
`Unrulynatives\Helpers\HelpersServiceProvider::class,`
23+
24+
3. Publish views, css & jQuery files to your app:
25+
26+
`php artisan vendor:publish --provider="Unrulynatives\Helpers\HelpersServiceProvider"`
27+
28+
4. Register the package in your User model and wherever you see it is necessary - see features section.
29+
30+
In your `User` model:
1631
`use Unrulynatives\Helpers\UserExtensions;
1732

1833

1934
class User extends Authenticatable
2035
{
2136

22-
use UserExtensions;`
37+
use UserExtensions;`
38+
39+
### Done!
40+
Now you can check if the package works. Point your browser to `unrulyhelpers`. You should see a clock - an example developed along Laraveldaily tutorial http://laraveldaily.com/how-to-create-a-laravel-5-package-in-10-easy-steps/
41+
2342

2443

25-
# Example usage:
44+
## To do (Future features)
2645

46+
1. Include Migrations for the Starter Kit package
47+
2. Include Models for the Starter Kit package
2748

28-
# Future development
2949

30-
In the nearest future this package would contain all functions, vidgets and snippets currently developed as a part of my Laravel 5.3 starter kit: https://github.com/UnrulyNatives/laravel-starter-kit-and-snippets
50+
## Example usage
3151

32-
Contributors welcome!
52+
1. To get Gravatar assigned to authenticated user's e-mail use
53+
`<img src="{{Auth::user()->gravatar}}">`

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
},
1414
"autoload": {
1515
"psr-4": {
16-
"App\\": "app/",
1716

18-
"Unrulynatives\\Helpers\\": "src/"
17+
18+
"Unrulynatives\\Helpers\\": "src"
1919

2020
}
2121
},

public/css/adjustments_bootstrap.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/css/adjustments_bootstrap.less

+191
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
@import url(//fonts.googleapis.com/css?family=Eczar:500|Dosis:500|Roboto:300&subset=latin,latin-ext);
2+
@import 'color_definitions_theme_1.less';
3+
4+
5+
img.gravatar {
6+
width:1.2rem; height:1.2rem
7+
}
8+
9+
body {
10+
11+
}
12+
13+
nav, .nav {
14+
min-height: 3rem;
15+
/*background: rgba(86,115,129,1)!important;*/
16+
border-radius: 0!important;
17+
}
18+
nav > *, nav > a {
19+
text-decoration: none;
20+
color: @step3 !important;
21+
/*background: red;*/
22+
/*height: 1rem;*/
23+
padding: .2rem;
24+
margin: 0 .5rem;
25+
font-size: 80%;
26+
align-self: center;
27+
}
28+
nav > *:hover{
29+
text-decoration: none;
30+
color: white;
31+
}
32+
nav > * > img{
33+
width: 2.4rem;
34+
height: 2.4rem;
35+
}
36+
.navbar-brand {
37+
38+
font-size: 1.2rem !important;
39+
}
40+
41+
.dropdown-header {
42+
white-space: pre-line;
43+
}
44+
.dropdown-item {
45+
color: #333 !important;
46+
}
47+
[class*=csch_dark] .dropdown-menu a, [class*=csch_dark] a.btn {
48+
color: #333!important;
49+
}
50+
51+
.un_qrcode img
52+
{
53+
flex: auto;
54+
margin: 1rem;
55+
}
56+
57+
58+
/*inspired by http://chandraadmin.com/frontend/aboutus*/
59+
footer .container {
60+
/*background-color: #262626;*/
61+
margin: 1rem 0px;
62+
}
63+
64+
65+
body {
66+
67+
font-family: 'Open Sans', sans-serif;
68+
color: #757b87;
69+
font-size: 1em;
70+
}
71+
72+
footer h3 {
73+
color: #eff2f7;
74+
text-transform: uppercase;
75+
font-size: 21px;
76+
font-weight: 500;
77+
}
78+
footer p {
79+
color: #ababab;
80+
line-height: 1.5em;
81+
}
82+
83+
84+
footer p a:hover {
85+
text-decoration: underline;
86+
color: #ddf;
87+
}
88+
89+
footer p a.item {
90+
display: block;
91+
}
92+
93+
94+
95+
96+
h1 {
97+
font-family: Eczar;
98+
}
99+
100+
101+
h3 {
102+
font-size: 1.1rem;
103+
}
104+
105+
h2 span {
106+
font-size: 80%;
107+
display: block;
108+
text-align: left;
109+
}
110+
111+
h4 {
112+
font-size: 1rem;
113+
}
114+
115+
116+
.hid, .hide
117+
{
118+
display: none !important;
119+
}
120+
121+
/*bootstrap dropdown on hover*/
122+
.dropdown:hover .dropdown-menu {
123+
display: block;
124+
margin-top: 0;
125+
max-width: 24rem;
126+
}
127+
128+
129+
.navbar-brand {
130+
color: @step3 !important;
131+
font-family: "Eczar";
132+
font-weight: 700;
133+
letter-spacing: 2px;
134+
font-size: 2rem;
135+
}
136+
.navbar-brand:hover {
137+
color: @step4 !important;
138+
139+
}
140+
141+
// prevents select from with=1px
142+
.select2
143+
{
144+
min-width: 10rem;
145+
max-width: 100%;
146+
}
147+
148+
149+
150+
@media screen and (max-width: 55.5em)
151+
{
152+
153+
154+
nav {
155+
display: flex;
156+
}
157+
158+
nav > * {
159+
flex: 1 1 auto;
160+
}
161+
nav > a {
162+
font-size: 1rem!important;
163+
padding: .2rem!important;
164+
margin: .1rem!important;
165+
/*background: red;*/
166+
height: 1.5rem;
167+
}
168+
169+
nav > a {
170+
font-size: 1rem!important;
171+
padding: .2rem!important;
172+
margin: .1rem!important;
173+
/*background: red;*/
174+
height: 1.5rem;
175+
}
176+
nav > ul, nav li, nav > a:before,nav > a:after {
177+
padding: 0!important;
178+
margin: 0!important;
179+
}
180+
181+
nav > a:before,nav > a:after {
182+
font-size: 1rem!important;
183+
height: 1rem!important;
184+
}
185+
nav img {
186+
height: 1rem!important;
187+
width: 1rem!important;
188+
margin: 0!important;
189+
padding: 0!important;
190+
}
191+
}

public/css/adjustments_semantic.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)