]> BookStack Code Mirror - bookstack/blobdiff - resources/assets/sass/_blocks.scss
Merge pull request #3 from OsmosysSoftware/revert-1-issue-181
[bookstack] / resources / assets / sass / _blocks.scss
index bf23eb565ce6a364f4ebe31a7803f79767c694df..bd3f8ff4ea5d05b9ef5af72faa9394280e58240b 100644 (file)
     margin-right: $-xl;
   }
 }
+
+
+/**
+ * Callouts
+ */
+
+.callout {
+  border-left: 3px solid #BBB;
+  background-color: #EEE;
+  padding: $-s;
+  padding-left: $-xl;
+  display: block;
+  position: relative;
+  &:before {
+    font-family: 'Material-Design-Iconic-Font';
+    left: $-xs + 4px;
+    top: 50%;
+    margin-top: -9px;
+    //top: $-xs + 5px;
+    display: inline-block;
+    position: absolute;
+    font-size: 1.222em;
+    line-height: 1;
+  }
+  &.success {
+    border-left-color: $positive;
+    background-color: lighten($positive, 45%);
+    color: darken($positive, 16%);
+  }
+  &.success:before {
+    content: '\f269';
+  }
+  &.danger {
+    border-left-color: $negative;
+    background-color: lighten($negative, 34%);
+    color: darken($negative, 20%);
+  }
+  &.danger:before {
+    content: '\f1f2';
+  }
+  &.info {
+    border-left-color: $info;
+    background-color: lighten($info, 50%);
+    color: darken($info, 16%);
+  }
+  &.info:before {
+    content: '\f1f8';
+  }
+  &.warning {
+    border-left-color: $warning;
+    background-color: lighten($warning, 36%);
+    color: darken($warning, 16%);
+  }
+  &.warning:before {
+    content: '\f1f1';
+  }
+}
\ No newline at end of file