Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
362 changes: 362 additions & 0 deletions code/exercises/demos/CHAPTER-10/CreatePortletModule/demo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,362 @@

#blog p.excerpt { display: none; }


/* general */
.current {
color: red;
}

.hover {
color: blue;
}

.hint {
color: #999;
}

h1 {
font-size: 250%;
margin: 5px 0 10px 0;
}

legend,
h2 {
font-size: 150%;
margin: 5px 0;
}

h3 {
font-size: 120%;
margin: 5px 0;
}

h4 {
font-size: 110%;
font-weight: bold;
margin: 5px 0;
}

p {
line-height: 1.4em;
margin: 0 0 8px 0;
font-size: 90%;
}

a {
color: red;
text-decoration: none;
}

a:visited {
color: #a00;
}

.template {
display: none;
}

/* forms */

form li {
margin: 0 0 10px 0;
}

textarea,
input.input_text {
border: 1px solid #ccc;
padding: 4px;
width: 95%;
font-size: 120%;
font-family: Arial, sans-serif;
}

label {
display: block;
font-size: 90%;
font-weight: bold;
margin: 0 0 5px 0;
}

ul {
margin: 20px 15px;
list-style-type: disc;
}

li {
margin: 5px 0;
}

li.checkbox {
margin: 0 0 15px 0;
}

li.checkbox label {
display: inline;
}

fieldset {
margin: 0 0 20px 0;
}

table {
border-collapse: collapse;
}

table td,
table th {
border: 1px solid #ccc;
padding: 5px;
}

table th {
background-color: #ccc;
font-weight: bold;
}


/* page */
body {
font-family: Arial;
color: #333;
width: 900px;
margin: 10px auto;
}

#header {
margin: 0 0 20px 0;
}

#main {
width: 600px;
float: left;
clear: both;
}

#sidebar {
width: 300px;
float: right;
}

#footer {
clear: both;
margin: 60px 0 0 0;
padding: 10px 0 0 0;
font-size: 70%;
color: #ccc;
}

/* navigation */
#logo {
font-size: 400%;
margin: 0 0 40px 0;
}

#logo a {
color: #000;
}

#nav {
margin: 0 0 20px 0;
overflow: visible;
height: 30px;
}

#nav li {
float: left;
padding: 15px;
background-color: #333;
margin: 0 5px 0 0;
position: relative;
height: 20px;
list-style-type: none;
color: #fff;
cursor: pointer;
}

#nav li.selected {
background-color: red;
font-weight: normal;
}

#nav li.hover {
background-color: blue;
}

#nav li ul {
position: absolute;
top: 50px;
left: 0;
width: 200px;
display: none;
margin: 0;
}

#nav li ul li {
float: none;
padding: 5px;
border-bottom: 1px solid #fff;
height: auto;
}

#nav a {
color: #fff;
}

/* main */
#main .module {
margin: 0 0 10px 0;
}

#slideshow {
margin: 0;
}

#slideshow li {
margin: 0 0 10px 0;
list-style-type: none;
}

#specials div.special {
background-color: #ccc;
-moz-border-radius: 8px;
-webkit-border-radius: 8px;
padding: 10px;
margin: 10px 0 0 0;
overflow: hidden;;
}

#specials div.special img {
float: right;
margin: 0 0 10px 10px;
}

#specials .template {
display: none;
}

#menus li {
margin: 0 0 20px 0;
}

#menus li li {
margin: 0;
padding: 5px;
border-bottom: 1px solid #ccc;
}

#menus span.price {
display: block;
float: right;
}

#staff li {
margin: 25px 0;
}

/* sidebar */
#sidebar .module {
border: 1px solid #ccc;
-moz-border-radius: 8px;
-webkit-border-radius: 8px;
padding: 10px;
margin: 0 0 10px 0;
}

#sidebar .module .expander {
text-align: right;
font-size: 70%;
}

#search li {
position: relative;
}

#search #search_results {
position: absolute;
top: 2.8em;
left: 0;
z-index: 100;
background-color: #fff;
border: 1px solid #ccc;
}

#search #search_results li {
padding: 5px 0;
margin: 0 5px;
}

#search #search_results li.hover {
background-color: #ccc;
}

p.closer {
text-align: right;
font-size: 70%;
text-transform: uppercase;
cursor: pointer;
}

/* modules */
#twitter {
display: none;
}

ul li.selected {
font-weight: bold;
}

#search {
margin: 15px 0;
}

/* modal */
#modal {
width: 500px;
padding: 10px;
background-color: #fff;
position: fixed;
top: 100px;
z-index: 101;
margin: 0 225px;
}

#overlay {
position: fixed;
top: 0;
left: 0;
width: 10000px;
height: 10000px;
background-color: #333;
z-index: 100;

}


#blog p.excerpt { display: none; }

.portlet {
border:1px solid #000;
padding:10px;
margin:0 0 10px 0;
}

.portlet .content {
padding:10px;
background-color:#ccc;
}

.portlet .actions {
font-size:80%;
overflow:hidden;
list-style-type:none;
margin:0 0 10px 0;
text-align:right;
}

.portlet .actions li {
float:left;
margin:0 10px 0 0;
padding:0;
cursor:pointer;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
name: jQuery Fundamentals Chapter 10 Create a Portlet Module
description: jQuery Fundamentals Chapter 4 Create a Portlet Module
authors: Rebecca Murphey
normalize_css: yes
...
Empty file.
12 changes: 12 additions & 0 deletions code/exercises/demos/CHAPTER-10/CreatePortletModule/demo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
$(document).ready(function() {
/* jQuery Code Here */

/////////////
//EXERCISES//
/////////////

console.log("\n \n Create a Portlet Module//////////");
//Create a Portlet Module


});
Loading