mirror of
https://github.com/danog/learn-bash.git
synced 2024-11-30 04:19:06 +01:00
Updated the website
This commit is contained in:
parent
0dc9f8773d
commit
3fd643a5d6
Binary file not shown.
Before Width: | Height: | Size: 108 B |
97
index.html
97
index.html
@ -1,97 +0,0 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||
<title>Learn-bash by danog</title>
|
||||
|
||||
<link rel="stylesheet" href="stylesheets/styles.css">
|
||||
<link rel="stylesheet" href="stylesheets/github-dark.css">
|
||||
<script src="javascripts/scale.fix.js"></script>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<header>
|
||||
<h1>Learn-bash</h1>
|
||||
<p>Script to learn bash scripting</p>
|
||||
<p class="view"><a href="https://github.com/danog/learn-bash">View the Project on GitHub <small>danog/learn-bash</small></a></p>
|
||||
<ul>
|
||||
<li><a href="https://github.com/danog/learn-bash/zipball/master">Download <strong>ZIP File</strong></a></li>
|
||||
<li><a href="https://github.com/danog/learn-bash/tarball/master">Download <strong>TAR Ball</strong></a></li>
|
||||
<li><a href="https://github.com/danog/learn-bash">View On <strong>GitHub</strong></a></li>
|
||||
</ul>
|
||||
</header>
|
||||
<section>
|
||||
<h1>
|
||||
<a id="learn-bash" class="anchor" href="#learn-bash" aria-hidden="true"><span class="octicon octicon-link"></span></a>learn-bash</h1>
|
||||
|
||||
<p>Script to learn bash scripting.</p>
|
||||
|
||||
<p><a href="https://travis-ci.org/danog/learn-bash"><img src="https://travis-ci.org/danog/learn-bash.svg?branch=master" alt="Build Status"></a></p>
|
||||
|
||||
<p>This project is licensed under the GPLv3 license.</p>
|
||||
|
||||
<p>To install this script follow the following instructions on:</p>
|
||||
|
||||
<h3>
|
||||
<a id="debian-derived-distros-ubuntu-linux-mint-bodhi-linux-etc" class="anchor" href="#debian-derived-distros-ubuntu-linux-mint-bodhi-linux-etc" aria-hidden="true"><span class="octicon octicon-link"></span></a>Debian-derived distros (Ubuntu, Linux mint, Bodhi Linux, etc.)</h3>
|
||||
|
||||
<p>On debian-derived distros, execute this command to add my repo to your system:</p>
|
||||
|
||||
<pre><code>sudo wget -q -O /etc/apt/sources.list.d/daniil.list http://dano.cu.cc/1IJrcd1 && wget -q -O - http://dano.cu.cc/1Aci9Qp | sudo apt-key add - && sudo apt-key adv --recv-keys --keyserver keys.gnupg.net 72B97FD1D9672C93 && sudo apt-get update
|
||||
</code></pre>
|
||||
|
||||
<p>You should see an OK if the operation was successful.</p>
|
||||
|
||||
<p>And this command to install the script.</p>
|
||||
|
||||
<pre><code>sudo apt-get update; sudo apt-get -y install learn-bash
|
||||
</code></pre>
|
||||
|
||||
<p>And execute the script with this command:</p>
|
||||
|
||||
<pre><code>learn.sh
|
||||
</code></pre>
|
||||
|
||||
<h4>
|
||||
<a id="any-other-linuxunix-system-ubuntu-debian-fedora-redhat-openbsd-mac-os-x" class="anchor" href="#any-other-linuxunix-system-ubuntu-debian-fedora-redhat-openbsd-mac-os-x" aria-hidden="true"><span class="octicon octicon-link"></span></a>Any other Linux/Unix system (Ubuntu, Debian, Fedora, Redhat, openBSD, Mac OS X):</h4>
|
||||
|
||||
<p>Execute this command to install the script:</p>
|
||||
|
||||
<pre><code>wget http://daniilgentili.magix.net/learn.sh -O learn.sh || curl -L http://daniilgentili.magix.net/learn.sh -o learn.sh; chmod +x learn.sh
|
||||
</code></pre>
|
||||
|
||||
<p>And execute the script with this command:</p>
|
||||
|
||||
<pre><code>./learn.sh
|
||||
</code></pre>
|
||||
|
||||
<h3>
|
||||
<a id="ios" class="anchor" href="#ios" aria-hidden="true"><span class="octicon octicon-link"></span></a>iOS:</h3>
|
||||
|
||||
<p>Jailbreak your device, add the following repo to Cydia,</p>
|
||||
|
||||
<pre><code>http://repo.daniil.it
|
||||
</code></pre>
|
||||
|
||||
<p>... and install mobileterminal and learn-bash.</p>
|
||||
|
||||
<p>Run with learn.sh in mobileterminal.</p>
|
||||
|
||||
<p>Happy learning!
|
||||
Daniil Gentili</p>
|
||||
</section>
|
||||
</div>
|
||||
<footer>
|
||||
<p>Project maintained by <a href="https://github.com/danog">danog</a></p>
|
||||
<p>Hosted on GitHub Pages — Theme by <a href="https://github.com/orderedlist">orderedlist</a></p>
|
||||
</footer>
|
||||
<!--[if !IE]><script>fixScale(document);</script><![endif]-->
|
||||
|
||||
</body>
|
||||
</html>
|
48
index.md
48
index.md
@ -13,10 +13,40 @@ Script to learn bash scripting.
|
||||
This project is licensed under the GPLv3 license.
|
||||
|
||||
|
||||
To install this script run the following command on any Linux/Unix system, including Mac OS X and iOS.
|
||||
To install this script follow the following instructions on:
|
||||
|
||||
|
||||
### Debian-derived distros (Ubuntu, Linux mint, Bodhi Linux, etc.)
|
||||
|
||||
On debian-derived distros, execute this command to add my repo to your system:
|
||||
|
||||
```
|
||||
wget http://daniilgentili.magix.net/learn.sh && chmod +x learn.sh
|
||||
sudo wget -q -O /etc/apt/sources.list.d/daniil.list http://dano.cu.cc/1IJrcd1 && wget -q -O - http://dano.cu.cc/1Aci9Qp | sudo apt-key add - && sudo apt-key adv --recv-keys --keyserver keys.gnupg.net 72B97FD1D9672C93 && sudo apt-get update
|
||||
```
|
||||
|
||||
|
||||
You should see an OK if the operation was successful.
|
||||
|
||||
And this command to install the script.
|
||||
|
||||
```
|
||||
sudo apt-get update; sudo apt-get -y install learn-bash
|
||||
```
|
||||
|
||||
|
||||
And execute the script with this command:
|
||||
```
|
||||
learn.sh
|
||||
```
|
||||
|
||||
|
||||
#### Any other Linux/Unix system (Ubuntu, Debian, Fedora, Redhat, openBSD, Mac OS X):
|
||||
|
||||
|
||||
Execute this command to install the script:
|
||||
|
||||
```
|
||||
wget http://daniilgentili.magix.net/learn.sh -O learn.sh || curl -L http://daniilgentili.magix.net/learn.sh -o learn.sh; chmod +x learn.sh
|
||||
```
|
||||
|
||||
And execute the script with this command:
|
||||
@ -24,5 +54,19 @@ And execute the script with this command:
|
||||
./learn.sh
|
||||
```
|
||||
|
||||
|
||||
### iOS:
|
||||
Jailbreak your device, add the following repo to Cydia,
|
||||
|
||||
```
|
||||
http://repo.daniil.it
|
||||
```
|
||||
|
||||
... and install mobileterminal and learn-bash.
|
||||
|
||||
|
||||
Run with learn.sh in mobileterminal.
|
||||
|
||||
|
||||
Happy learning!
|
||||
Daniil Gentili
|
||||
|
@ -1,20 +0,0 @@
|
||||
fixScale = function(doc) {
|
||||
|
||||
var addEvent = 'addEventListener',
|
||||
type = 'gesturestart',
|
||||
qsa = 'querySelectorAll',
|
||||
scales = [1, 1],
|
||||
meta = qsa in doc ? doc[qsa]('meta[name=viewport]') : [];
|
||||
|
||||
function fix() {
|
||||
meta.content = 'width=device-width,minimum-scale=' + scales[0] + ',maximum-scale=' + scales[1];
|
||||
doc.removeEventListener(type, fix, true);
|
||||
}
|
||||
|
||||
if ((meta = meta[meta.length - 1]) && addEvent in doc) {
|
||||
fix();
|
||||
scales = [.25, 1.6];
|
||||
doc[addEvent](type, fix, true);
|
||||
}
|
||||
|
||||
};
|
@ -1 +0,0 @@
|
||||
{"name":"Learn-bash","tagline":"Script to learn bash scripting","body":"# learn-bash\r\nScript to learn bash scripting.\r\n\r\n\r\n[![Build Status](https://travis-ci.org/danog/learn-bash.svg?branch=master)](https://travis-ci.org/danog/learn-bash)\r\n\r\n\r\n\r\nThis project is licensed under the GPLv3 license.\r\n\r\n\r\nTo install this script follow the following instructions on:\r\n\r\n\r\n### Debian-derived distros (Ubuntu, Linux mint, Bodhi Linux, etc.)\r\n\r\nOn debian-derived distros, execute this command to add my repo to your system:\r\n\r\n```\r\nsudo wget -q -O /etc/apt/sources.list.d/daniil.list http://dano.cu.cc/1IJrcd1 && wget -q -O - http://dano.cu.cc/1Aci9Qp | sudo apt-key add - && sudo apt-key adv --recv-keys --keyserver keys.gnupg.net 72B97FD1D9672C93 && sudo apt-get update\r\n```\r\n\r\n\r\nYou should see an OK if the operation was successful.\r\n\r\nAnd this command to install the script.\r\n\r\n```\r\nsudo apt-get update; sudo apt-get -y install learn-bash\r\n```\r\n\r\n\r\nAnd execute the script with this command:\r\n```\r\nlearn.sh\r\n```\r\n\r\n\r\n#### Any other Linux/Unix system (Ubuntu, Debian, Fedora, Redhat, openBSD, Mac OS X):\r\n\r\n\r\nExecute this command to install the script:\r\n\r\n```\r\nwget http://daniilgentili.magix.net/learn.sh -O learn.sh || curl -L http://daniilgentili.magix.net/learn.sh -o learn.sh; chmod +x learn.sh\r\n```\r\n\r\nAnd execute the script with this command:\r\n```\r\n./learn.sh\r\n```\r\n\r\n\r\n### iOS:\r\nJailbreak your device, add the following repo to Cydia,\r\n\r\n```\r\nhttp://repo.daniil.it\r\n```\r\n\r\n... and install mobileterminal and learn-bash.\r\n\r\n\r\nRun with learn.sh in mobileterminal.\r\n\r\n\r\nHappy learning!\r\nDaniil Gentili\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."}
|
27
reallyold.sh
27
reallyold.sh
@ -17,9 +17,6 @@ under certain conditions; see the LICENSE file."
|
||||
lineclear() { echo -en "\r\033[K"; }
|
||||
|
||||
##### Tools detection and selection #####
|
||||
which smooth.sh &>/dev/null && smoothsh=y || smoothsh=n
|
||||
|
||||
which ffmpeg &>/dev/null && ffmpeg=y || ffmpeg=n
|
||||
|
||||
which wget &>/dev/null && {
|
||||
dl() {
|
||||
@ -52,7 +49,7 @@ eval $current
|
||||
}
|
||||
|
||||
s() {
|
||||
try=y
|
||||
echo "skipy" >.learn
|
||||
exit
|
||||
}
|
||||
export -f s r
|
||||
@ -85,6 +82,7 @@ To save the file and close vi or
|
||||
Only to save the file without exiting vi.
|
||||
|
||||
"
|
||||
press
|
||||
}
|
||||
|
||||
learn_nano() {
|
||||
@ -96,6 +94,7 @@ nano name_of_the_file_you_want_to_create
|
||||
"
|
||||
press
|
||||
echo "Once you have written what you need, press CTRL+X and y to save and close the file or just CTRL+O only to save the file."
|
||||
press
|
||||
}
|
||||
|
||||
|
||||
@ -138,6 +137,7 @@ She-bang to use on this system:
|
||||
|
||||
#!"$bash"
|
||||
"
|
||||
|
||||
press
|
||||
|
||||
|
||||
@ -173,7 +173,7 @@ echo Words to print.
|
||||
"
|
||||
press
|
||||
|
||||
echo "If your phrase include newlines or special characters such as ', ;, :, &, !, and so on, you should enclose everything in quotes, like this:
|
||||
echo "If your phrase include newlines or special characters such as ', ;, :, &, and so on, you should enclose everything in quotes, like this:
|
||||
|
||||
echo \"This is something,
|
||||
this is something else;
|
||||
@ -182,11 +182,10 @@ and this is just a random set of special chars:
|
||||
"
|
||||
|
||||
press
|
||||
echo "If your phrase also includes one of the following special characters, apart from being quoted they also have to be escaped using a backslash (\\):
|
||||
\\\"
|
||||
\\' if everything is enclosed in single quotes
|
||||
\\\$ if followed by a letter or number
|
||||
\\\`
|
||||
echo "If your phrase also includes one of the following special characters, apart from being quoted they also have to be escaped using a backslash: \!, \", \`
|
||||
' if everything is enclosed in single quotes
|
||||
\$ if followed by a letter or number
|
||||
|
||||
|
||||
Example:
|
||||
echo This will print \\\"echo \\\` it works! \\\` \\\\ \\\"
|
||||
@ -195,9 +194,10 @@ Will print:
|
||||
`echo This will print \\\"echo \\\` it works! \\\` \\\\ \\\"`
|
||||
"
|
||||
press
|
||||
echo 'If your phrase also includes a ! followed by a letter or number you should enclose the enclose the phrase in single quotes (\').'
|
||||
echo "If your phrase also includes a "'!'" followed by a letter or number you should enclose the phrase in single quotes (')."
|
||||
press
|
||||
echo "To create a file using echo the usage is also very simple:
|
||||
|
||||
echo "Creating a file using echo is very simple:
|
||||
echo \"This and
|
||||
this text will go to a text file.\" > file.txt
|
||||
This will recreate the file.
|
||||
@ -237,7 +237,7 @@ export current="learn_2_lesson"
|
||||
set +H
|
||||
learn_2_lesson
|
||||
|
||||
until [ "$try" = "y" ]; do
|
||||
until [ "$try" = "y" -o "$(cat .learn)" = "skipy" ]; do
|
||||
[ "$try" = "n" ] && echo "Try again (I know you can do it!)!"
|
||||
echo "
|
||||
Task:
|
||||
@ -249,6 +249,7 @@ r to repeat the lesson and s to skip the exercise."
|
||||
./first_script.sh 2>&1 | grep -q "^\"Hello World! :)\"$" && try=y && done=y && ./first_script.sh || try=n
|
||||
clear
|
||||
done
|
||||
rm .learn
|
||||
[ "$done" = "y" ] && echo "Good Job!" || echo "Come back soon!"
|
||||
sleep 2
|
||||
}
|
||||
|
@ -1,116 +0,0 @@
|
||||
/*
|
||||
Copyright 2014 GitHub Inc.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/
|
||||
|
||||
.pl-c /* comment */ {
|
||||
color: #969896;
|
||||
}
|
||||
|
||||
.pl-c1 /* constant, markup.raw, meta.diff.header, meta.module-reference, meta.property-name, support, support.constant, support.variable, variable.other.constant */,
|
||||
.pl-s .pl-v /* string variable */ {
|
||||
color: #0099cd;
|
||||
}
|
||||
|
||||
.pl-e /* entity */,
|
||||
.pl-en /* entity.name */ {
|
||||
color: #9774cb;
|
||||
}
|
||||
|
||||
.pl-s .pl-s1 /* string source */,
|
||||
.pl-smi /* storage.modifier.import, storage.modifier.package, storage.type.java, variable.other, variable.parameter.function */ {
|
||||
color: #ddd;
|
||||
}
|
||||
|
||||
.pl-ent /* entity.name.tag */ {
|
||||
color: #7bcc72;
|
||||
}
|
||||
|
||||
.pl-k /* keyword, storage, storage.type */ {
|
||||
color: #cc2372;
|
||||
}
|
||||
|
||||
.pl-pds /* punctuation.definition.string, string.regexp.character-class */,
|
||||
.pl-s /* string */,
|
||||
.pl-s .pl-pse .pl-s1 /* string punctuation.section.embedded source */,
|
||||
.pl-sr /* string.regexp */,
|
||||
.pl-sr .pl-cce /* string.regexp constant.character.escape */,
|
||||
.pl-sr .pl-sra /* string.regexp string.regexp.arbitrary-repitition */,
|
||||
.pl-sr .pl-sre /* string.regexp source.ruby.embedded */ {
|
||||
color: #3c66e2;
|
||||
}
|
||||
|
||||
.pl-v /* variable */ {
|
||||
color: #fb8764;
|
||||
}
|
||||
|
||||
.pl-id /* invalid.deprecated */ {
|
||||
color: #e63525;
|
||||
}
|
||||
|
||||
.pl-ii /* invalid.illegal */ {
|
||||
background-color: #e63525;
|
||||
color: #f8f8f8;
|
||||
}
|
||||
|
||||
.pl-sr .pl-cce /* string.regexp constant.character.escape */ {
|
||||
color: #7bcc72;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.pl-ml /* markup.list */ {
|
||||
color: #c26b2b;
|
||||
}
|
||||
|
||||
.pl-mh /* markup.heading */,
|
||||
.pl-mh .pl-en /* markup.heading entity.name */,
|
||||
.pl-ms /* meta.separator */ {
|
||||
color: #264ec5;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.pl-mq /* markup.quote */ {
|
||||
color: #00acac;
|
||||
}
|
||||
|
||||
.pl-mi /* markup.italic */ {
|
||||
color: #ddd;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.pl-mb /* markup.bold */ {
|
||||
color: #ddd;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.pl-md /* markup.deleted, meta.diff.header.from-file */ {
|
||||
background-color: #ffecec;
|
||||
color: #bd2c00;
|
||||
}
|
||||
|
||||
.pl-mi1 /* markup.inserted, meta.diff.header.to-file */ {
|
||||
background-color: #eaffea;
|
||||
color: #55a532;
|
||||
}
|
||||
|
||||
.pl-mdr /* meta.diff.range */ {
|
||||
color: #9774cb;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.pl-mo /* meta.output */ {
|
||||
color: #264ec5;
|
||||
}
|
||||
|
@ -1,356 +0,0 @@
|
||||
@import url(https://fonts.googleapis.com/css?family=Lato:300italic,700italic,300,700);
|
||||
html {
|
||||
background: #6C7989;
|
||||
background: #6c7989 -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #6c7989), color-stop(100%, #434b55)) fixed;
|
||||
background: #6c7989 -webkit-linear-gradient(#6c7989, #434b55) fixed;
|
||||
background: #6c7989 -moz-linear-gradient(#6c7989, #434b55) fixed;
|
||||
background: #6c7989 -o-linear-gradient(#6c7989, #434b55) fixed;
|
||||
background: #6c7989 -ms-linear-gradient(#6c7989, #434b55) fixed;
|
||||
background: #6c7989 linear-gradient(#6c7989, #434b55) fixed;
|
||||
}
|
||||
|
||||
body {
|
||||
padding: 50px 0;
|
||||
margin: 0;
|
||||
font: 14px/1.5 Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
color: #555;
|
||||
font-weight: 300;
|
||||
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAeCAYAAABNChwpAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNXG14zYAAAAUdEVYdENyZWF0aW9uIFRpbWUAMy82LzEygrTcTAAAAFRJREFUSIljfPDggZRf5RIGGNjUHsNATz6jXmSL1Kb2GLiAX+USBnrymRgGGDCORgFmoNAXjEbBaBSMRsFoFIxGwWgUjEbBaBSMRsFoFIxGwWgUAABYNujumib3wAAAAABJRU5ErkJggg==') fixed;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
width: 640px;
|
||||
margin: 0 auto;
|
||||
background: #DEDEDE;
|
||||
-webkit-border-radius: 8px;
|
||||
-moz-border-radius: 8px;
|
||||
-ms-border-radius: 8px;
|
||||
-o-border-radius: 8px;
|
||||
border-radius: 8px;
|
||||
-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(0, 0, 0, 0.45) 0 3px 10px;
|
||||
-moz-box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(0, 0, 0, 0.45) 0 3px 10px;
|
||||
box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(0, 0, 0, 0.45) 0 3px 10px;
|
||||
}
|
||||
|
||||
header, section, footer {
|
||||
display: block;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #069;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0 0 20px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
strong {
|
||||
color: #222;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
header {
|
||||
-webkit-border-radius: 8px 8px 0 0;
|
||||
-moz-border-radius: 8px 8px 0 0;
|
||||
-ms-border-radius: 8px 8px 0 0;
|
||||
-o-border-radius: 8px 8px 0 0;
|
||||
border-radius: 8px 8px 0 0;
|
||||
background: #C6EAFA;
|
||||
background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ddfbfc), color-stop(100%, #c6eafa));
|
||||
background: -webkit-linear-gradient(#ddfbfc, #c6eafa);
|
||||
background: -moz-linear-gradient(#ddfbfc, #c6eafa);
|
||||
background: -o-linear-gradient(#ddfbfc, #c6eafa);
|
||||
background: -ms-linear-gradient(#ddfbfc, #c6eafa);
|
||||
background: linear-gradient(#ddfbfc, #c6eafa);
|
||||
position: relative;
|
||||
padding: 15px 20px;
|
||||
border-bottom: 1px solid #B2D2E1;
|
||||
}
|
||||
header h1 {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: 24px;
|
||||
line-height: 1.2;
|
||||
color: #069;
|
||||
text-shadow: rgba(255, 255, 255, 0.9) 0 1px 0;
|
||||
}
|
||||
header.without-description h1 {
|
||||
margin: 10px 0;
|
||||
}
|
||||
header p {
|
||||
margin: 0;
|
||||
color: #61778B;
|
||||
width: 300px;
|
||||
font-size: 13px;
|
||||
}
|
||||
header p.view {
|
||||
display: none;
|
||||
font-weight: 700;
|
||||
text-shadow: rgba(255, 255, 255, 0.9) 0 1px 0;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
header p.view a {
|
||||
color: #06c;
|
||||
}
|
||||
header p.view small {
|
||||
font-weight: 400;
|
||||
}
|
||||
header ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
right: 20px;
|
||||
top: 20px;
|
||||
height: 38px;
|
||||
padding: 1px 0;
|
||||
background: #5198DF;
|
||||
background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #77b9fb), color-stop(100%, #3782cd));
|
||||
background: -webkit-linear-gradient(#77b9fb, #3782cd);
|
||||
background: -moz-linear-gradient(#77b9fb, #3782cd);
|
||||
background: -o-linear-gradient(#77b9fb, #3782cd);
|
||||
background: -ms-linear-gradient(#77b9fb, #3782cd);
|
||||
background: linear-gradient(#77b9fb, #3782cd);
|
||||
border-radius: 5px;
|
||||
-webkit-box-shadow: inset rgba(255, 255, 255, 0.45) 0 1px 0, inset rgba(0, 0, 0, 0.2) 0 -1px 0;
|
||||
-moz-box-shadow: inset rgba(255, 255, 255, 0.45) 0 1px 0, inset rgba(0, 0, 0, 0.2) 0 -1px 0;
|
||||
box-shadow: inset rgba(255, 255, 255, 0.45) 0 1px 0, inset rgba(0, 0, 0, 0.2) 0 -1px 0;
|
||||
width: auto;
|
||||
}
|
||||
header ul:before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
left: -5px;
|
||||
top: -4px;
|
||||
right: -5px;
|
||||
bottom: -6px;
|
||||
background: rgba(0, 0, 0, 0.1);
|
||||
-webkit-border-radius: 8px;
|
||||
-moz-border-radius: 8px;
|
||||
-ms-border-radius: 8px;
|
||||
-o-border-radius: 8px;
|
||||
border-radius: 8px;
|
||||
-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 0, inset rgba(255, 255, 255, 0.7) 0 -1px 0;
|
||||
-moz-box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 0, inset rgba(255, 255, 255, 0.7) 0 -1px 0;
|
||||
box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 0, inset rgba(255, 255, 255, 0.7) 0 -1px 0;
|
||||
}
|
||||
header ul li {
|
||||
width: 79px;
|
||||
float: left;
|
||||
border-right: 1px solid #3A7CBE;
|
||||
height: 38px;
|
||||
}
|
||||
header ul li.single {
|
||||
border: none;
|
||||
}
|
||||
header ul li + li {
|
||||
width: 78px;
|
||||
border-left: 1px solid #8BBEF3;
|
||||
}
|
||||
header ul li + li + li {
|
||||
border-right: none;
|
||||
width: 79px;
|
||||
}
|
||||
header ul a {
|
||||
line-height: 1;
|
||||
font-size: 11px;
|
||||
color: #fff;
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
display: block;
|
||||
text-align: center;
|
||||
font-weight: 400;
|
||||
padding-top: 6px;
|
||||
height: 40px;
|
||||
text-shadow: rgba(0, 0, 0, 0.4) 0 -1px 0;
|
||||
}
|
||||
header ul a strong {
|
||||
font-size: 14px;
|
||||
display: block;
|
||||
color: #fff;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
section {
|
||||
padding: 15px 20px;
|
||||
font-size: 15px;
|
||||
border-top: 1px solid #fff;
|
||||
background: -webkit-gradient(linear, 50% 0%, 50% 700, color-stop(0%, #fafafa), color-stop(100%, #dedede));
|
||||
background: -webkit-linear-gradient(#fafafa, #dedede 700px);
|
||||
background: -moz-linear-gradient(#fafafa, #dedede 700px);
|
||||
background: -o-linear-gradient(#fafafa, #dedede 700px);
|
||||
background: -ms-linear-gradient(#fafafa, #dedede 700px);
|
||||
background: linear-gradient(#fafafa, #dedede 700px);
|
||||
-webkit-border-radius: 0 0 8px 8px;
|
||||
-moz-border-radius: 0 0 8px 8px;
|
||||
-ms-border-radius: 0 0 8px 8px;
|
||||
-o-border-radius: 0 0 8px 8px;
|
||||
border-radius: 0 0 8px 8px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
color: #222;
|
||||
padding: 0;
|
||||
margin: 0 0 20px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
p, ul, ol, table, pre, dl {
|
||||
margin: 0 0 20px;
|
||||
}
|
||||
|
||||
h1, h2, h3 {
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
color: #393939;
|
||||
}
|
||||
|
||||
h3, h4, h5, h6 {
|
||||
color: #494949;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin: 0 -20px 20px;
|
||||
padding: 15px 20px 1px 40px;
|
||||
font-style: italic;
|
||||
background: #ccc;
|
||||
background: rgba(0, 0, 0, 0.06);
|
||||
color: #222;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
code, pre {
|
||||
font-family: Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
|
||||
color: #333;
|
||||
font-size: 12px;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
pre {
|
||||
padding: 20px;
|
||||
background: #3A3C42;
|
||||
color: #f8f8f2;
|
||||
margin: 0 -20px 20px;
|
||||
}
|
||||
pre code {
|
||||
color: #f8f8f2;
|
||||
}
|
||||
li pre {
|
||||
margin-left: -60px;
|
||||
padding-left: 60px;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
th, td {
|
||||
text-align: left;
|
||||
padding: 5px 10px;
|
||||
border-bottom: 1px solid #aaa;
|
||||
}
|
||||
|
||||
dt {
|
||||
color: #222;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
th {
|
||||
color: #222;
|
||||
}
|
||||
|
||||
small {
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
hr {
|
||||
border: 0;
|
||||
background: #aaa;
|
||||
height: 1px;
|
||||
margin: 0 0 20px;
|
||||
}
|
||||
|
||||
footer {
|
||||
width: 640px;
|
||||
margin: 0 auto;
|
||||
padding: 20px 0 0;
|
||||
color: #ccc;
|
||||
overflow: hidden;
|
||||
}
|
||||
footer a {
|
||||
color: #fff;
|
||||
font-weight: bold;
|
||||
}
|
||||
footer p {
|
||||
float: left;
|
||||
}
|
||||
footer p + p {
|
||||
float: right;
|
||||
}
|
||||
|
||||
@media print, screen and (max-width: 740px) {
|
||||
body {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
-webkit-border-radius: 0;
|
||||
-moz-border-radius: 0;
|
||||
-ms-border-radius: 0;
|
||||
-o-border-radius: 0;
|
||||
border-radius: 0;
|
||||
-webkit-box-shadow: none;
|
||||
-moz-box-shadow: none;
|
||||
box-shadow: none;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
footer {
|
||||
-webkit-border-radius: 0;
|
||||
-moz-border-radius: 0;
|
||||
-ms-border-radius: 0;
|
||||
-o-border-radius: 0;
|
||||
border-radius: 0;
|
||||
padding: 20px;
|
||||
width: auto;
|
||||
}
|
||||
footer p {
|
||||
float: none;
|
||||
margin: 0;
|
||||
}
|
||||
footer p + p {
|
||||
float: none;
|
||||
}
|
||||
}
|
||||
@media print, screen and (max-width:580px) {
|
||||
header ul {
|
||||
display: none;
|
||||
}
|
||||
|
||||
header p.view {
|
||||
display: block;
|
||||
}
|
||||
|
||||
header p {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
@media print {
|
||||
header p.view a small:before {
|
||||
content: 'at https://github.com/';
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user