Page MenuHomePhabricator

D605.diff
No OneTemporary

D605.diff

diff --git a/_color.scss b/_color.scss
--- a/_color.scss
+++ b/_color.scss
@@ -164,4 +164,11 @@
$activeStateBackground: $white;
$inactiveStateBorder: $blue500;
-$inactiveStateBackground: $white;
\ No newline at end of file
+$inactiveStateBackground: $white;
+
+
+@each $caption, $color in $colors {
+ .bg\:#{$caption} {
+ background-color: $color
+ }
+}
diff --git a/demo/background.demo.html b/demo/background.demo.html
new file mode 100644
--- /dev/null
+++ b/demo/background.demo.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <style>
+ html, body {
+ padding: 0;
+ margin: 0;;
+ }
+
+ * {
+ box-sizing: border-box;
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
+ }
+
+ .material {
+ border-radius: .3rem;
+ border: solid 1px #CCC;
+ }
+
+ </style>
+ <link type="text/css" rel="stylesheet" href="../dist/_.css">
+ </head>
+ <body>
+ <div class="row l2">
+ <div class="span l1">
+ <div class="bg:grey-500 text:white">
+ Hello world
+ </div>
+ </div>
+ <div class="span l1">
+ </div>
+ </div>
+ </body>
+</html>

File Metadata

Mime Type
text/plain
Expires
Wed, Apr 14, 7:23 AM (3 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5864
Default Alt Text
D605.diff (1 KB)

Event Timeline