Skip to content

Commit e5f4367

Browse files
author
Fred Heusschen
committed
Merge branch 'develop'
2 parents 5cc68b0 + 8c94425 commit e5f4367

32 files changed

+2055
-8544
lines changed

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
1-
mburger CSS
2-
================
1+
# mburger
32

4-
A small collection of CSS animated hamburgers. All set up to work out of the box with the mmenu.js plugin.<br />
3+
A webcomponent for animated hamburgers,
4+
all set up to work out of the box with the mmenu.js and mmenu-light plugins.<br />
55
[Examples](https://www.mmenujs.com/mburger)
66

7-
<img src="https://mmenujs.com/img/preview-mburger.png" alt="CSS animated hamburgers" width="100%" />
7+
<img src="https://mmenujs.com/img/preview-mburger.png" alt="animated hamburgers" width="100%" />
88

99
### Customize the hamburger
10+
1011
By default, the hamburger adopts to its environment pretty good,
11-
the bars scale to fit and inherit their color for the parent element.<br />
12+
the bars scale to fit and it inherit its color for the parent element.<br />
1213

1314
Need help? Have a look at [the documentation](http://mmenujs.com/mburger) for examples and documentation.
1415

1516
### Licence
16-
The mburger CSS is licensed under the [CC-BY-4.0 license](http://creativecommons.org/licenses/by/4.0/).
1717

18-
### Development
19-
This project uses [Gulp(4)](http://gulpjs.com/) to transpile and minify SCSS to CSS.
20-
If you are unfamiliar with Gulp, check [this tutorial](https://travismaynard.com/writing/getting-started-with-gulp) on how to get started.<br />
21-
Run `gulp watch` in the command-line to put a watch on the files and run all scripts immediately after saving your changes.
18+
The mburger webcomponent is licensed under the [CC-BY-4.0 license](http://creativecommons.org/licenses/by/4.0/).

bin/demo.css

Lines changed: 0 additions & 145 deletions
This file was deleted.

bin/mburger.js

Lines changed: 0 additions & 80 deletions
This file was deleted.

bin/webcomponent.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

demo.css

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
html,
2+
body {
3+
padding: 0;
4+
margin: 0;
5+
height: 100%;
6+
}
7+
body {
8+
position: relative;
9+
background-color: #5888aa;
10+
-webkit-text-size-adjust: none;
11+
font-family: Arial, Helvetica, Verdana;
12+
font-size: 20px;
13+
line-height: 30px;
14+
color: #fff;
15+
}
16+
h1 {
17+
margin: 0 0 100px;
18+
text-shadow: 8px 10px 1px rgba(0, 0, 0, 0.1);
19+
text-transform: lowercase;
20+
font-family: "Pacifico", Arial, sans-serif;
21+
font-weight: normal;
22+
font-size: 150px;
23+
line-height: 1;
24+
letter-spacing: -6px;
25+
}
26+
27+
pre {
28+
font-size: 16px;
29+
line-height: 24px;
30+
width: 100%;
31+
overflow: auto;
32+
margin: 75px 0;
33+
}
34+
35+
@media (max-width: 500px) {
36+
h1 {
37+
font-size: 105px;
38+
letter-spacing: -2px;
39+
}
40+
}
41+
42+
a,
43+
a:hover {
44+
color: #fff;
45+
text-decoration: underline;
46+
}
47+
48+
#page {
49+
max-width: 600px;
50+
min-width: 300px;
51+
width: 90%;
52+
padding: 100px 10px;
53+
margin: auto;
54+
}
55+
56+
.xmpls {
57+
display: flex;
58+
flex-wrap: wrap;
59+
justify-content: center;
60+
margin: 75px -10px;
61+
}
62+
63+
.xmpl {
64+
position: relative;
65+
box-sizing: border-box;
66+
width: calc(50% - 20px);
67+
padding-top: calc(50% - 20px);
68+
margin: 10px;
69+
background: rgba(255, 255, 255, 0.05);
70+
box-shadow: 6px 8px 1px rgba(0, 0, 0, 0.1);
71+
transition: none 0.2s ease;
72+
transition-property: background-color, box-shadow, transform;
73+
text-align: center;
74+
cursor: pointer;
75+
}
76+
.xmpl:hover {
77+
background: rgba(255, 255, 255, 0.15);
78+
box-shadow: 4px 6px 0 rgba(0, 0, 0, 0.15);
79+
transform: translateY(2px);
80+
}
81+
82+
@media (min-width: 1280px) {
83+
.xmpls {
84+
margin-left: -320px;
85+
margin-right: -320px;
86+
}
87+
.xmpl {
88+
width: calc(25% - 20px);
89+
padding-top: calc(25% - 20px);
90+
}
91+
}
92+
.xmpl > mm-burger {
93+
position: absolute;
94+
top: 50%;
95+
left: 50%;
96+
transform: translate(-50%, -50%);
97+
}
98+
.xmpl > span {
99+
position: absolute;
100+
bottom: 10%;
101+
left: 0;
102+
right: 0;
103+
}
104+
105+
mm-burger {
106+
padding: 5px;
107+
}
108+
109+
mm-burger.custom-burger-1 {
110+
--mb-bar-height: 5px;
111+
--mb-bar-spacing: 5px;
112+
113+
padding: 10px 15px;
114+
border-radius: 10px;
115+
border: 2px solid #fff;
116+
}
117+
118+
mm-burger.custom-burger-2 {
119+
--mb-bar-width: 50px;
120+
--mb-bar-height: 2px;
121+
--mb-bar-spacing: 12px;
122+
123+
width: 80px;
124+
height: 80px;
125+
padding: 25px 15px;
126+
border-radius: 40px;
127+
background-color: rgba(255, 255, 255, 0.7);
128+
color: #3ea7e1;
129+
}

0 commit comments

Comments
 (0)