From b06c69128ab0c8e5ebf4ef494e151e81e7c32490 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 17 Sep 2017 16:47:12 +0200 Subject: Convert code spans to markdown. --- demo.md | 2 +- pocketCSS.md | 106 +++++++++++++++++++++++++++++----------------------------- pocketHelp.md | 96 ++++++++++++++++++++++++++-------------------------- 3 files changed, 102 insertions(+), 102 deletions(-) diff --git a/demo.md b/demo.md index bd4b4c2..4958187 100644 --- a/demo.md +++ b/demo.md @@ -115,7 +115,7 @@ Two default list types ## 8 -Lorem ipsum dolor sit amet, consectetur adipisicing elit, +Lorem ipsum `dolor sit amet`, consectetur adipisicing elit,
 sed do eiusmod tempor incididunt 
diff --git a/pocketCSS.md b/pocketCSS.md
index 14ea67c..527feb0 100644
--- a/pocketCSS.md
+++ b/pocketCSS.md
@@ -11,20 +11,20 @@
 
 ## Simple selectors
 
-

assume throughout that E and F are elements, they can have attribute foo e.g. <e foo="bar"> you can replace these with any elements or attributes.

+

assume throughout that `E` and `F` are elements, they can have attribute `foo` e.g. <e foo="bar"> you can replace these with any elements or attributes.

In HTML, elements in CSS can be uppercase like these examples. In XHTML, elements must be lower case. Classes and IDs are always case sensitive

universal selector, match any element -* +`*` type (or element) selector -E +`E` -ID selector an E element with ID equal to "myid", e.g. <e id="myid"> -E#myid +ID selector an E element with ID equal to "myid", e.g. `<e id="myid">` +`E#myid` -class selector an E element whose class is "myclass", e.g. <e class="myclass"> -E.myclass +class selector an E element whose class is "myclass", e.g. `<e class="myclass">` +`E.myclass` --- @@ -33,19 +33,19 @@ ## Combinators & negation descendant combinator to style an F element, which is a descendant of an E element -E F +`E F` child combinator an F element which is the direct child of an E element -E > F +`E > F` adjacent sibling combinator an F element that is immediately preceded by an E element -E + F +`E + F` general sibling combinator an F element preceded at some point by an E element -E ~ F +`E ~ F` -negation pseudo-class an E element that does not match simple selector s -E:not(s) +negation pseudo-class an E element that does not match simple selector `s` +`E:not(s)` --- @@ -54,25 +54,25 @@ ## Attribute selectors element E with a "foo" attribute -E[foo] +`E[foo]` -E’s attribute foo, value exactly equal to bar -E[foo="bar"] +E’s attribute `foo`, value exactly equal to `bar` +`E[foo="bar"]` -E’s attribute foo, value is whitespace-separated values, one of which is exactly "bar" -E[foo~="bar"] +E’s attribute `foo`, value is whitespace-separated values, one of which is exactly "bar" +`E[foo~="bar"]` -E’s attribute foo, value begins exactly "bar" -E[foo^="bar"] +E’s attribute `foo`, value begins exactly "bar" +`E[foo^="bar"]` -E’s attribute foo, value ends exactly "bar" -E[foo$="bar"] +E’s attribute `foo`, value ends exactly "bar" +`E[foo$="bar"]` -E’s attribute foo, value contains substring "bar" -E[foo*="bar"] +E’s attribute `foo`, value contains substring "bar" +`E[foo*="bar"]` -E’s attribute foo has a hyphen-separated list of values beginning (from the left) with "en" -E[foo|="en"] +E’s attribute `foo` has a hyphen-separated list of values beginning (from the left) with "en" +`E[foo|="en"]` --- @@ -80,22 +80,22 @@ ## Structural pseudo-classes -

n can be replaced with an expression in all following cases n can be (odd), (even) or expressions such as (3n + 1)

+

`n` can be replaced with an expression in all following cases `n` can be (odd), (even) or expressions such as (3n + 1)

an E element, the n-th child of its parent -E:nth-child(n) +`E:nth-child(n)` an E element, the n-th child of its parent, counting from the last one -E:nth-last-child(n) +`E:nth-last-child(n)` an E element, the n-th sibling of its type -E:nth-of-type(n) +`E:nth-of-type(n)` an E element, the n-th sibling of its type, counting from the last one -E:nth-last-of-type(n) +`E:nth-last-of-type(n)` an E element that is the document root, i.e. html -E:root +`E:root` --- @@ -104,25 +104,25 @@ ## Structural pseudo-classes an E element, first child of its parent -E:first-child +`E:first-child` an E element, first sibling of its type -E:first-of-type +`E:first-of-type` an E element, last child of its parent -E:last-child +`E:last-child ` an E element, last sibling of its type -E:last-of-type +`E:last-of-type` an E element, only child of its parent -E:only-child +`E:only-child` an E element, only sibling of its type -E:only-of-type +`E:only-of-type` an E element that has no children (including text nodes) -E:empty +`E:empty` --- @@ -131,25 +131,25 @@ ## Pseudo-classes matches a link E when E is a link and not visited, hovered over focused on or active -E:link +`E:link` the href target of the link E has been visited -E:visited +`E:visited` the link E has been activated -E:active +`E:active` any element E when hovered over with a mouse -E:hover +`E:hover` the link or form control E when tabbed to with a keyboard -E:focus +`E:focus` element E is the fragment in the referring URI -E:target +`E:target` an element of type E in language "fr" -E:lang(fr) +`E:lang(fr)` --- @@ -158,24 +158,24 @@ ## Forms & Pseudo-elements a user interface element E which is enabled -E:enabled +`E:enabled` a user interface element E which is disabled -E:disabled +`E:disabled` a user interface element E which is checked -E:checked +`E:checked` the first formatted line of an E element -E::first-line +`E::first-line` the first formatted letter of an E element -E::first-letter +`E::first-letter` generated content before an E element -E::before +`E::before` generated content after an E element -E::after +`E::after`

http://www.w3.org/TR/css3-selectors/

diff --git a/pocketHelp.md b/pocketHelp.md index 44c5278..36772b0 100644 --- a/pocketHelp.md +++ b/pocketHelp.md @@ -11,27 +11,27 @@ ## navigate the file tree -changing directory to dirname -cd dirname +changing directory to `dirname` +`cd dirname` move up a directory in the tree -cd .. +`cd ..` dont forget you can drag a folder in from the finder to get a path to that directory go back to the last directory I was in -cd - +`cd -` where am I? (present working directory) -pwd +`pwd` list what's in this directory -ls +`ls` now give me more information in the listing -ls -lah +`ls -lah` ssh to server -ssh user@domain.com +`ssh user@domain.com` --- @@ -40,25 +40,25 @@ ## find & open list all files recursively in subdomains -find . +`find .` -find all files with '.css' in the name -find . | grep .css +find all files with '`.css`' in the name +`find . | grep .css` -find the string 'prose' in the contents of all the files in this directory -grep -r "prose" . +find the string '`prose`' in the contents of all the files in this directory +`grep -r "prose" .` open a file as if you had double clicked it in the finder (mac only) -open filename +`open filename` open the current directory in the finder -open . +`open .` -make a directory called dirname -mkdir dirname +make a directory called `dirname` +`mkdir dirname` -create a file called filename if it doesnt exist or update last modified date if it does -touch filename +create a file called `filename` if it doesnt exist or update last modified date if it does +`touch filename` --- @@ -67,23 +67,23 @@ ## move, remove & copy move or rename a file or directory -mv oldname newname +`mv oldname newname` remove a file -rm filename +`rm filename` remove a directory and all its contents. BE VERY CAREFUL! you could easily delete everything! -rm -rf dirname +`rm -rf dirname` copy a file -cp oldfilename newfilename +`cp oldfilename newfilename` copy a directory and everything in it -cp -r olddirname newdirname +`cp -r olddirname newdirname` securely copy a file to / on a remote server -scp file user@domain.com: -you can also copy a directory using scp -r +`scp file user@domain.com:` +you can also copy a directory using `scp -r` --- @@ -92,28 +92,28 @@ ## subversion check out a repository to the current directory -svn co URL . +`svn co URL .` update local directory from repository -svn up +`svn up` are there new or modified files? -svn status +`svn status` add new files to the repository -svn add filename +`svn add filename` remove a file from subversion -svn remove filename +`svn remove filename` mark a previously conflicted file as resolved -svn resolved filename +`svn resolved filename` who changed what line number of this file -svn blame filename +`svn blame filename` commit all changes in this directory -svn commit -m "commit msg" +`svn commit -m "commit msg"` --- @@ -122,22 +122,22 @@ ## subversion & download is this directory checked out from svn? and where? -svn info +`svn info` show everything that has changed -svn diff +`svn diff` show what has changed in one file -svn diff filename +`svn diff filename` open text editor in order to specify which files to ignore from svn -svn propedit svn:ignore . +`svn propedit svn:ignore .` download a file to the current directory -wget URL +`wget URL` show the contents of a file in the terminal -curl URL +`curl URL` --- @@ -146,25 +146,25 @@ ## help & information run any command as root -sudo your-command-here +`sudo your-command-here` -get help for any command, eg svn -svn --help +get help for any command, eg `svn` +`svn --help` how long has this computer been on? -uptime +`uptime` what is the size of the current directory and all the contents -du -h +`du -h` cancel the command you were currently typing -ctrl + c +`ctrl + c` go to the beginning of the line in the terminal -ctrl + a +`ctrl + a` go to the end of the line in the terminal -ctrl + e +`ctrl + e` --- -- cgit v1.2.3