Skip to content

Commit 2af6afe

Browse files
author
Mike Young
committed
removed blue modal button outline, changed social media hovers so modal shows when clicking div rather than putting button around the contents
1 parent 92c7161 commit 2af6afe

File tree

2 files changed

+13
-16
lines changed

2 files changed

+13
-16
lines changed

css/effects.css

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ color: #fff;
133133
box-shadow: 0 0 5px #fff;
134134
}
135135

136-
/* stlying to remove box shadow and border from buttons for last few effects */
136+
/* styling to remove box shadow and border from buttons for last few effects */
137137

138138
.hover button.nullbutton {
139139
border: none;
@@ -145,12 +145,15 @@ color: #fff;
145145
box-shadow: none;
146146
}
147147

148-
/* styling for the effects that have no visual button, however these buttons only seem to work in chrome and not firefox */
149-
.emptybutton {
150-
padding: 0px;
151-
margin: 0px;
152-
border: none;
153-
width: 100%;
148+
/* remove the blue line that shows on modal buttons after you have open and close a modal */
149+
150+
.modal-open .modal, button:focus {
151+
outline:none!important
152+
}
153+
154+
/* styling so when hovering over a div that opens a modal the cursor changes to a pointer */
155+
.point {
156+
cursor: pointer;
154157
}
155158

156159
/* effect hover 1 */

index.html

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ <h2>Hover effect 5</h2>
162162
<img class="img-responsive" src="images/for.jpg" alt="">
163163

164164

165-
<div class="overlay">
166-
<button class="emptybutton" data-toggle="modal" data-target="#modal6">
165+
<div class="overlay point" data-toggle="modal" data-target="#modal6">
167166
<h2>Hover effect 6</h2>
168167
<div class="rotate">
169168
<p class="group1">
@@ -177,7 +176,6 @@ <h2>Hover effect 6</h2>
177176
<a href="#"><i class="fa fa-dribbble"></i></a>
178177
</p>
179178
</div>
180-
</button>
181179
</div>
182180

183181
</div>
@@ -189,25 +187,22 @@ <h2>Hover effect 6</h2>
189187
<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">
190188
<div class="hover ehover7">
191189
<img class="img-responsive" src="images/hand.jpg" alt="">
192-
<div class="overlay">
193-
<button class="emptybutton" data-toggle="modal" data-target="#modal7">
190+
<div class="overlay point" data-toggle="modal" data-target="#modal7">
194191
<h2>Hover effect 7</h2>
195192
<p>
196193
<a href="#"><i class="fa fa-twitter"></i></a>
197194
<a href="#"><i class="fa fa-facebook"></i></a>
198195
<a href="#"><i class="fa fa-instagram"></i></a>
199196
<a href="#"><i class="fa fa-dribbble"></i></a>
200197
</p>
201-
</button>
202198
</div>
203199

204200
</div>
205201
</div>
206202
<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">
207203
<div class="hover ehover8">
208204
<img class="img-responsive" src="images/p9.jpg" alt="">
209-
<div class="overlay">
210-
<button class="emptybutton" data-toggle="modal" data-target="#modal8">
205+
<div class="overlay point" data-toggle="modal" data-target="#modal8">
211206
<h2>Hover effect 8</h2>
212207
<p class="set1">
213208
<a href="#"><i class="fa fa-twitter"></i></a>
@@ -218,7 +213,6 @@ <h2>Hover effect 8</h2>
218213
<a href="#"><i class="fa fa-instagram"></i></a>
219214
<a href="#"><i class="fa fa-dribbble"></i></a>
220215
</p>
221-
</button>
222216
</div>
223217
</div>
224218
</div>

0 commit comments

Comments
 (0)