Skip to content

Commit

Permalink
nettoyage css
Browse files Browse the repository at this point in the history
  • Loading branch information
agallou committed Mar 9, 2019
1 parent 0203bcd commit 11a3a1b
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 59 deletions.
21 changes: 0 additions & 21 deletions _includes/widgets/big_button.html
Original file line number Diff line number Diff line change
@@ -1,22 +1 @@
<style>
.big-button {
background-color: #ed0678;
width: 100%;
padding: 25px;
margin: 10px 0;
font-weight: bold;
text-align: center;
text-decoration: none;
display: block;
color: #fff;
border: 2px solid transparent;
}

.big-button:hover {
background-color: #fff;
border: 2px solid #ed0678;
color: #ed0678;
}
</style>

<a class="big-button" href="{{ include.url }}">{{ include.text }}</a>
26 changes: 0 additions & 26 deletions _includes/widgets/meetup.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,3 @@
<style>
.meetup-button {
background-color: #ed1c40;
width: 100%;
padding: 25px;
margin: 10px 0;
font-weight: bold;
text-align: center;
text-decoration: none;
display: block;
color: #fff;
border: 2px solid transparent;
}

.meetup-button i {
display: inline-block;
margin: 0 10px 0 0;
}

.meetup-button:hover {
background-color: #fff;
border: 2px solid #ed1c40;
color: #ed1c40;
}
</style>

<a class="meetup-button" href="{{ include.url }}">
<i class="fab fa-meetup"></i>
S&rsquo;inscrire / Consulter la page sur meetup.com
Expand Down
6 changes: 0 additions & 6 deletions _includes/widgets/speakerdeck.html
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
<style>
.speakerdeck-embeded {
margin: 10px auto;
}
</style>

<iframe class="speakerdeck-embeded" src="//speakerdeck.com/player/{{ include.id }}" width="584" height="438" frameborder="0" allowtransparency="true" allowfullscreen="allowfullscreen" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>
6 changes: 0 additions & 6 deletions _includes/widgets/youtube.html
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
<style>
.youtube-embeded {
margin: 10px auto;
}
</style>

<iframe class="youtube-embeded" width="584" height="329" src="https://www.youtube.com/embed/{{ include.id }}?feature=oembed" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
4 changes: 4 additions & 0 deletions _sass/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
@import "layout/footer";
@import "ui/prev-next";
@import "ui/call-to-action";
@import "ui/widgets/big-button";
@import "ui/widgets/meetup";
@import "ui/widgets/speakerdeck";
@import "ui/widgets/youtube";
@import "content-types/post";
@import "content-types/index";
@import "media-queries/media-queries";
Expand Down
18 changes: 18 additions & 0 deletions _sass/ui/widgets/_big-button.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.big-button {
background-color: #ed0678;
width: 100%;
padding: 25px;
margin: 10px 0;
font-weight: bold;
text-align: center;
text-decoration: none;
display: block;
color: #fff;
border: 2px solid transparent;
}

.big-button:hover {
background-color: #fff;
border: 2px solid #ed0678;
color: #ed0678;
}
23 changes: 23 additions & 0 deletions _sass/ui/widgets/_meetup.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.meetup-button {
background-color: #ed1c40;
width: 100%;
padding: 25px;
margin: 10px 0;
font-weight: bold;
text-align: center;
text-decoration: none;
display: block;
color: #fff;
border: 2px solid transparent;
}

.meetup-button i {
display: inline-block;
margin: 0 10px 0 0;
}

.meetup-button:hover {
background-color: #fff;
border: 2px solid #ed1c40;
color: #ed1c40;
}
3 changes: 3 additions & 0 deletions _sass/ui/widgets/_speakerdeck.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.speakerdeck-embeded {
margin: 10px auto;
}
3 changes: 3 additions & 0 deletions _sass/ui/widgets/_youtube.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.youtube-embeded {
margin: 10px auto;
}

0 comments on commit 11a3a1b

Please sign in to comment.