Browse Source
adds new example directory with layout and code examples
adds new example directory with layout and code examples
Former-commit-id:pull/258/head8688f40b59
Former-commit-id:dbc4306c03
jlukic
11 years ago
4 changed files with 802 additions and 0 deletions
Unified View
Diff Options
@ -0,0 +1,94 @@ |
|||||
|
/******************************* |
||||
|
Global |
||||
|
*******************************/ |
||||
|
|
||||
|
html, |
||||
|
body { |
||||
|
font-size: 15px; |
||||
|
height: 100%; |
||||
|
overflow-x: hidden; |
||||
|
} |
||||
|
|
||||
|
body { |
||||
|
font-family: "Open Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif; |
||||
|
background: #FFFFFF; |
||||
|
margin: 0px; |
||||
|
padding: 0px; |
||||
|
color: #555555; |
||||
|
text-rendering: optimizeLegibility; |
||||
|
min-width: 320px; |
||||
|
} |
||||
|
|
||||
|
.ui.header { |
||||
|
font-family: 'Source Sans Pro', "Helvetica Neue", "Helvetica", "Arial", sans-serif; |
||||
|
} |
||||
|
|
||||
|
/******************************* |
||||
|
Global |
||||
|
*******************************/ |
||||
|
|
||||
|
|
||||
|
/*------------------- |
||||
|
Grid |
||||
|
--------------------*/ |
||||
|
|
||||
|
#feed .grid { |
||||
|
height: 100%; |
||||
|
} |
||||
|
#feed > .grid > .column { |
||||
|
height: 100%; |
||||
|
} |
||||
|
|
||||
|
/*------------------- |
||||
|
Menu |
||||
|
--------------------*/ |
||||
|
|
||||
|
#feed .left.column { |
||||
|
background-color: #333333; |
||||
|
} |
||||
|
#feed .left.column > .menu { |
||||
|
height: 100%; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/*------------------- |
||||
|
Inbox |
||||
|
--------------------*/ |
||||
|
|
||||
|
#feed .inbox { |
||||
|
background-color: #FFFFFF; |
||||
|
} |
||||
|
#feed .inbox .item { |
||||
|
padding-top: 1rem; |
||||
|
padding-bottom: 1rem; |
||||
|
} |
||||
|
#feed .middle.column { |
||||
|
padding: 1em 2em; |
||||
|
} |
||||
|
|
||||
|
#feed .right.column { |
||||
|
padding: 1em 2em; |
||||
|
background-color: #FFFFFF; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/******************************* |
||||
|
Responsive |
||||
|
*******************************/ |
||||
|
|
||||
|
|
||||
|
@media only screen and (max-width : 800px) { |
||||
|
#feed .left.column { |
||||
|
min-width: 200px; |
||||
|
} |
||||
|
#feed .inbox .date { |
||||
|
float: none; |
||||
|
margin-top: 0.5em; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
@media only screen and (max-width : 1200px) { |
||||
|
#feed .left.column > .menu .item { |
||||
|
font-size: 1rem; |
||||
|
} |
||||
|
} |
@ -0,0 +1,173 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<head> |
||||
|
<!-- Standard Meta --> |
||||
|
<meta charset="utf-8" /> |
||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> |
||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> |
||||
|
|
||||
|
<!-- Site Properities --> |
||||
|
<title>Feed Example - Semantic</title> |
||||
|
|
||||
|
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700|Open+Sans:300italic,400,300,700' rel='stylesheet' type='text/css'> |
||||
|
|
||||
|
<link rel="stylesheet" type="text/css" href="../build/uncompressed/elements/button.css"> |
||||
|
<link rel="stylesheet" type="text/css" href="../build/uncompressed/elements/divider.css"> |
||||
|
<link rel="stylesheet" type="text/css" href="../build/uncompressed/elements/header.css"> |
||||
|
<link rel="stylesheet" type="text/css" href="../build/uncompressed/elements/icon.css"> |
||||
|
<link rel="stylesheet" type="text/css" href="../build/uncompressed/elements/image.css"> |
||||
|
<link rel="stylesheet" type="text/css" href="../build/uncompressed/elements/input.css"> |
||||
|
<link rel="stylesheet" type="text/css" href="../build/uncompressed/elements/label.css"> |
||||
|
<link rel="stylesheet" type="text/css" href="../build/uncompressed/elements/loader.css"> |
||||
|
<link rel="stylesheet" type="text/css" href="../build/uncompressed/elements/progress.css"> |
||||
|
<link rel="stylesheet" type="text/css" href="../build/uncompressed/elements/segment.css"> |
||||
|
|
||||
|
<link rel="stylesheet" type="text/css" href="../build/uncompressed/collections/breadcrumb.css"> |
||||
|
<link rel="stylesheet" type="text/css" href="../build/uncompressed/collections/form.css"> |
||||
|
<link rel="stylesheet" type="text/css" href="../build/uncompressed/collections/grid.css"> |
||||
|
<link rel="stylesheet" type="text/css" href="../build/uncompressed/collections/menu.css"> |
||||
|
<link rel="stylesheet" type="text/css" href="../build/uncompressed/collections/message.css"> |
||||
|
<link rel="stylesheet" type="text/css" href="../build/uncompressed/collections/table.css"> |
||||
|
|
||||
|
<link rel="stylesheet" type="text/css" href="../build/uncompressed/views/list.css"> |
||||
|
|
||||
|
<link rel="stylesheet" type="text/css" href="../build/uncompressed/modules/modal.css"> |
||||
|
<link rel="stylesheet" type="text/css" href="../build/uncompressed/modules/dropdown.css"> |
||||
|
<link rel="stylesheet" type="text/css" href="../build/uncompressed/modules/popup.css"> |
||||
|
<link rel="stylesheet" type="text/css" href="../build/uncompressed/modules/sidebar.css"> |
||||
|
<link rel="stylesheet" type="text/css" href="../build/uncompressed/modules/tab.css"> |
||||
|
<link rel="stylesheet" type="text/css" href="../build/uncompressed/modules/checkbox.css"> |
||||
|
|
||||
|
|
||||
|
|
||||
|
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.js"></script> |
||||
|
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery.address/1.6/jquery.address.js"></script> |
||||
|
<script src="../build/uncompressed/modules/behavior/state.js"></script> |
||||
|
<script src="../build/uncompressed/modules/checkbox.js"></script> |
||||
|
<script src="../build/uncompressed/modules/dimmer.js"></script> |
||||
|
<script src="../build/uncompressed/modules/dropdown.js"></script> |
||||
|
<script src="../build/uncompressed/modules/modal.js"></script> |
||||
|
<script src="../build/uncompressed/modules/popup.js"></script> |
||||
|
<script src="../build/uncompressed/modules/rating.js"></script> |
||||
|
<script src="../build/uncompressed/modules/sidebar.js"></script> |
||||
|
<script src="../build/uncompressed/modules/tab.js"></script> |
||||
|
<script src="../build/uncompressed/modules/transition.js"></script> |
||||
|
|
||||
|
<script> |
||||
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
||||
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
||||
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
||||
|
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); |
||||
|
ga('create', 'UA-44039803-1', 'semantic-ui.com'); |
||||
|
ga('send', 'pageview'); |
||||
|
</script> |
||||
|
|
||||
|
|
||||
|
<link rel="stylesheet" type="text/css" href="feed.css"> |
||||
|
<script src="feed.js"></script> |
||||
|
|
||||
|
</head> |
||||
|
<body id="feed"> |
||||
|
<div class="ui celled grid"> |
||||
|
<div class="three wide left column"> |
||||
|
<div class="ui large fluid inverted vertical menu"> |
||||
|
<a class="item"> |
||||
|
<i class="add icon"></i> New Feed |
||||
|
</a> |
||||
|
<a class="item"> |
||||
|
<i class="bookmark icon"></i> Favorite Feeds |
||||
|
</a> |
||||
|
<a class="active item"> |
||||
|
Dogs Weekly <span class="ui label">213</span> |
||||
|
</a> |
||||
|
<a class="item"> |
||||
|
Joystiq <span class="ui label">113</span> |
||||
|
</a> |
||||
|
<div class="item"> |
||||
|
<b>Archived Feeds</b> |
||||
|
<div class="menu"> |
||||
|
<a class="item"> |
||||
|
Engadget <span class="ui label">11</span> |
||||
|
</a> |
||||
|
<a class="item"> |
||||
|
NY Times Tech Blog <span class="ui label">21</span> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="six wide middle column"> |
||||
|
<div class="ui tabular filter menu"> |
||||
|
<a class="active item" data-tab="unread">Unread</a> |
||||
|
<a class="item" data-tab="saved">Saved</a> |
||||
|
<a class="item" data-tab="all">All</a> |
||||
|
</div> |
||||
|
<div class="ui divided inbox selection list active tab" data-tab="unread"> |
||||
|
<a class="active item"> |
||||
|
<i class="empty star link icon"></i> |
||||
|
<div class="right floated date">Sep 14, 2013</div> |
||||
|
Weekly Webcomic Wrapup fought the law, and the law won |
||||
|
</a> |
||||
|
<a class="item"> |
||||
|
<i class="empty star link icon"></i> |
||||
|
<div class="right floated date">Sep 14, 2013</div> |
||||
|
Scientists discover new breed of dog |
||||
|
</a> |
||||
|
<a class="item"> |
||||
|
<i class="teal emphasized star link icon"></i> |
||||
|
<div class="right floated date">Sep 10, 2013</div> |
||||
|
Dogs start colony in Antarctica |
||||
|
</a> |
||||
|
<a class="item"> |
||||
|
<i class="empty star link icon"></i> |
||||
|
<div class="right floated date">Sep 09, 2013</div> |
||||
|
Famous dog whisperer Chakotay dies today at 104 |
||||
|
</a> |
||||
|
<a class="item"> |
||||
|
<i class="empty star link icon"></i> |
||||
|
<div class="right floated date">Sep 07, 2013</div> |
||||
|
Top 10 Things to Know about Labradoodles |
||||
|
</a> |
||||
|
<a class="item"> |
||||
|
<i class="empty star link icon"></i> |
||||
|
<div class="right floated date">Sep 05, 2013</div> |
||||
|
Study shows children enjoy the company of animals |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="ui divided inbox selection list tab" data-tab="saved"> |
||||
|
<a class="item"> |
||||
|
<i class="teal emphasized star link icon"></i> |
||||
|
<div class="right floated date">Sep 14, 2013</div> |
||||
|
Your favorite saved article |
||||
|
</a> |
||||
|
<a class="item"> |
||||
|
<i class="teal emphasized star link icon"></i> |
||||
|
<div class="right floated date">Sep 14, 2013</div> |
||||
|
Your favorite saved article |
||||
|
</a> |
||||
|
<a class="item"> |
||||
|
<i class="teal emphasized star link icon"></i> |
||||
|
<div class="right floated date">Sep 14, 2013</div> |
||||
|
Your favorite saved article |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="ui divided inbox selection list tab" data-tab="all"> |
||||
|
<a class="item"> |
||||
|
<i class="star link icon"></i> |
||||
|
<div class="right floated date">Sep 14, 2013</div> |
||||
|
There turns out there is only one article under all. |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="seven wide right column"> |
||||
|
<h1 class="ui header">Weekly Webcomic Wrapup fought the law, and the law won</h1> |
||||
|
<p>So there's this video game coming out Tuesday called Grand Theft Auto 5. Don't know if you've heard of it. Anyways, it's all about crime and gangs and some roughneck ne'er-do-wells, so I thought this would be the perfect time to talk about times when we've been... well, less than perfect.</p> |
||||
|
<p>When I was a young'un, I was a frequent visitor to the local swimming pool. I was also a frequent lover of AirHeads candy, which the pool happened to sell. Waiting, watching, stalking the counter like a big cat in the savannah, I waited for the perfect opportunity to strike. While the lifeguards were busy, I snuck through the gate, reached up and took both cherry and "mystery white" AirHeads. I quickly ran out to the sidewalk and reveled in my sweet, delicious victory... for all of ten seconds, before I felt guilty enough to sneak back in and return the .20 worth of candy I had stolen.</p> |
||||
|
<p>While you confess your crimes - hopefully minor, and nothing you can be persecuted for - take a moment to enjoy this week's webcomics, and vote for your favorite after the jump.</p> |
||||
|
<div class="ui divider"></div> |
||||
|
<div class="ui basic button">Save</div> |
||||
|
<div class="ui basic button">Delete</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</body> |
||||
|
|
||||
|
</html> |
@ -0,0 +1,9 @@ |
|||||
|
$(document) |
||||
|
.ready(function() { |
||||
|
|
||||
|
$('.filter.menu .item') |
||||
|
.tab() |
||||
|
; |
||||
|
|
||||
|
}) |
||||
|
; |
@ -0,0 +1,526 @@ |
|||||
|
/*--------------------- Typography ----------------------------*/ |
||||
|
|
||||
|
@font-face { |
||||
|
font-family: 'Neutraface'; |
||||
|
src: |
||||
|
url("../fonts/neutraface-book.otf") format('opentype') |
||||
|
; |
||||
|
font-weight: normal; |
||||
|
font-style: normal; |
||||
|
font-size-adjust: 0.448; |
||||
|
} |
||||
|
@font-face { |
||||
|
font-family: 'Neutraface'; |
||||
|
src: |
||||
|
url("../fonts/neutraface-bold.otf") format('opentype') |
||||
|
; |
||||
|
font-weight: bold; |
||||
|
font-style: normal; |
||||
|
font-size-adjust: 0.448; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/*--------------------- Layout ----------------------------*/ |
||||
|
html { height: 100%; } |
||||
|
body { |
||||
|
font-family: "Neutraface", "Helvetica Neue", "Arial", sans-serif; |
||||
|
font-size: 14px; |
||||
|
line-height: 18px; |
||||
|
color: #30404f; |
||||
|
margin: 0; padding: 0; |
||||
|
height:100%; |
||||
|
} |
||||
|
#container { min-height: 100%; } |
||||
|
|
||||
|
a { |
||||
|
color: #000; |
||||
|
} |
||||
|
|
||||
|
b, strong { |
||||
|
font-weight: normal; |
||||
|
} |
||||
|
|
||||
|
p, ul, ol { |
||||
|
margin: 15px 0 0px; |
||||
|
} |
||||
|
|
||||
|
h1, h2, h3, h4, h5, h6 { |
||||
|
color: #112233; |
||||
|
font-family: "Neutraface", "Helvetica Neue", "Arial", sans-serif; |
||||
|
line-height: 1em; |
||||
|
text-transform: none; |
||||
|
margin: 30px 0 15px 0; |
||||
|
} |
||||
|
h1 { |
||||
|
margin: 0px 0px 20px; |
||||
|
font-size: 38px; |
||||
|
color: #00B4AC; |
||||
|
} |
||||
|
h2 { |
||||
|
margin: 0px 0px 20px; |
||||
|
font-size: 28px; |
||||
|
color: #6E4889; |
||||
|
} |
||||
|
h3 { |
||||
|
margin: 0px 0px 20px; |
||||
|
font-size: 22px; |
||||
|
} |
||||
|
h4 { |
||||
|
margin: 0px 0px 10px; |
||||
|
font-size: 18px; |
||||
|
color: #555555; |
||||
|
} |
||||
|
h5 { |
||||
|
margin: 0px 0px 10px; |
||||
|
font-size: 16px; |
||||
|
color: #555555; |
||||
|
} |
||||
|
a { |
||||
|
font-weight: bold; |
||||
|
color: #009FDA; |
||||
|
text-decoration: none; |
||||
|
} |
||||
|
a:hover { |
||||
|
color: #00BAFF; |
||||
|
} |
||||
|
|
||||
|
hr { |
||||
|
border: 0; |
||||
|
background: 1px solid #ddd; |
||||
|
height: 1px; |
||||
|
margin: 20px 0; |
||||
|
} |
||||
|
|
||||
|
pre, tt, code { |
||||
|
font-size: 12px; line-height: 16px; |
||||
|
font-family: Menlo, Monaco, Consolas, "Lucida Console", monospace; |
||||
|
margin: 0; padding: 0; |
||||
|
} |
||||
|
.annotation pre { |
||||
|
display: block; |
||||
|
margin: 0; |
||||
|
padding: 7px 10px; |
||||
|
background: #fcfcfc; |
||||
|
-moz-box-shadow: inset 0 0 10px rgba(0,0,0,0.1); |
||||
|
-webkit-box-shadow: inset 0 0 10px rgba(0,0,0,0.1); |
||||
|
box-shadow: inset 0 0 10px rgba(0,0,0,0.1); |
||||
|
overflow-x: auto; |
||||
|
} |
||||
|
.annotation pre code { |
||||
|
border: 0; |
||||
|
padding: 0; |
||||
|
background: transparent; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
blockquote { |
||||
|
border-left: 5px solid #ccc; |
||||
|
margin: 0; |
||||
|
padding: 1px 0 1px 1em; |
||||
|
} |
||||
|
.sections blockquote p { |
||||
|
font-family: Menlo, Consolas, Monaco, monospace; |
||||
|
font-size: 12px; line-height: 16px; |
||||
|
color: #999; |
||||
|
margin: 10px 0 0; |
||||
|
white-space: pre-wrap; |
||||
|
} |
||||
|
|
||||
|
ul.sections { |
||||
|
list-style: none; |
||||
|
padding:0 0 5px 0;; |
||||
|
margin:0; |
||||
|
} |
||||
|
|
||||
|
/* |
||||
|
Force border-box so that % widths fit the parent |
||||
|
container without overlap because of margin/padding. |
||||
|
|
||||
|
More Info : http://www.quirksmode.org/css/box.html |
||||
|
*/ |
||||
|
ul.sections > li > div { |
||||
|
-moz-box-sizing: border-box; /* firefox */ |
||||
|
-ms-box-sizing: border-box; /* ie */ |
||||
|
-webkit-box-sizing: border-box; /* webkit */ |
||||
|
-khtml-box-sizing: border-box; /* konqueror */ |
||||
|
box-sizing: border-box; /* css3 */ |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/*---------------------- Jump Page -----------------------------*/ |
||||
|
#jump_to, #jump_page { |
||||
|
margin: 0; |
||||
|
background: white; |
||||
|
-webkit-box-shadow: 0 0 25px #777; -moz-box-shadow: 0 0 25px #777; |
||||
|
-webkit-border-bottom-left-radius: 5px; -moz-border-radius-bottomleft: 5px; |
||||
|
font: 16px Arial; |
||||
|
cursor: pointer; |
||||
|
text-align: right; |
||||
|
list-style: none; |
||||
|
} |
||||
|
|
||||
|
#jump_to a { |
||||
|
text-decoration: none; |
||||
|
} |
||||
|
|
||||
|
#jump_to a.large { |
||||
|
display: none; |
||||
|
} |
||||
|
#jump_to a.small { |
||||
|
font-size: 22px; |
||||
|
font-weight: bold; |
||||
|
color: #676767; |
||||
|
} |
||||
|
|
||||
|
#jump_to, #jump_wrapper { |
||||
|
position: fixed; |
||||
|
right: 0; top: 0; |
||||
|
padding: 10px 15px; |
||||
|
margin:0; |
||||
|
} |
||||
|
|
||||
|
#jump_wrapper { |
||||
|
display: none; |
||||
|
padding:0; |
||||
|
} |
||||
|
|
||||
|
#jump_to:hover #jump_wrapper { |
||||
|
display: block; |
||||
|
} |
||||
|
|
||||
|
#jump_page { |
||||
|
padding: 5px 0 3px; |
||||
|
margin: 0 0 25px 25px; |
||||
|
} |
||||
|
|
||||
|
#jump_page .source { |
||||
|
display: block; |
||||
|
padding: 15px; |
||||
|
text-decoration: none; |
||||
|
border-top: 1px solid #eee; |
||||
|
} |
||||
|
|
||||
|
#jump_page .source:hover { |
||||
|
background: #f5f5ff; |
||||
|
} |
||||
|
|
||||
|
#jump_page .source:first-child { |
||||
|
} |
||||
|
|
||||
|
/*---------------------- Low resolutions (> 320px) ---------------------*/ |
||||
|
@media only screen and (min-width: 320px) { |
||||
|
.pilwrap { display: none; } |
||||
|
|
||||
|
ul.sections > li > div { |
||||
|
display: block; |
||||
|
padding:5px 10px 0 10px; |
||||
|
} |
||||
|
|
||||
|
ul.sections > li > div.annotation ul, ul.sections > li > div.annotation ol { |
||||
|
padding-left: 30px; |
||||
|
} |
||||
|
|
||||
|
ul.sections > li > div.content { |
||||
|
background: #f5f5ff; |
||||
|
overflow-x:auto; |
||||
|
-webkit-box-shadow: inset 0 0 5px #e5e5ee; |
||||
|
box-shadow: inset 0 0 5px #e5e5ee; |
||||
|
border: 1px solid #dedede; |
||||
|
margin:5px 10px 5px 10px; |
||||
|
padding-bottom: 5px; |
||||
|
} |
||||
|
|
||||
|
ul.sections > li > div.annotation pre { |
||||
|
margin: 7px 0 7px; |
||||
|
padding-left: 15px; |
||||
|
} |
||||
|
|
||||
|
ul.sections > li > div.annotation p tt, .annotation code { |
||||
|
display: inline-block; |
||||
|
padding: 3px 10px; |
||||
|
font-size: 14px; |
||||
|
margin-top: 10px; |
||||
|
background: #f8f8ff; |
||||
|
border: 1px solid #dedede; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/*---------------------- (> 481px) ---------------------*/ |
||||
|
@media only screen and (min-width: 481px) { |
||||
|
#container { |
||||
|
position: relative; |
||||
|
} |
||||
|
body { |
||||
|
background-color: #F5F5FF; |
||||
|
font-size: 15px; |
||||
|
line-height: 21px; |
||||
|
} |
||||
|
pre, tt, code { |
||||
|
line-height: 18px; |
||||
|
} |
||||
|
p, ul, ol { |
||||
|
margin: 0 0 15px; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
#jump_to { |
||||
|
padding: 5px 10px; |
||||
|
} |
||||
|
#jump_wrapper { |
||||
|
padding: 0; |
||||
|
} |
||||
|
#jump_to, #jump_page { |
||||
|
font: 10px Arial; |
||||
|
text-transform: uppercase; |
||||
|
} |
||||
|
#jump_page .source { |
||||
|
padding: 5px 10px; |
||||
|
} |
||||
|
#jump_to a.large { |
||||
|
display: inline-block; |
||||
|
} |
||||
|
#jump_to a.small { |
||||
|
display: none; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
#background { |
||||
|
position: absolute; |
||||
|
top: 0; bottom: 0; |
||||
|
width: 350px; |
||||
|
border-right: 1px solid #e5e5ee; |
||||
|
z-index: -1; |
||||
|
background: #FCFCFC url(../images/bg.jpg) repeat; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
ul.sections > li > div.annotation ul, ul.sections > li > div.annotation ol { |
||||
|
padding-left: 40px; |
||||
|
} |
||||
|
|
||||
|
ul.sections > li { |
||||
|
white-space: nowrap; |
||||
|
} |
||||
|
|
||||
|
ul.sections > li > div { |
||||
|
display: inline-block; |
||||
|
} |
||||
|
|
||||
|
ul.sections > li > div.annotation { |
||||
|
max-width: 350px; |
||||
|
min-width: 350px; |
||||
|
min-height: 5px; |
||||
|
padding: 13px; |
||||
|
overflow-x: hidden; |
||||
|
white-space: normal; |
||||
|
vertical-align: top; |
||||
|
text-align: left; |
||||
|
} |
||||
|
ul.sections > li > div.annotation pre { |
||||
|
margin: 15px 0 15px; |
||||
|
padding-left: 15px; |
||||
|
} |
||||
|
|
||||
|
ul.sections > li > div.content { |
||||
|
padding: 13px; |
||||
|
vertical-align: top; |
||||
|
background: #f5f5ff; |
||||
|
border: none; |
||||
|
-webkit-box-shadow: none; |
||||
|
box-shadow: none; |
||||
|
} |
||||
|
|
||||
|
.pilwrap { |
||||
|
position: relative; |
||||
|
display: inline; |
||||
|
} |
||||
|
|
||||
|
.pilcrow { |
||||
|
font: 12px Arial; |
||||
|
text-decoration: none; |
||||
|
color: #454545; |
||||
|
position: absolute; |
||||
|
top: 3px; left: -20px; |
||||
|
padding: 1px 2px; |
||||
|
opacity: 0; |
||||
|
-webkit-transition: opacity 0.2s linear; |
||||
|
} |
||||
|
.for-h1 .pilcrow { |
||||
|
top: 47px; |
||||
|
} |
||||
|
.for-h2 .pilcrow, .for-h3 .pilcrow, .for-h4 .pilcrow { |
||||
|
top: 35px; |
||||
|
} |
||||
|
|
||||
|
ul.sections > li > div.annotation:hover .pilcrow { |
||||
|
opacity: 1; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/*---------------------- (> 1025px) ---------------------*/ |
||||
|
@media only screen and (min-width: 1025px) { |
||||
|
|
||||
|
body { |
||||
|
font-size: 16px; |
||||
|
line-height: 24px; |
||||
|
} |
||||
|
|
||||
|
#background { |
||||
|
width: 525px; |
||||
|
} |
||||
|
ul.sections { |
||||
|
padding-top: 50px; |
||||
|
} |
||||
|
ul.sections > li > div.annotation { |
||||
|
max-width: 525px; |
||||
|
min-width: 525px; |
||||
|
padding: 10px 25px 1px 50px; |
||||
|
} |
||||
|
ul.sections > li > div.content { |
||||
|
padding: 9px 15px 16px 25px; |
||||
|
} |
||||
|
|
||||
|
ul.sections p { |
||||
|
font-size: 16px; |
||||
|
line-height: 1.33; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/*---------------------- Syntax Highlighting -----------------------------*/ |
||||
|
|
||||
|
td.linenos { background-color: #f0f0f0; padding-right: 10px; } |
||||
|
span.lineno { background-color: #f0f0f0; padding: 0 5px 0 5px; } |
||||
|
/* |
||||
|
|
||||
|
github.com style (c) Vasily Polovnyov <vast@whiteants.net> |
||||
|
|
||||
|
*/ |
||||
|
|
||||
|
pre code { |
||||
|
display: block; padding: 0.5em; |
||||
|
color: #000; |
||||
|
background: #f8f8ff |
||||
|
} |
||||
|
|
||||
|
pre .comment, |
||||
|
pre .template_comment, |
||||
|
pre .diff .header, |
||||
|
pre .javadoc { |
||||
|
color: #408080; |
||||
|
font-style: italic |
||||
|
} |
||||
|
|
||||
|
pre .keyword, |
||||
|
pre .assignment, |
||||
|
pre .literal, |
||||
|
pre .css .rule .keyword, |
||||
|
pre .winutils, |
||||
|
pre .javascript .title, |
||||
|
pre .lisp .title, |
||||
|
pre .subst { |
||||
|
color: #954121; |
||||
|
/*font-weight: bold*/ |
||||
|
} |
||||
|
|
||||
|
pre .number, |
||||
|
pre .hexcolor { |
||||
|
color: #40a070 |
||||
|
} |
||||
|
|
||||
|
pre .string, |
||||
|
pre .tag .value, |
||||
|
pre .phpdoc, |
||||
|
pre .tex .formula { |
||||
|
color: #219161; |
||||
|
} |
||||
|
|
||||
|
pre .title, |
||||
|
pre .id { |
||||
|
color: #19469D; |
||||
|
} |
||||
|
pre .params { |
||||
|
color: #00F; |
||||
|
} |
||||
|
|
||||
|
pre .javascript .title, |
||||
|
pre .lisp .title, |
||||
|
pre .subst { |
||||
|
font-weight: normal |
||||
|
} |
||||
|
|
||||
|
pre .class .title, |
||||
|
pre .haskell .label, |
||||
|
pre .tex .command { |
||||
|
color: #458; |
||||
|
font-weight: bold |
||||
|
} |
||||
|
|
||||
|
pre .tag, |
||||
|
pre .tag .title, |
||||
|
pre .rules .property, |
||||
|
pre .django .tag .keyword { |
||||
|
color: #000080; |
||||
|
font-weight: normal |
||||
|
} |
||||
|
|
||||
|
pre .attribute, |
||||
|
pre .variable, |
||||
|
pre .instancevar, |
||||
|
pre .lisp .body { |
||||
|
color: #008080 |
||||
|
} |
||||
|
|
||||
|
pre .regexp { |
||||
|
color: #B68 |
||||
|
} |
||||
|
|
||||
|
pre .class { |
||||
|
color: #458; |
||||
|
font-weight: bold |
||||
|
} |
||||
|
|
||||
|
pre .symbol, |
||||
|
pre .ruby .symbol .string, |
||||
|
pre .ruby .symbol .keyword, |
||||
|
pre .ruby .symbol .keymethods, |
||||
|
pre .lisp .keyword, |
||||
|
pre .tex .special, |
||||
|
pre .input_number { |
||||
|
color: #990073 |
||||
|
} |
||||
|
|
||||
|
pre .builtin, |
||||
|
pre .constructor, |
||||
|
pre .built_in, |
||||
|
pre .lisp .title { |
||||
|
color: #0086b3 |
||||
|
} |
||||
|
|
||||
|
pre .preprocessor, |
||||
|
pre .pi, |
||||
|
pre .doctype, |
||||
|
pre .shebang, |
||||
|
pre .cdata { |
||||
|
color: #999; |
||||
|
font-weight: bold |
||||
|
} |
||||
|
|
||||
|
pre .deletion { |
||||
|
background: #fdd |
||||
|
} |
||||
|
|
||||
|
pre .addition { |
||||
|
background: #dfd |
||||
|
} |
||||
|
|
||||
|
pre .diff .change { |
||||
|
background: #0086b3 |
||||
|
} |
||||
|
|
||||
|
pre .chunk { |
||||
|
color: #aaa |
||||
|
} |
||||
|
|
||||
|
pre .tex .formula { |
||||
|
opacity: 0.5; |
||||
|
} |
Write
Preview
Loading…
Cancel
Save