Skip to content

Commit 69e8a51

Browse files
committed
Added padding in warning/success boxes\n\nThere's probably an easier way to do this than to migrate to scss but ¯\_(ツ)_/¯
1 parent 0e08108 commit 69e8a51

File tree

9 files changed

+24
-5
lines changed

9 files changed

+24
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.DS_Store
22
_site
33
.ruby-version
4+
.sass-cache/

_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ relative_permalinks: false
2121

2222
gems:
2323
- jekyll-redirect-from
24+
25+
sass:
26+
sass_dir: assets/_sass

_includes/header.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
<title>{{ page.title }} - {{ site.title }}</title>
1313

1414
<link rel="shortcut icon" href="/favicon.ico"/>
15-
<link rel="stylesheet" href="/assets/css/bootstrap.css">
16-
<link rel="stylesheet" href="/assets/css/site.css">
15+
<link rel="stylesheet" href="{{ "/assets/css/main.css" | prepend: site.baseurl }}">
1716

1817
<link rel="canonical" href="{{ site.url }}{{ page.url }}" />
1918

@@ -71,4 +70,4 @@
7170
</ul>
7271
</div><!--/.nav-collapse -->
7372
</div>
74-
</div>
73+
</div>
File renamed without changes.

assets/_sass/boxes.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.bgbox{
2+
padding: 19px; /* same as bootstrap's .well */
3+
&.success{
4+
@extend .bg-success;
5+
}
6+
&.warning{
7+
@extend .bg-warning;
8+
@extend .text-danger;
9+
}
10+
}
File renamed without changes.

assets/css/main.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
# Only the main Sass file needs front matter (the dashes are enough)
3+
---
4+
@charset "utf-8";
5+
6+
@import "bootstrap", "site", "boxes";

schema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ id: schema
1212

1313

1414

15-
{: .bg-warning .text-danger}
15+
{: .bgbox.warning}
1616
***IMPORTANT NOTE***
1717
This version of the schema has been deprecated in favor of the [Project Open Data Metadata Schema v1.1](/v1.1/schema). Federal CFO-Act agencies are expected to complete the transition to the v1.1 schema by **February 1st, 2015**.
1818

v1.1/schema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ id: schema v1.1
88
---
99

1010

11-
{: .bg-success}
11+
{: .bgbox.success}
1212
***New Schema***
1313
This version of the schema replaces [Project Open Data Metadata Schema v1.0](/schema). Federal CFO-Act agencies are expected to complete the transition to the v1.1 schema by **February 1st, 2015**. <br> <br> To see changes from v1.0 to v1.1 see the [Version 1.1 Update](/catalog/#version-11-update) especially the field mappings in [Metadata Resources](/v1.1/metadata-resources/#field-mappings) and the [Metadata Changelog](/metadata-changelog/)
1414

0 commit comments

Comments
 (0)