Skip to content

Instantly share code, notes, and snippets.

@solanoize
Created July 18, 2016 03:18
Show Gist options
  • Select an option

  • Save solanoize/4c523614e372abd85c292abeb065ca2f to your computer and use it in GitHub Desktop.

Select an option

Save solanoize/4c523614e372abd85c292abeb065ca2f to your computer and use it in GitHub Desktop.
Chapter 04 - Django By Example - CSS File
@import url(http://fonts.googleapis.com/css?family=Muli);
body {
margin:0;
padding:0;
font-family:helvetica, sans-serif;
}
p {
line-height: 1.8;
}
a {
color:#12c064;
text-decoration:none;
}
a:hover {
color:#00a74f;
}
h1, h2, h3, h4, h5 , h6 { font-family: 'Muli', sans-serif; font-weight:normal; }
h1 {
border-bottom:1px solid #bbb;
padding:0 0 10px 0;
margin:10px 0 20px 0;
}
h2 {
margin:30px 0 20px;
}
ol {
line-height:1.5;
}
#header {
padding:10px 100px;
font-size:14px;
background:#12c064;
color:#fff;
border-bottom:4px solid #1cdf78;
overflow:auto;
}
#header .logo {
font-family: 'Muli', sans-serif;
float:left;
color:#f3f7cc;
font-size:20px;
margin-right:10%;
}
#header ul.menu {
list-style:none;
float:left;
margin:0;
padding:0;
}
#header ul.menu li {
float:left;
padding:4px 10px;
}
#header ul.menu li.selected a, #header ul.menu li.selected a:hover {
color:#1b6d32;
font-weight:bold;
}
#header a {
color:#f3f7cc;
}
#header a:hover {
color:#fff;
}
#header .user {
float:right;
padding-top:4px;
}
#content {
padding:30px 100px;
}
/* forms */
form {
overflow:auto;
}
form p {
width:100%;
overflow:auto;
}
label {
float:left;
clear:both;
color:#333;
margin-bottom:4px;
}
input, textarea {
clear:both;
float:left;
margin:0 0 10px;
background:#efefef;
border:0;
padding:6px 10px;
font-size:14px;
}
input[type=submit], a.button {
font-weight:bold;
background:#12c064;
color:#fff;
padding:10px 20px;
font-size:14px;
text-transform:uppercase;
}
.errorlist {
color:#cc0033;
float:left;
clear:both;
padding-left:10px;
}
.helptext {
margin:0 0 20px 0;
color:#aaa;
clear:both;
float:left;
font-size:13px;
}
/* messages */
ul.messages {
margin:10px 100px;
padding:0;
list-style-type:
none;
}
ul.messages li.success,
ul.messages li.warning,
ul.messages li.error,
ul.messages li.info {
margin:0;
padding:14px 20px;
list-style:none;
color:#fff;
}
ul.messages li.success { background:#81ce81; }
ul.messages li.success a { color:#0ac33e; }
ul.messages li.error { background:#a30029; color:#e9828e; }
ul.messages li.error a { color:#e9828e; }
ul.messages li.info { background:#faffae; color:#696b4e; }
ul.messages li.info a { color:#1586de; }
ul.messages li.warning { background:#de9404; }
ul.messages li.warning a { color:#f49000; }
ul.messages li a.close {
margin:0;
float:right;
opacity:1;
border:0;
box-shadow:none;
text-shadow:none;
}
.login-form {
float:left;
}
/* social-auth */
.social {
float:right;
}
.social li {
list-style:none;
padding:10px 20px;
margin:0 0 10px 0;
}
.social li a {
width:100%;
height:100%;
display:block;
color:#fff;
}
.social li.facebook { background:#3b5399; }
.social li.twitter { background:#00cffa; }
.social li.google { background:#de1710; }
/* images */
.image-preview, .image-detail {
max-width:300px;
float:left;
margin:0 20px 20px 0;
}
.image-detail { margin-top:20px; }
.image-info div {
padding:20px 0;
overflow:auto;
}
.count {
color:#aaa;
border:3px solid #bbb;
border-radius:26px;
padding:10px 20px;
margin:20px 10px 0;
}
a.like, a.follow { float:right; margin-top:-8px; }
#image-list { overflow:auto; }
#image-list .image {
float:left;
width:220px;
height:300px;
margin:0 10px 10px 10px;
border-top:8px solid #12c064;
background:#eee;
}
#image-list img { width:220px; height:220px; }
#image-list .info { padding:10px; }
#image-list .info a { color:#333; }
.image-likes div {
float:left;
width:auto;
padding:10px;
text-align:center;
}
.image-likes img {
width:120px;
height:120px;
border-radius:50%;
}
/* users */
#people-list img {
width:180px;
height:180px;
border-radius:50%;
margin-bottom:20px;
}
#people-list .user {
width:180px;
float:left;
overflow:auto;
padding:10px;
}
#people-list .info { text-align:center; }
img.user-detail {
border-radius:50%;
float:left;
}
.profile-info {
float:left;
overflow:auto;
margin-right:20px;
}
.image-container { margin-top:40px; }
/* actions */
.action {
clear:both;
overflow:auto;
}
.action .images {
float:left;
margin:0 10px 10px 0;
}
.action .date {
font-style:italic;
color:#ccc;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment