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

Delta Between Two Patch Sets: static/scss/utilities/_layout.scss

Issue 29603821: Noissue - Separated website-default utilities (Closed) Base URL: https://hg.adblockplus.org/website-defaults
Left Patch Set: Created Nov. 10, 2017, 2:04 p.m.
Right Patch Set: Addressed comments #13 Created Dec. 14, 2017, 1:36 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « static/scss/utilities/_colors.scss ('k') | static/scss/utilities/_overrides.scss » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 // This file is part of website-defaults
2 // Copyright (C) 2016-present eyeo GmbH
3 //
4 // website-defaults is free software: you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // website-defaults is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with website-defaults. If not, see <http://www.gnu.org/licenses/>.
16
17 /**
18 * Center within a responsive fixed width
19 * Use modifier classes defined in _width.scss to change said fixed width
20 */
21 .container
22 {
23 width: $container-width;
24 max-width: 100%;
25 margin-right: auto;
26 margin-left: auto;
27 padding-right: $small-space;
28 padding-left: $small-space;
29 }
30
31 /** Clear without collapsed margin */
32 .clearfix:after,
33 .clearfix:before
34 {
35 display: table;
36 content: " ";
37 }
38
39 .clearfix:after
40 {
41 clear: both;
42 }
43
44 /** Align a block to the start of a line */
45 .float-start { float: left; }
46 [dir="rtl"] .float-start { float: right; }
47
48 /** Align a block to the end of a line */
49 .float-end { float: right; }
50 [dir="rtl"] .float-end { float: left; }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld