Skip to content

Commit fe7c45b

Browse files
Styled minimal button so that its children are automatically transitioning and change color on hover.
Removed unused css from style.scss. Changed the way button is coded in upcoming.
1 parent 79a6049 commit fe7c45b

File tree

3 files changed

+15
-37
lines changed

3 files changed

+15
-37
lines changed

_sass/buttons.scss

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
color: $black;
2121
border: $black 1px solid;
2222
min-width: 6em;
23-
transition: all 0.5s ease-in-out;
24-
&:hover {
23+
&:hover > * {
2524
color: $orange;
26-
background: transparent;
27-
border: $black 1px solid;
2825
}
29-
}
26+
}
27+
28+
.button-minimal > *{
29+
transition: all 0.5s ease-in-out;
30+
}

_sass/style.scss

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -320,11 +320,9 @@ a {
320320
}
321321

322322
.upcoming__col {
323-
//background: rgba(0, 0, 0, 0.7);
324323
background: rgba(250, 235, 215, 0.85);
325324
border-radius: 5px;
326325
border: #000000 1px solid;
327-
//box-shadow: rgba(0, 0, 0, 0.76) 5px 5px 5px 0;
328326
min-height: 100%;
329327
margin-top: 1em;
330328
}
@@ -346,10 +344,6 @@ a {
346344
padding-top: 0.25em;
347345
padding-bottom: 0.25em;
348346
}
349-
//
350-
//.upcoming__event-label {
351-
// @extend .event-label;
352-
//}
353347

354348
.upcoming__event-title {
355349
@extend .title;
@@ -413,14 +407,16 @@ a {
413407
margin-bottom: 0.5em;
414408
}
415409

416-
.upcoming__link {
410+
.upcoming__button {
411+
@extend .button-minimal;
412+
min-width: 50%;
413+
padding: 0;
417414
}
418415

419416
.upcoming__button-icon {
420417
}
421418

422419
.chapters {
423-
424420
}
425421

426422
.chapters__title {
@@ -436,7 +432,6 @@ a {
436432
width: 100%;
437433
border-radius: 5px;
438434
border: black 1px solid;
439-
//box-shadow: rgba(0, 0, 0, 0.76) 2px 2px 2px 0;
440435
}
441436

442437
.chapters__card-container {
@@ -454,15 +449,12 @@ a {
454449
}
455450

456451
.chapters__card-main {
457-
//background: rgba(0, 0, 0, 0.7);
458452
background: rgba(250, 235, 215, 0.85);
459-
//box-shadow: rgba(0, 0, 0, 0.76) 2px 2px 2px 0;
460453
border: black 1px solid;
461454
}
462455

463456
.chapters__card-header {
464457
border-bottom: rgba(129, 129, 129, 0.41) 1px solid;
465-
//background-color: $dark-blue;
466458
background: rgba(187, 187, 187, 0.61);
467459
padding: 0;
468460
}
@@ -495,18 +487,10 @@ a {
495487
min-width: 50%;
496488
padding: 0;
497489
margin-bottom: 0.25em;
498-
&:hover > .chapters__card-icon {
499-
color: $orange;
500-
}
501490
}
502491

503492
.chapters__card-icon {
504-
text-align: center;
505-
color: $black;
506493
font-size: 1em;
507-
transition: all 0.5s ease-in;
508-
min-width: 100%;
509-
min-height: 100%;
510494
}
511495

512496
.events {

index.html

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,8 @@ <h2 class="upcoming__event-subtitle"> {{ post.subtitle }}</h2>
9090
</div>
9191
</div>
9292
<div class="upcoming__link-col col-6">
93-
<a class="upcoming__link" href="{{ post.url }}">
94-
<button class="button-minimal btn">
95-
<i class="upcoming__button-icon fas fa-info-circle"></i>
96-
</button>
93+
<a class="upcoming__button btn" href="{{ post.url }}">
94+
<i class="upcoming__button-icon fas fa-info-circle"></i>
9795
</a>
9896
</div>
9997
</div>
@@ -142,14 +140,9 @@ <h2 class="chapters__card-title">London Python Sprints</h2>
142140
</div>
143141
<div class="row">
144142
<div class="col-12 text-center">
145-
<a class="chapters__link" href="https://www.meetup.com/Python-Sprints/">
146-
<button class="chapters__card-button button-minimal btn">
147-
<i class="chapters__card-icon fas fa-info-circle"></i>
148-
</button>
149-
</a>
150-
<!--<a class="chapters__card-button btn text-center" href="https://www.meetup.com/Python-Sprints/">-->
151-
<!--<i class="chapters__card-icon fab fa-meetup"></i>-->
152-
<!--</a>-->
143+
<a class="chapters__card-button btn" href="https://www.meetup.com/Python-Sprints/">
144+
<i class="chapters__card-icon fab fa-meetup"></i>
145+
</a>
153146
</div>
154147
</div>
155148
</div>

0 commit comments

Comments
 (0)