From 0114b2133654b7aad297d41e5c02418a752f0631 Mon Sep 17 00:00:00 2001 From: CoderSherlock Date: Fri, 23 Feb 2018 15:42:20 -0500 Subject: [PATCH] Update css --- .../_home.scssc | Bin 23823 -> 23819 bytes _posts/2017-07-08-intro-xv6.md | 2 - _sass/_home.scss | 6 +-- _site/archivers/intro-xv6.html | 4 +- _site/css/main.css | 40 +++++++++--------- _site/feed.xml | 8 ++-- css/main.scss | 10 ++--- 7 files changed, 32 insertions(+), 38 deletions(-) diff --git a/.sass-cache/6cb805bc306cca7fdb5d8f72870f23c31ddcffb2/_home.scssc b/.sass-cache/6cb805bc306cca7fdb5d8f72870f23c31ddcffb2/_home.scssc index 70b9add06ce5e469d76667171b6bccd3e5d6ffd3..7b528b11451a451b179d2b75aa28197b3f6c2cc3 100644 GIT binary patch delta 135 zcmeC*#n`=zae|meib0x*fl-R3VX8@rWlFNCQJQ&@QL3d`QgV`|fkk49vAIcFa;k~R zMmr^GCPUN76D348mr37agt4<^PcpG`Cgta(Otw-mnf%aBesZsZ(qtuj;mwB>>`WN1 bZDtJp09O4u%pRo4B;17sqyin+15ahjo7Vv@13L7K5eQc_yl zMmr^GM&rp7Bt$otN#A3HGP7h)GEHVCVvdG2T?}hE^K-EMY)MNo2$YnvH}2~r7G6| diff --git a/_posts/2017-07-08-intro-xv6.md b/_posts/2017-07-08-intro-xv6.md index e36a967..beca3bd 100644 --- a/_posts/2017-07-08-intro-xv6.md +++ b/_posts/2017-07-08-intro-xv6.md @@ -20,9 +20,7 @@ This interface-like function will then pass the function name, in this case func ~~~~c #define SYS_function ## // ## is the system call number - [SYS_function] sys_function // real system function name - extern int sys_function(void); // real system function declaration ~~~~ diff --git a/_sass/_home.scss b/_sass/_home.scss index 305e17f..d5bf38c 100644 --- a/_sass/_home.scss +++ b/_sass/_home.scss @@ -26,13 +26,13 @@ padding: 20px 40px; list-style: none; > li { - padding-bottom: 30px; + padding-bottom: 15px; border-bottom: 1px solid #CCC; - margin-bottom: 30px; + margin-bottom: 15px; } .post-title { font-size: 28px; - font-weight: normal; + font-weight: bold; margin: 0; } .post-meta { diff --git a/_site/archivers/intro-xv6.html b/_site/archivers/intro-xv6.html index 65211fc..6d4c933 100644 --- a/_site/archivers/intro-xv6.html +++ b/_site/archivers/intro-xv6.html @@ -83,9 +83,7 @@

This interface-like function will then pass the function name, in this case function, to usys.S. When using user mode function in programs, usys.S will generate a reference to SYS_function and push system call number of this function into %eax. After that, system can know from syscall.c and determining whether this system call is available. We must define same name system function and add it into syscall.h and syscall.c.

#define SYS_function ##		// ## is the system call number
-
-[SYS_function]  sys_function	// real system function name
-
+[SYS_function]  sys_function	// real system function name
 extern int sys_function(void);	// real system function declaration
 
diff --git a/_site/css/main.css b/_site/css/main.css index 9b2293c..8ea62ff 100644 --- a/_site/css/main.css +++ b/_site/css/main.css @@ -2,7 +2,7 @@ body { margin: 0; font-family: "Open Sans", "Helvetica Neue", "DejaVu Sans", Arial, "PingFang SC", "Noto Sans CJK SC", "Hiragino Sans GB", "微软雅黑", Helvetica, sans-serif; - font-size: 16px; + font-size: 15px; line-height: 1.5; } a { @@ -21,7 +21,7 @@ blockquote { code, pre { font-family: Menlo, Monaco, Consolas, "DejaVu Sans Mono", "Liberation Mono", "文泉驿等宽微米黑", "Courier New", Courier, SimSun, monospace; - font-size: 15px; } + font-size: 12px; } code { color: #900; @@ -74,8 +74,8 @@ h1, h2, h3, h4, h5, h6 { .wrapper { max-width: 800px; } } .header { - line-height: 32px; - background-color: #607D8B; + line-height: 30px; + background-color: rgba(53, 0, 138, 0.89); padding: 10px; margin: 0; } .header:after { @@ -86,17 +86,17 @@ h1, h2, h3, h4, h5, h6 { float: left; color: #FFF; text-decoration: none; - font-size: 16px; - line-height: 32px; } + font-size: 15px; + line-height: 30px; } .header .site-nav { text-align: right; } .header .site-nav a { text-decoration: none; - color: #CFD8DC; + color: white; padding: 10px 20px; white-space: nowrap; } .header .site-nav a:hover, .header .site-nav a:focus { - background: #78909C; } + background: #2b0070; } .page-content { background: #e0e0e3; @@ -140,7 +140,7 @@ h1, h2, h3, h4, h5, h6 { .col-box { color: #666; - font-size: 14px; + font-size: 13.125px; padding-bottom: 20px; } .col-box p { margin: 0; } @@ -153,7 +153,7 @@ h1, h2, h3, h4, h5, h6 { .col-box .col-box-title { color: #333; margin-bottom: 10px; - font-size: 15.4px; } + font-size: 14.4375px; } @media (max-width: 1120px) { .page-content .wrapper:before { @@ -186,7 +186,7 @@ h1, h2, h3, h4, h5, h6 { margin: 20px auto; display: block; } .col-box-author .name { - font-size: 16px; } + font-size: 15px; } .col-box-author .contact { margin-top: 10px; } .col-box-author .contact a { @@ -205,7 +205,7 @@ h1, h2, h3, h4, h5, h6 { background-color: #e0e0e3; text-align: center; color: #666; - font-size: 14px; } + font-size: 13.125px; } .post .post-header { margin: 0 100px; @@ -220,7 +220,7 @@ h1, h2, h3, h4, h5, h6 { font-size: 34px; } } .post .post-header .post-meta { color: #999; - font-size: 14px; + font-size: 13.125px; margin: 0 -100px; } @media screen and (max-width: 600px) { .post .post-header { @@ -262,7 +262,7 @@ h1, h2, h3, h4, h5, h6 { border: 1px solid; color: #999; background: #fff; - font-size: 11.2px; + font-size: 10.5px; padding: 1px 8px; } .home .rss-link:hover, .home .rss-link:focus { color: #666; } @@ -271,23 +271,23 @@ h1, h2, h3, h4, h5, h6 { padding: 20px 40px; list-style: none; } .home .post-list > li { - padding-bottom: 30px; + padding-bottom: 15px; border-bottom: 1px solid #CCC; - margin-bottom: 30px; } + margin-bottom: 15px; } .home .post-list .post-title { font-size: 28px; - font-weight: normal; + font-weight: bold; margin: 0; } .home .post-list .post-meta { - font-size: 14px; + font-size: 13.125px; color: #666; margin: 0 20px; margin-bottom: .5em; } .home .post-list .post-excerpt { margin: 0 20px; } .home .post-list .post-excerpt, .home .post-list .post-excerpt * { - font-size: 14px; - line-height: 14px; + font-size: 13.125px; + line-height: 13.125px; padding-top: 0; padding-bottom: 0; color: #333; } diff --git a/_site/feed.xml b/_site/feed.xml index 40cce6b..e71d4de 100644 --- a/_site/feed.xml +++ b/_site/feed.xml @@ -6,8 +6,8 @@ https://codersherlock.github.com// - Fri, 23 Feb 2018 15:23:54 -0500 - Fri, 23 Feb 2018 15:23:54 -0500 + Fri, 23 Feb 2018 15:42:08 -0500 + Fri, 23 Feb 2018 15:42:08 -0500 Jekyll v3.7.2 @@ -25,9 +25,7 @@ <p>This interface-like function will then pass the function name, in this case function, to <em>usys.S</em>. When using user mode function in programs, <em>usys.S</em> will generate a reference to SYS_function and push system call number of this function into %eax. After that, system can know from <em>syscall.c</em> and determining whether this system call is available. We must define same name system function and add it into <em>syscall.h</em> and <em>syscall.c</em>.</p> <div class="language-c highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="cp">#define SYS_function ## // ## is the system call number -</span> -<span class="p">[</span><span class="n">SYS_function</span><span class="p">]</span> <span class="n">sys_function</span> <span class="c1">// real system function name</span> - +</span><span class="p">[</span><span class="n">SYS_function</span><span class="p">]</span> <span class="n">sys_function</span> <span class="c1">// real system function name</span> <span class="k">extern</span> <span class="kt">int</span> <span class="n">sys_function</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> <span class="c1">// real system function declaration</span> </code></pre></div></div> diff --git a/css/main.scss b/css/main.scss index 3deac11..507ebde 100755 --- a/css/main.scss +++ b/css/main.scss @@ -4,12 +4,12 @@ @charset "utf-8"; $base-font-family: "Open Sans", "Helvetica Neue", "DejaVu Sans", Arial, "PingFang SC", "Noto Sans CJK SC", "Hiragino Sans GB", "微软雅黑", Helvetica, sans-serif; -$base-font-size: 16px; +$base-font-size: 15px; $small-font-size: $base-font-size * 0.875; $base-line-height: 1.5; $code-font-family: Menlo, Monaco, Consolas, "DejaVu Sans Mono", "Liberation Mono", "文泉驿等宽微米黑", "Courier New", Courier, SimSun, monospace; -$code-font-size: 15px; +$code-font-size: 12px; // Width of the content area $content-width: 800px; @@ -20,9 +20,9 @@ $on-laptop: 800px; $color-link: #036; $color-link-hover: #069; -$header-bg: #607D8B; -$header-bg-hover: #78909C; -$header-link: #CFD8DC; +$header-bg: rgba(53, 0, 138, 0.89); +$header-bg-hover: rgb(43, 0, 112); +$header-link: rgb(255, 255, 255); $header-fg: #FFF; @mixin media-query($device) {