Permalink
Browse files

tweak code blocks

  • Loading branch information...
Benjamin Elder Benjamin Elder
Benjamin Elder authored and Benjamin Elder committed Nov 9, 2018
1 parent c94345a commit f02e88a7867c1a22f9330a27facc6f4c06cfd7c7
Showing with 12 additions and 12 deletions.
  1. +4 −5 assets/css/style.css
  2. +8 −7 content/posts/rust-hotswap.md
@@ -362,8 +362,8 @@ a.white:focus,
padding-top: .5em;
}
#content .page-title {
margin-top: -.1em;
#content .page-title:first-of-type {
margin-top: -.08em;
}
.tile>.full-bleed,
@@ -938,7 +938,6 @@ pre.chroma {
/* border-bottom: 1em solid #1E88E5; */
/* border-color: rgba(0,0,0,.16); */
/* border: 4px solid; */
margin: 0.8em 0;
/* padding: 0.2em; */
/* color: black; */
/* background-color: rgba(39, 40, 35, 1); */
@@ -956,7 +955,7 @@ pre.chroma {
letter-spacing: .01em;
}
.sourceCode, .tile .sourceCode {
background-color: #1E88E5;
background-color: #0057eb;
color: white;
padding: 0!important;
}
@@ -965,7 +964,7 @@ pre.chroma {
padding: 0 !important;
}
.card.higlight {
border: 3px solid #1E88E5;
border: 3px solid #0057eb;
}
div.chroma pre {
@@ -116,7 +116,7 @@ In anycase, it's a cool trick.
----------------------
<u>**Full Source**</u>
<div class="tile no-padding sourceCode"><div class="details">src/main.rs <span style="float: right">Rust</span></div>
<div class="tile no-padding sourceCode"><div class="details">src/main.rs <span style="float: right">Rust</span></div></div>
```rust
extern crate glob;
@@ -180,9 +180,10 @@ fn main() {
do_lib_tick(dylib_path_pattern.as_slice(), 2);
}
```
</div>
<div class="tile no-padding sourceCode"><div class="details">src/lib.rs <span style="float: right">Rust</span></div>
<p></p>
<div class="tile no-padding sourceCode"><div class="details">src/lib.rs <span style="float: right">Rust</span></div></div>
```rust
use std::io;
@@ -199,9 +200,10 @@ pub extern "C" fn do_tick(num: i32) {
out.flush();
}
```
</div>
<div class="tile no-padding sourceCode"><div class="details">Cargo.toml <span style="float: right">TOML</span></div>
<p></p>
<div class="tile no-padding sourceCode"><div class="details">Cargo.toml <span style="float: right">TOML</span></div></div>
```toml
[package]
@@ -219,5 +221,4 @@ path = "src/main.rs"
[dependencies]
glob = "*"
```
</div>
```

0 comments on commit f02e88a

Please sign in to comment.