diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-05-14 03:52:44 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-05-14 03:52:44 +0300 |
commit | 13584852e8632e11f0c852bd4a9beae26519acf1 (patch) | |
tree | 9afb0865619e50b8cc3a57370c5c8dc418f62065 | |
parent | rename CSS classes (diff) | |
download | blog-13584852e8632e11f0c852bd4a9beae26519acf1.tar.gz blog-13584852e8632e11f0c852bd4a9beae26519acf1.zip |
add CSS classes for reasonably wide blocks
Diffstat (limited to '')
-rw-r--r-- | _includes/header.html | 1 | ||||
-rw-r--r-- | _includes/sidebar.html | 4 | ||||
-rw-r--r-- | about.html | 4 | ||||
-rw-r--r-- | css/misc.css | 3 |
4 files changed, 8 insertions, 4 deletions
diff --git a/_includes/header.html b/_includes/header.html index e9fcc2b..a4d14af 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -9,6 +9,7 @@ <link rel="stylesheet" href="{{ site.baseurl }}/css/syntax.css"> <link rel="stylesheet" href="{{ site.baseurl }}/css/footer.css"> + <link rel="stylesheet" href="{{ site.baseurl }}/css/misc.css"> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 1a1f9a4..e7b024c 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -1,6 +1,6 @@ <h4>About the project</h4> <p>Thoughts on C++ and life. Feel free to contribute or contact me.</p> -<div class="list-group" style="max-width: 400px;"> +<div class="list-group reasonable-width"> <a class="list-group-item" href="//github.com/egor-tensin/cpp_tips"><span class="glyphicon glyphicon-home"></span> GitHub repository</a> <a class="list-group-item" href="mailto:Egor.Tensin@gmail.com"><span class="glyphicon glyphicon-envelope"></span> Egor.Tensin@gmail.com</a> </div> @@ -8,7 +8,7 @@ {% if site.posts.size == 0 %} <p>Sorry, there're no posts yet.</p> {% else %} - <div class="list-group"> + <div class="list-group reasonable-width"> {% for post in site.posts limit: 5 %} <a class="list-group-item" href="{{ site.baseurl }}{{ post.url }}"><span class="badge"><span class="glyphicon glyphicon-time"></span> {{ post.date | date_to_string }}</span><span class="glyphicon glyphicon-file"></span> {{ post.title }}</a> {% endfor %} @@ -5,12 +5,12 @@ group: "navigation" --- <h1>About the project</h1> <p>Thoughs on C++ and life. Feel free to contribute or contact me.</p> -<div class="list-group" style="max-width: 400px;"> +<div class="list-group reasonable-width"> <a class="list-group-item" href="//github.com/egor-tensin/cpp_tips"><span class="glyphicon glyphicon-home"></span> GitHub repository</a> <a class="list-group-item" href="mailto:Egor.Tensin@gmail.com"><span class="glyphicon glyphicon-envelope"></span> Egor.Tensin@gmail.com</a> </div> <h3>Platform</h3> -<table class="table table-bordered" style="max-width: 400px;"> +<table class="table table-bordered reasonable-width"> <tr> <th>CPU</th> <td><a href="http://ark.intel.com/products/58917">Intel Atom N2800</a></td> diff --git a/css/misc.css b/css/misc.css new file mode 100644 index 0000000..06c6675 --- /dev/null +++ b/css/misc.css @@ -0,0 +1,3 @@ +.reasonable-width { + max-width: 400px; +} |