Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: static/scss/utilities/_layout.scss

Issue 29587584: Issue 5635 - Implement website-default navbar component (Closed) Base URL: https://hg.adblockplus.org/website-defaults
Patch Set: Rebase Created Jan. 4, 2018, 7:40 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « static/scss/main.scss ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: static/scss/utilities/_layout.scss
===================================================================
--- a/static/scss/utilities/_layout.scss
+++ b/static/scss/utilities/_layout.scss
@@ -13,24 +13,29 @@
//
// You should have received a copy of the GNU General Public License
// along with website-defaults. If not, see <http://www.gnu.org/licenses/>.
/**
* Center within a responsive fixed width
* Use modifier classes defined in _width.scss to change said fixed width
*/
-.container
-{
- width: $container-width;
+ @mixin container($width: $container-width, $padding-x: $small-space)
+ {
+ width: $width;
max-width: 100%;
margin-right: auto;
margin-left: auto;
- padding-right: $small-space;
- padding-left: $small-space;
+ padding-right: $padding-x;
+ padding-left: $padding-x;
+}
+
+.container
+{
+ @include container;
}
/** Clear without collapsed margin */
.clearfix:after,
.clearfix:before
{
display: table;
content: " ";
« no previous file with comments | « static/scss/main.scss ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld