Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add block wide expanded button class.
  • Loading branch information
Marios Antonoudiou committed Jul 25, 2016
commit 9a7d5caa5a3eaf4df71c04eb0fa1017e633d95e8
28 changes: 28 additions & 0 deletions src/buttons/css/buttons.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,31 @@ a.pure-button-selected {
background-color: rgb(0, 120, 231);
color: #fff;
}

.pure-button-expanded {
width: 100%;
}

@media screen and (max-width: 35.5em) {
.pure-button-sm-expanded {
width: 100%;
}
}

@media screen and (max-width: 48em) {
.pure-button-md-expanded {
width: 100%;
}
}

@media screen and (max-width: 64em) {
.pure-button-lg-expanded {
width: 100%;
}
}

@media screen and (max-width: 80em) {
.pure-button-xl-expanded {
width: 100%;
}
}
12 changes: 10 additions & 2 deletions src/buttons/tests/manual/button.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
color: #fff;
box-shadow: none;
}

.custom-fonts {
font-family: 'Open Sans', sans-serif;
}
Expand Down Expand Up @@ -124,6 +124,14 @@ <h2>Primary Form Buttons (Custom Fonts)</h2>
<input type="submit" class="pure-button pure-button-primary" value="Submit">
<input type="button" class="pure-button pure-button-primary" value="Input Button">
<input type="reset" class="pure-button pure-button-primary" value="Reset">
</p>
</p>

<h2>Block wide expanded button</h2>
<button class="pure-button pure-button-expanded">Always Expanded Button</button>
<button class="pure-button pure-button-sm-expanded">Expanded on max small screens Button</button>
<button class="pure-button pure-button-md-expanded">Expanded on max md screens Button</button>
<button class="pure-button pure-button-lg-expanded">Expanded on max lg screens Button</button>
<button class="pure-button pure-button-xl-expanded">Expanded on max xl screens Button</button>

</body>
</html>