| Index: static/scss/_utilities.scss |
| =================================================================== |
| --- a/static/scss/_utilities.scss |
| +++ b/static/scss/_utilities.scss |
| @@ -13,127 +13,15 @@ |
| // |
| // You should have received a copy of the GNU General Public License |
| // along with website-defaults. If not, see <http://www.gnu.org/licenses/>. |
| /******************************************************************************* |
| * Utilities |
|
juliandoucette
2017/11/10 14:08:04
Detail: The imports below are in alphabetical orde
ire
2017/11/13 08:33:37
If we import by component, wouldn't that mean we w
juliandoucette
2017/11/13 12:32:59
I didn't think so at the time :(
Apparently the f
ire
2017/11/14 07:14:50
Ack. It would be awesome to do it this way when th
|
| ******************************************************************************/ |
| -/* Responsive widths |
| - ******************************************************************************/ |
| - |
| -/** |
| - * Stretch content (e.g. images) full-width |
| - */ |
| -.full-width |
| -{ |
| - display: block; |
| - width: 100%; |
| -} |
| - |
| -/** |
| - * Center content within a (responsive) fixed width |
| - */ |
| -.container |
| -{ |
| - width: $container-width; |
| - max-width: 100%; |
| - margin-right: auto; |
| - margin-left: auto; |
| - padding-right: $small-space; |
| - padding-left: $small-space; |
| -} |
| - |
| -/* Device widths |
| - ******************************************************************************/ |
| - |
| -.phone-width { width: $phone-width; } |
| -.phablet-width { width: $phablet-width; } |
| -.tablet-width { width: $tablet-width; } |
| -.desktop-width { width: $desktop-width; } |
| -.large-desktop-width { width: $large-desktop-width; } |
| - |
| -/* Text alignment |
| - ******************************************************************************/ |
| - |
| -.text-center { text-align: center; } |
| -.text-left { text-align: left; } |
| -.text-right { text-align: right; } |
| -.text-start { text-align: left; } |
| -[dir="rtl"] .text-start { text-align: right; } |
| -.text-end { text-align: right; } |
| -[dir="rtl"] .text-end { text-align: left; } |
| - |
| -/* Clearfix |
| - ******************************************************************************/ |
| - |
| -.clearfix:after, |
| -.clearfix:before |
| -{ |
| - display: table; |
| - content: " "; |
| -} |
| - |
| -.clearfix:after |
| -{ |
| - clear: both; |
| -} |
| - |
| -/* Screen reader only |
| - ******************************************************************************/ |
| - |
| -.sr-only |
| -{ |
| - position: absolute; |
| - overflow: hidden; |
| - clip: rect(0, 0, 0, 0); |
| - width: 1px; |
| - height: 1px; |
| - margin: -1px; |
| - padding: 0; |
| - border: 0; |
| -} |
| - |
| -/* Unstyled elements |
| - ******************************************************************************/ |
| - |
| -.unstyled, |
| -.unstyled *, |
| -.content .unstyled |
| -{ |
| - margin: 0; |
| - padding: 0; |
| - border: 0; |
| - background: none; |
| -} |
| - |
| -ul.unstyled |
| -{ |
| - list-style: none; |
| -} |
| - |
| -/* Backgrounds |
| - ******************************************************************************/ |
| - |
| -.bg-primary |
| -{ |
| - color: $primary-light; |
| - background-color: $primary-dark; |
| -} |
| - |
| -.bg-secondary |
| -{ |
| - color: $secondary-light; |
| - background-color: $secondary-dark; |
| -} |
| - |
| -.bg-accent |
| -{ |
| - color: $accent-light; |
| - background-color: $accent-dark; |
| -} |
| - |
| -.bg-error |
| -{ |
| - color: $error-light; |
| - background-color: $error-dark; |
| -} |
| +@import "utilities/background-colors.scss"; |
|
ire
2017/11/13 08:33:37
NIT: I think we should not have this file and have
juliandoucette
2017/11/13 12:32:59
*I just thought that* - I agree.
|
| +@import "utilities/clearfix.scss"; |
| +@import "utilities/device-widths.scss"; |
| +@import "utilities/responsive-widths.scss"; |
| +@import "utilities/screen-reader-only.scss"; |
| +@import "utilities/text-alignment.scss"; |
| +@import "utilities/unstyled.scss"; |