Skip to content

Commit e9b2b7b

Browse files
committed
Fixes: rem to px for size
1 parent 6141112 commit e9b2b7b

File tree

2 files changed

+35
-17
lines changed

2 files changed

+35
-17
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-fab",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"description": "Vue Floating Action Button",
55
"main": "src/index.js",
66
"scripts": {

src/FAB.vue

Lines changed: 34 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@
116116
117117
.fab {
118118
border-radius: 100px;
119-
width: 4rem;
119+
width: 68px;
120120
position: relative;
121121
overflow: hidden;
122-
height: 4rem;
122+
height: 68px;
123123
display: flex;
124124
align-items: center;
125125
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
@@ -134,21 +134,21 @@
134134
}
135135
136136
.fab .material-icons.rotate {
137-
-ms-transform: rotate(135deg); /* IE 9 */
138-
-webkit-transform: rotate(135deg); /* Chrome, Safari, Opera */
139-
transform: rotate(135deg);
137+
-ms-transform: rotate(315deg); /* IE 9 */
138+
-webkit-transform: rotate(315deg); /* Chrome, Safari, Opera */
139+
transform: rotate(315deg);
140140
}
141141
142142
.fab-list {
143143
position: relative;
144144
z-index: 9999;
145-
margin: 1rem .5rem;
145+
margin: 2vh 0.5vw;
146146
}
147147
148148
.fab-list li {
149-
width: 3rem;
150-
height: 3rem;
151-
margin-top: 1rem;
149+
width: 50px;
150+
height: 50px;
151+
margin-top: 2vh;
152152
display: flex;
153153
align-items: center;
154154
border-radius: 100px;
@@ -160,23 +160,41 @@
160160
margin: 0px auto;
161161
}
162162
163+
.pointer {
164+
cursor: pointer;
165+
}
166+
167+
/* Rules for sizing the icon. */
168+
.material-icons.md-18 { font-size: 18px; }
169+
.material-icons.md-24 { font-size: 24px; }
170+
.material-icons.md-36 { font-size: 36px; }
171+
.material-icons.md-48 { font-size: 48px; }
172+
173+
/* Rules for using icons as black on a light background. */
174+
.material-icons.md-dark { color: rgba(0, 0, 0, 0.54); }
175+
.material-icons.md-dark.md-inactive { color: rgba(0, 0, 0, 0.26); }
176+
177+
/* Rules for using icons as white on a dark background. */
178+
.material-icons.md-light { color: rgba(255, 255, 255, 1); }
179+
.material-icons.md-light.md-inactive { color: rgba(255, 255, 255, 0.3); }
180+
163181
@media screen and (max-width: 768px) {
164182
.fab-list {
165-
margin: 1rem 0rem 0.5rem 0.35rem;
183+
margin: 2vh 1.8vw;
166184
}
167185
.fab-list li {
168-
width: 2.6rem;
169-
height: 2.6rem;
186+
width: 40px;
187+
height: 40px;
170188
}
171189
.fab-list li i {
172-
font-size: 1.3rem !important;
190+
font-size: 24px !important;
173191
}
174192
.fab {
175-
width: 3.2rem;
176-
height: 3.2rem;
193+
width: 55px;
194+
height: 55px;
177195
}
178196
.fab i {
179-
font-size: 2rem !important;
197+
font-size: 34px !important;
180198
}
181199
182200
}

0 commit comments

Comments
 (0)