Fixed #24444 -- Updated contrib.admin to use django-flat-theme

This commit is contained in:
elky 2015-05-08 22:52:15 +05:00 committed by Tim Graham
parent e176de2512
commit 35901e64b0
14 changed files with 909 additions and 320 deletions

View File

@ -2,11 +2,13 @@
DJANGO Admin styles DJANGO Admin styles
*/ */
@import url(fonts.css);
body { body {
margin: 0; margin: 0;
padding: 0; padding: 0;
font-size: 12px; font-size: 14px;
font-family: "Lucida Grande","DejaVu Sans","Bitstream Vera Sans",Verdana,Arial,sans-serif; font-family: "Roboto","Lucida Grande","DejaVu Sans","Bitstream Vera Sans",Verdana,Arial,sans-serif;
color: #333; color: #333;
background: #fff; background: #fff;
} }
@ -14,7 +16,7 @@ body {
/* LINKS */ /* LINKS */
a:link, a:visited { a:link, a:visited {
color: #5b80b2; color: #447e9b;
text-decoration: none; text-decoration: none;
} }
@ -47,10 +49,10 @@ h1,h2,h3,h4,h5 {
} }
h1 { h1 {
font-size: 18px; margin: 0 0 20px;
font-weight: 300;
font-size: 20px;
color: #666; color: #666;
padding: 0 6px 0 0;
margin: 0 0 .2em 0;
} }
h2 { h2 {
@ -102,8 +104,8 @@ li ul {
} }
li, dt, dd { li, dt, dd {
font-size: 11px; font-size: 13px;
line-height: 14px; line-height: 20px;
} }
dt { dt {
@ -123,6 +125,8 @@ form {
fieldset { fieldset {
margin: 0; margin: 0;
padding: 0; padding: 0;
border: none;
border-top: 1px solid #eee;
} }
blockquote { blockquote {
@ -136,7 +140,7 @@ blockquote {
code, pre { code, pre {
font-family: "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace; font-family: "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace;
color: #666; color: #666;
font-size: 11px; font-size: 12px;
} }
pre.literal-block { pre.literal-block {
@ -176,7 +180,7 @@ p.tiny {
} }
.mini { .mini {
font-size: 9px; font-size: 10px;
} }
p.mini { p.mini {
@ -188,7 +192,7 @@ p.mini {
color: #999; color: #999;
} }
.help-tooltip { img.help-tooltip {
cursor: help; cursor: help;
} }
@ -243,33 +247,33 @@ table {
} }
td, th { td, th {
font-size: 11px; font-size: 13px;
line-height: 13px; line-height: 16px;
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
vertical-align: top; vertical-align: top;
padding: 5px; padding: 8px;
font-family: "Lucida Grande", Verdana, Arial, sans-serif; font-family: "Roboto", "Lucida Grande", Verdana, Arial, sans-serif;
} }
th { th {
font-weight: 600;
text-align: left; text-align: left;
font-size: 12px;
font-weight: bold;
} }
thead th, thead th,
tfoot td { tfoot td {
color: #666; color: #666;
padding: 2px 5px; padding: 5px 10px;
font-size: 11px; font-size: 11px;
background: #e1e1e1 url(../img/nav-bg.gif) top left repeat-x; background: #fff;
border-left: 1px solid #ddd; border: none;
border-bottom: 1px solid #ddd; border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
} }
tfoot td { tfoot td {
border-bottom: none; border-bottom: none;
border-top: 1px solid #ddd; border-top: 1px solid #eee;
} }
thead th:first-child, thead th:first-child,
@ -281,10 +285,6 @@ thead th.optional {
font-weight: normal !important; font-weight: normal !important;
} }
fieldset table {
border-right: 1px solid #eee;
}
tr.row-label td { tr.row-label td {
font-size: 9px; font-size: 9px;
padding-top: 2px; padding-top: 2px;
@ -299,18 +299,20 @@ tr.alt {
} }
.row1 { .row1 {
background: #EDF3FE; background: #fff;
} }
.row2 { .row2 {
background: #fff; background: #f9f9f9;
} }
/* SORTABLE TABLES */ /* SORTABLE TABLES */
thead th { thead th {
padding: 2px 5px; padding: 5px 10px;
line-height: normal; line-height: normal;
text-transform: uppercase;
background: #f6f6f6;
} }
thead th a:link, thead th a:visited { thead th a:link, thead th a:visited {
@ -318,7 +320,7 @@ thead th a:link, thead th a:visited {
} }
thead th.sorted { thead th.sorted {
background: #c5c5c5 url(../img/nav-bg-selected.gif) top left repeat-x; background: #eee;
} }
thead th.sorted .text { thead th.sorted .text {
@ -326,18 +328,18 @@ thead th.sorted .text {
} }
table thead th .text span { table thead th .text span {
padding: 2px 5px; padding: 8px 10px;
display:block; display: block;
} }
table thead th .text a { table thead th .text a {
display: block; display: block;
cursor: pointer; cursor: pointer;
padding: 2px 5px; padding: 8px 10px;
} }
table thead th.sortable:hover { table thead th.sortable:hover {
background: #fff url(../img/nav-bg-reverse.gif) 0 -5px repeat-x; background: #eee;
} }
thead th.sorted a.sortremove { thead th.sorted a.sortremove {
@ -350,7 +352,7 @@ table thead th.sorted:hover a.sortremove {
table thead th.sorted .sortoptions { table thead th.sorted .sortoptions {
display: block; display: block;
padding: 4px 5px 0 5px; padding: 10px 5px 0 5px;
float: right; float: right;
text-align: right; text-align: right;
} }
@ -414,61 +416,78 @@ input, textarea, select, .form-row p, form .button {
margin: 2px 0; margin: 2px 0;
padding: 2px 3px; padding: 2px 3px;
vertical-align: middle; vertical-align: middle;
font-family: "Lucida Grande", Verdana, Arial, sans-serif; font-family: "Roboto", "Lucida Grande", Verdana, Arial, sans-serif;
font-weight: normal; font-weight: normal;
font-size: 11px; font-size: 13px;
} }
textarea { textarea {
vertical-align: top !important; vertical-align: top !important;
} }
input[type=text], input[type=password], input[type=email], input[type=url], input[type=number], input[type=text], input[type=password], input[type=email], input[type=url],
textarea, select, .vTextField { input[type=number], textarea, select, .vTextField {
border: 1px solid #ccc; border: 1px solid #ccc;
border-radius: 4px;
padding: 5px 6px;
margin-top: 0;
outline: none;
}
input[type=text]:focus, input[type=password]:focus, input[type=email]:focus,
input[type=url]:focus, input[type=number]:focus, textarea:focus, select:focus,
.vTextField:focus {
border-color: #999;
}
select {
height: 30px;
}
select[multiple] {
min-height: 150px;
} }
/* FORM BUTTONS */ /* FORM BUTTONS */
.button, input[type=submit], input[type=button], .submit-row input, a.button { .button, input[type=submit], input[type=button], .submit-row input, a.button {
background: #fff url(../img/nav-bg.gif) bottom repeat-x; background: #79aec8;
padding: 3px 5px; padding: 10px 15px;
color: black; border: none;
border: 1px solid #bbb; outline: none;
border-color: #ddd #aaa #aaa #ddd; border-radius: 4px;
color: #fff;
cursor: pointer;
} }
a.button { a.button {
padding: 4px 5px; padding: 4px 5px;
} }
.button:active, input[type=submit]:active, input[type=button]:active { .button:active, input[type=submit]:active, input[type=button]:active,
background-image: url(../img/nav-bg-reverse.gif); .button:hover, input[type=submit]:hover, input[type=button]:hover {
background-position: top; background: #609ab6;
} }
.button[disabled], input[type=submit][disabled], input[type=button][disabled] { .button[disabled], input[type=submit][disabled], input[type=button][disabled] {
background-image: url(../img/nav-bg.gif);
background-position: bottom;
opacity: 0.4; opacity: 0.4;
} }
.button.default, input[type=submit].default, .submit-row input.default { .button.default, input[type=submit].default, .submit-row input.default {
border: 2px solid #5b80b2;
background: #7CA0C7 url(../img/default-bg.gif) bottom repeat-x;
font-weight: bold;
color: #fff;
float: right; float: right;
border: none;
font-weight: 400;
background: #417690;
} }
.button.default:active, input[type=submit].default:active { .button.default:active, input[type=submit].default:active,
background-image: url(../img/default-bg-reverse.gif); .button.default:hover, input[type=submit].default:hover {
background-position: top; background: #205067;
} }
.button[disabled].default, input[type=submit][disabled].default, input[type=button][disabled].default { .button[disabled].default,
background-image: url(../img/default-bg.gif); input[type=submit][disabled].default,
background-position: bottom; input[type=button][disabled].default {
opacity: 0.4; opacity: 0.4;
} }
@ -476,8 +495,8 @@ a.button {
/* MODULES */ /* MODULES */
.module { .module {
border: 1px solid #ccc; border: none;
margin-bottom: 5px; margin-bottom: 30px;
background: #fff; background: #fff;
} }
@ -500,14 +519,21 @@ a.button {
.module h2, .module caption, .inline-group h2 { .module h2, .module caption, .inline-group h2 {
margin: 0; margin: 0;
padding: 2px 5px 3px 5px; padding: 8px;
font-size: 11px; font-weight: 400;
font-size: 13px;
text-align: left; text-align: left;
font-weight: bold; background: #79aec8;
background: #7CA0C7 url(../img/default-bg.gif) top left repeat-x;
color: #fff; color: #fff;
} }
.module caption,
.inline-group h2 {
font-size: 12px;
letter-spacing: 0.5px;
text-transform: uppercase;
}
.module table { .module table {
border-collapse: collapse; border-collapse: collapse;
} }
@ -520,51 +546,47 @@ ul.messagelist {
} }
ul.messagelist li { ul.messagelist li {
font-size: 12px;
font-weight: bold;
display: block; display: block;
padding: 5px 5px 4px 25px; font-weight: 400;
margin: 0 0 3px 0; font-size: 13px;
border-bottom: 1px solid #ddd; padding: 10px 10px 10px 65px;
color: #666; margin: 0 0 10px 0;
background: #dfd url(../img/icon_success.gif) 5px .3em no-repeat; background: #dfd url(../img/icon_success.gif) 40px 12px no-repeat;
color: #333;
} }
ul.messagelist li.warning { ul.messagelist li.warning {
background: #ffc url(../img/icon_alert.gif) 5px .3em no-repeat; background: #ffc url(../img/icon_alert.gif) 40px 10px no-repeat;
} }
ul.messagelist li.error { ul.messagelist li.error {
background: #ffefef url(../img/icon_error.gif) 5px .3em no-repeat; background: #ffefef url(../img/icon_error.gif) 40px 11px no-repeat;
} }
.errornote { .errornote {
font-size: 12px !important; font-size: 14px !important;
font-weight: bold; font-weight: 700;
display: block; display: block;
padding: 5px 5px 4px 25px; padding: 10px 12px;
margin: 0 0 3px 0; margin: 0 0 10px 0;
border: 1px solid #c22; color: #ba2121;
color: #c11; border: 1px solid #ba2121;
background: #ffefef url(../img/icon_error.gif) 5px .38em no-repeat; border-radius: 4px;
} background-color: #fff;
background-position: 5px 12px;
.errornote, ul.errorlist {
border-radius: 1px;
} }
ul.errorlist { ul.errorlist {
margin: 0 0 4px !important; margin: 0 0 4px !important;
padding: 0 !important; padding: 0 !important;
color: #fff; color: #ba2121;
background: #c11; background: #fff;
} }
ul.errorlist li { ul.errorlist li {
font-size: 12px !important; font-size: 13px !important;
display: block; display: block;
padding: 5px 5px 4px 7px; margin-bottom: 4px;
margin: 3px 0 0 0;
} }
ul.errorlist li:first-child { ul.errorlist li:first-child {
@ -572,7 +594,7 @@ ul.errorlist li:first-child {
} }
ul.errorlist li a { ul.errorlist li a {
color: #fff; color: inherit;
text-decoration: underline; text-decoration: underline;
} }
@ -585,17 +607,19 @@ td ul.errorlist li {
margin: 0 !important; margin: 0 !important;
} }
.errors, .form-row.errors { .form-row.errors {
background: #ffefef; margin: 0;
border: none;
border-bottom: 1px solid #eee;
background: none;
} }
.form-row.errors { .form-row.errors ul.errorlist li {
border: 1px solid #c22; padding-left: 0;
margin: -1px;
} }
.errors input, .errors select, .errors textarea { .errors input, .errors select, .errors textarea {
border: 1px solid #c11; border: 1px solid #ba2121;
} }
div.system-message { div.system-message {
@ -620,29 +644,36 @@ div.system-message p.system-message-title {
/* BREADCRUMBS */ /* BREADCRUMBS */
div.breadcrumbs { div.breadcrumbs {
background: #fff url(../img/nav-bg-reverse.gif) 0 -10px repeat-x; background: #79aec8;
padding: 2px 8px 3px 8px; padding: 10px 40px;
font-size: 11px; border: none;
color: #999; font-size: 14px;
border-top: 1px solid #fff; color: #c4dce8;
border-bottom: 1px solid #ddd;
text-align: left; text-align: left;
} }
div.breadcrumbs a {
color: #fff;
}
div.breadcrumbs a:hover {
color: #c4dce8;
}
/* ACTION ICONS */ /* ACTION ICONS */
.addlink { .addlink {
padding-left: 12px; padding-left: 14px;
background: url(../img/icon_addlink.gif) 0 .2em no-repeat; background: url(../img/icon_addlink.gif) 0 .2em no-repeat;
} }
.changelink, .inlinechangelink { .changelink, .inlinechangelink {
padding-left: 12px; padding-left: 14px;
background: url(../img/icon_changelink.gif) 0 .2em no-repeat; background: url(../img/icon_changelink.gif) 0 .2em no-repeat;
} }
.deletelink { .deletelink {
padding-left: 12px; padding-left: 14px;
background: url(../img/icon_deletelink.gif) 0 .25em no-repeat; background: url(../img/icon_deletelink.gif) 0 .25em no-repeat;
} }
@ -659,12 +690,10 @@ a.deletelink:hover {
.object-tools { .object-tools {
font-size: 10px; font-size: 10px;
font-weight: bold; font-weight: bold;
font-family: Arial,Helvetica,sans-serif;
padding-left: 0; padding-left: 0;
float: right; float: right;
position: relative; position: relative;
margin-top: -2.4em; margin-top: -48px;
margin-bottom: -2em;
} }
.form-row .object-tools { .form-row .object-tools {
@ -689,13 +718,17 @@ a.deletelink:hover {
.object-tools a:link, .object-tools a:visited { .object-tools a:link, .object-tools a:visited {
display: block; display: block;
float: left; float: left;
color: #fff; padding: 3px 12px;
padding: .2em 10px;
background: #999; background: #999;
font-weight: 400;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.5px;
color: #fff;
} }
.object-tools a:hover, .object-tools li:hover a { .object-tools a:hover, .object-tools li:hover a {
background-color: #5b80b2; background-color: #417690;
} }
.object-tools a.viewsitelink, .object-tools a.golink { .object-tools a.viewsitelink, .object-tools a.golink {
@ -723,12 +756,17 @@ table#change-history tbody th {
#container { #container {
position: relative; position: relative;
width: 100%; width: 100%;
min-width: 760px; min-width: 980px;
padding: 0; padding: 0;
} }
#content { #content {
margin: 10px 15px; padding: 20px 40px;
margin: 0;
}
.dashboard #content {
width: 600px;
} }
#content-main { #content-main {
@ -738,9 +776,9 @@ table#change-history tbody th {
#content-related { #content-related {
float: right; float: right;
width: 18em; width: 260px;
position: relative; position: relative;
margin-right: -19em; margin-right: -300px;
} }
#footer { #footer {
@ -769,7 +807,7 @@ table#change-history tbody th {
} }
.popup .colM { .popup .colM {
width: 95%; width: auto;
} }
.subcol { .subcol {
@ -778,15 +816,15 @@ table#change-history tbody th {
margin-right: 15px; margin-right: 15px;
} }
.dashboard #content {
width: 500px;
}
/* HEADER */ /* HEADER */
#header { #header {
width: 100%; width: auto;
height: 40px;
padding: 10px 40px;
background: #417690; background: #417690;
line-height: 40px;
color: #ffc; color: #ffc;
overflow: hidden; overflow: hidden;
} }
@ -802,15 +840,17 @@ table#change-history tbody th {
#branding { #branding {
float: left; float: left;
} }
#branding h1 { #branding h1 {
padding: 0 10px; padding: 0;
font-size: 18px; margin: 0 20px 0 0;
margin: 8px 0; font-weight: 300;
font-weight: normal; font-size: 24px;
color: #f5dd5d;
} }
#branding h1, #branding h1 a:link, #branding h1 a:visited { #branding h1, #branding h1 a:link, #branding h1 a:visited {
color: #f4f379; color: #f5dd5d;
} }
#branding h2 { #branding h2 {
@ -827,24 +867,110 @@ table#change-history tbody th {
#user-tools { #user-tools {
float: right; float: right;
padding: 1.2em 10px; padding: 0;
margin: 0 0 0 20px;
font-weight: 300;
font-size: 11px; font-size: 11px;
letter-spacing: 0.5px;
text-transform: uppercase;
text-align: right; text-align: right;
} }
#user-tools a {
border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
#user-tools a:hover {
text-decoration: none;
border-bottom-color: #79aec8;
color: #79aec8;
}
/* SIDEBAR */ /* SIDEBAR */
#content-related {
background: #f8f8f8;
}
#content-related .module {
background: none;
}
#content-related h3 { #content-related h3 {
font-size: 12px; font-size: 14px;
color: #666; color: #666;
margin-bottom: 3px; padding: 0 16px;
margin: 0 0 16px;
} }
#content-related h4 { #content-related h4 {
font-size: 11px; font-size: 13px;
}
#content-related p {
padding-left: 16px;
padding-right: 16px;
}
#content-related .actionlist {
padding: 0;
margin: 16px;
}
#content-related .actionlist li {
line-height: 1.2;
margin-bottom: 10px;
padding-left: 18px;
} }
#content-related .module h2 { #content-related .module h2 {
background: #eee url(../img/nav-bg.gif) bottom left repeat-x; background: none;
color: #666; padding: 16px;
margin-bottom: 16px;
border-bottom: 1px solid #eaeaea;
font-size: 18px;
color: #333;
}
.delete-confirmation form input[type="submit"] {
background: #ba2121;
border-radius: 4px;
padding: 10px 15px;
color: #fff;
}
.delete-confirmation form input[type="submit"]:active,
.delete-confirmation form input[type="submit"]:hover {
background: #a41515;
}
.delete-confirmation form .cancel-link {
display: inline-block;
vertical-align: middle;
height: 15px;
line-height: 15px;
background: #ddd;
border-radius: 4px;
padding: 10px 15px;
color: #333;
margin: 0 0 0 10px;
}
.delete-confirmation form .cancel-link:active,
.delete-confirmation form .cancel-link:hover {
background: #ccc;
}
/* POPUP */
.popup #content {
padding: 20px;
}
.popup #container {
min-width: 0;
}
.popup #header {
padding: 10px 20px;
} }

View File

@ -12,7 +12,7 @@
.change-list .hiddenfields { display:none; } .change-list .hiddenfields { display:none; }
.change-list .filtered table { .change-list .filtered table {
border-right: 1px solid #ddd; border-right: none;
} }
.change-list .filtered { .change-list .filtered {
@ -20,11 +20,12 @@
} }
.change-list .filtered { .change-list .filtered {
background: white url(../img/changelist-bg.gif) top right repeat-y !important; background: #fff !important;
} }
.change-list .filtered .results, .change-list .filtered .paginator, .filtered #toolbar, .filtered div.xfull { .change-list .filtered .results, .change-list .filtered .paginator,
margin-right: 160px !important; .filtered #toolbar, .filtered div.xfull {
margin-right: 280px !important;
width: auto !important; width: auto !important;
} }
@ -42,16 +43,11 @@
#changelist .paginator { #changelist .paginator {
color: #666; color: #666;
border-top: 1px solid #eee;
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
background: white url(../img/nav-bg.gif) 0 180% repeat-x; background: #fff;
overflow: hidden; overflow: hidden;
} }
.change-list .filtered .paginator {
border-right: 1px solid #ddd;
}
/* CHANGELIST TABLES */ /* CHANGELIST TABLES */
#changelist table thead th { #changelist table thead th {
@ -65,21 +61,8 @@
text-align: center; text-align: center;
} }
#changelist table tbody td, #changelist table tbody th {
border-left: 1px solid #ddd;
}
#changelist table tbody td:first-child, #changelist table tbody th:first-child {
border-left: 0;
border-right: 1px solid #ddd;
}
#changelist table tbody th:first-child:last-child {
border-right: 0;
}
#changelist table tbody td.action-checkbox { #changelist table tbody td.action-checkbox {
text-align:center; text-align: center;
} }
#changelist table tfoot { #changelist table tfoot {
@ -89,23 +72,52 @@
/* TOOLBAR */ /* TOOLBAR */
#changelist #toolbar { #changelist #toolbar {
padding: 3px; padding: 8px 10px;
border-bottom: 1px solid #ddd; margin-bottom: 15px;
background: #e1e1e1 url(../img/nav-bg.gif) top left repeat-x; border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
background: #f8f8f8;
color: #666; color: #666;
} }
#changelist #toolbar form input { #changelist #toolbar form input {
font-size: 11px; border-radius: 4px;
padding: 1px 2px; font-size: 14px;
padding: 5px;
color: #333;
} }
#changelist #toolbar form #searchbar { #changelist #toolbar form #searchbar {
padding: 2px; height: 19px;
border: 1px solid #ccc;
padding: 2px 5px;
margin: 0;
vertical-align: top;
font-size: 13px;
}
#changelist #toolbar form #searchbar:focus {
outline: none;
border-color: #999;
}
#changelist #toolbar form input[type="submit"] {
border: 1px solid #ccc;
padding: 2px 10px;
margin: 0;
vertical-align: -1px;
background: #fff url(../img/nav-bg.gif) bottom repeat-x;
cursor: pointer;
color: #333;
}
#changelist #toolbar form input[type="submit"]:hover {
border-color: #999;
} }
#changelist #changelist-search img { #changelist #changelist-search img {
vertical-align: middle; vertical-align: middle;
margin-right: 4px;
} }
/* FILTER COLUMN */ /* FILTER COLUMN */
@ -115,26 +127,37 @@
top: 0; top: 0;
right: 0; right: 0;
z-index: 1000; z-index: 1000;
width: 160px; width: 240px;
border-left: 1px solid #ddd; background: #f8f8f8;
background: #efefef; border-left: none;
margin: 0; margin: 0;
} }
#changelist-filter h2 { #changelist-filter h2 {
font-size: 11px; font-size: 14px;
padding: 2px 5px; text-transform: uppercase;
border-bottom: 1px solid #ddd; letter-spacing: 0.5px;
padding: 5px 15px;
margin-bottom: 12px;
border-bottom: none;
} }
#changelist-filter h3 { #changelist-filter h3 {
font-size: 12px; font-weight: 400;
margin-bottom: 0; font-size: 14px;
padding: 0 15px;
margin-bottom: 10px;
} }
#changelist-filter ul { #changelist-filter ul {
padding-left: 0; margin: 5px 0;
margin-left: 10px; padding: 0 15px 15px;
border-bottom: 1px solid #eaeaea;
}
#changelist-filter ul:last-child {
border-bottom: none;
padding-bottom: none;
} }
#changelist-filter li { #changelist-filter li {
@ -144,6 +167,7 @@
} }
#changelist-filter a { #changelist-filter a {
display: block;
color: #999; color: #999;
} }
@ -152,13 +176,13 @@
} }
#changelist-filter li.selected { #changelist-filter li.selected {
border-left: 5px solid #ccc; border-left: 5px solid #eaeaea;
padding-left: 5px; padding-left: 10px;
margin-left: -10px; margin-left: -15px;
} }
#changelist-filter li.selected a { #changelist-filter li.selected a {
color: #5b80b2 !important; color: #5b80b2;
} }
/* DATE DRILLDOWN */ /* DATE DRILLDOWN */
@ -191,7 +215,7 @@
/* PAGINATOR */ /* PAGINATOR */
.paginator { .paginator {
font-size: 11px; font-size: 13px;
padding-top: 10px; padding-top: 10px;
padding-bottom: 10px; padding-bottom: 10px;
line-height: 22px; line-height: 22px;
@ -201,19 +225,21 @@
.paginator a:link, .paginator a:visited { .paginator a:link, .paginator a:visited {
padding: 2px 6px; padding: 2px 6px;
border: solid 1px #ccc; background: #79aec8;
background: white;
text-decoration: none; text-decoration: none;
color: #fff;
} }
.paginator a.showall { .paginator a.showall {
padding: 0 !important; padding: 0 !important;
border: none !important; border: none !important;
background: none !important;
color: #5b80b2 !important;
} }
.paginator a.showall:hover { .paginator a.showall:hover {
color: #036 !important; color: #036 !important;
background: transparent !important; background: none !important;
} }
.paginator .end { .paginator .end {
@ -230,19 +256,19 @@
.paginator a:hover { .paginator a:hover {
color: white; color: white;
background: #5b80b2; background: #036;
border-color: #036;
} }
/* ACTIONS */ /* ACTIONS */
.filtered .actions { .filtered .actions {
margin-right: 160px !important; margin-right: 280px !important;
border-right: 1px solid #ddd; border-right: none;
} }
#changelist table input { #changelist table input {
margin: 0; margin: 0;
vertical-align: baseline;
} }
#changelist table tbody tr.selected { #changelist table tbody tr.selected {
@ -250,11 +276,12 @@
} }
#changelist .actions { #changelist .actions {
padding: 10px;
background: #fff;
border-top: none;
border-bottom: none;
line-height: 24px;
color: #999; color: #999;
padding: 3px;
border-top: 1px solid #fff;
border-bottom: 1px solid #ddd;
background: white url(../img/nav-bg-reverse.gif) 0 -10px repeat-x;
} }
#changelist .actions.selected { #changelist .actions.selected {
@ -267,7 +294,7 @@
#changelist .actions span.action-counter, #changelist .actions span.action-counter,
#changelist .actions span.clear, #changelist .actions span.clear,
#changelist .actions span.question { #changelist .actions span.question {
font-size: 11px; font-size: 13px;
margin: 0 0.5em; margin: 0 0.5em;
display: none; display: none;
} }
@ -277,21 +304,36 @@
} }
#changelist .actions select { #changelist .actions select {
border: 1px solid #aaa; vertical-align: top;
margin-left: 0.5em; height: 24px;
padding: 1px 2px; background: none;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 14px;
padding: 0 0 0 4px;
margin: 0;
margin-left: 10px;
} }
#changelist .actions label { #changelist .actions label {
font-size: 11px; display: inline-block;
margin-left: 0.5em; vertical-align: middle;
} font-size: 13px;
#changelist #action-toggle {
display: none;
} }
#changelist .actions .button { #changelist .actions .button {
font-size: 11px; font-size: 13px;
padding: 1px 2px; border: 1px solid #ccc;
border-radius: 4px;
background: #fff url(../img/nav-bg.gif) bottom repeat-x;
cursor: pointer;
height: 24px;
line-height: 1;
padding: 4px 8px;
margin: 0;
color: #333;
}
#changelist .actions .button:hover {
border-color: #999;
} }

View File

@ -0,0 +1,20 @@
@font-face {
font-family: 'Roboto';
src: url('../fonts/Roboto-Bold-webfont.woff');
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: 'Roboto';
src: url('../fonts/Roboto-Regular-webfont.woff');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: 'Roboto';
src: url('../fonts/Roboto-Light-webfont.woff');
font-weight: 300;
font-style: normal;
}

View File

@ -4,8 +4,8 @@
.form-row { .form-row {
overflow: hidden; overflow: hidden;
padding: 8px 12px; padding: 10px;
font-size: 11px; font-size: 13px;
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
} }
@ -13,9 +13,14 @@
vertical-align: middle; vertical-align: middle;
} }
.form-row label input[type="checkbox"] {
margin-top: 0;
vertical-align: 0;
}
form .form-row p { form .form-row p {
padding-left: 0; padding-left: 0;
font-size: 11px; font-size: 11px !important;
} }
.hidden { .hidden {
@ -33,7 +38,7 @@ form h4 {
label { label {
font-weight: normal !important; font-weight: normal !important;
color: #666; color: #666;
font-size: 12px; font-size: 13px;
} }
.required label, label.required { .required label, label.required {
@ -52,6 +57,12 @@ form ul.radiolist label {
display: inline; display: inline;
} }
form ul.radiolist input[type="radio"] {
margin: -2px 4px 0 0;
padding: 0;
outline: none;
}
form ul.inline { form ul.inline {
margin-left: 0; margin-left: 0;
padding: 0; padding: 0;
@ -66,10 +77,26 @@ form ul.inline li {
.aligned label { .aligned label {
display: block; display: block;
padding: 3px 10px 0 0; padding: 4px 10px 0 0;
float: left; float: left;
width: 8em; width: 160px;
word-wrap: break-word; word-wrap: break-word;
line-height: 1;
}
.aligned label:not(.vCheckboxLabel):after {
content: '';
display: inline-block;
vertical-align: middle;
height: 26px;
}
.aligned label + p:not(.help) {
font-size: 13px !important;
padding: 6px 0;
margin-top: 0;
margin-bottom: 0;
margin-left: 170px;
} }
.aligned ul label { .aligned ul label {
@ -78,13 +105,51 @@ form ul.inline li {
width: auto; width: auto;
} }
.aligned .form-row input {
margin-bottom: 0;
}
.colMS .aligned .vLargeTextField, .colMS .aligned .vXMLLargeTextField { .colMS .aligned .vLargeTextField, .colMS .aligned .vXMLLargeTextField {
width: 350px; width: 350px;
} }
form .aligned p, form .aligned ul { form .aligned ul {
margin-left: 7em; margin-left: 160px;
padding-left: 30px; padding-left: 10px;
}
form .aligned ul.radiolist {
display: inline-block;
margin: 0;
padding: 0;
}
form .aligned p.help {
clear: left;
margin-top: 0;
margin-left: 160px;
padding-left: 10px;
}
form .aligned label + p.help {
margin-left: 0;
padding-left: 0;
}
form .aligned p.help:last-child {
margin-bottom: 0;
padding-bottom: 0;
}
form .aligned input + p.help,
form .aligned textarea + p.help,
form .aligned select + p.help {
margin-left: 160px;
padding-left: 10px;
}
form .aligned ul li {
list-style: none;
} }
form .aligned table p { form .aligned table p {
@ -92,15 +157,15 @@ form .aligned table p {
padding-left: 0; padding-left: 0;
} }
form .aligned p.help {
clear: left;
padding-left: 38px;
}
.aligned .vCheckboxLabel { .aligned .vCheckboxLabel {
float: none !important; float: none !important;
display: inline; display: inline-block;
padding-left: 4px; vertical-align: -3px;
padding: 0 0 5px 5px;
}
.aligned .vCheckboxLabel + p.help {
margin-top: -4px;
} }
.colM .aligned .vLargeTextField, .colM .aligned .vXMLLargeTextField { .colM .aligned .vLargeTextField, .colM .aligned .vXMLLargeTextField {
@ -120,11 +185,11 @@ fieldset .field-box {
/* WIDE FIELDSETS */ /* WIDE FIELDSETS */
.wide label { .wide label {
width: 15em !important; width: 200px !important;
} }
form .wide p { form .wide p {
margin-left: 15em; margin-left: 200px !important;
} }
form .wide p.help { form .wide p.help {
@ -145,31 +210,42 @@ fieldset.collapsed h2, fieldset.collapsed {
display: block !important; display: block !important;
} }
fieldset.collapsed {
border: 1px solid #eee;
border-radius: 4px;
overflow: hidden;
}
fieldset.collapsed h2 { fieldset.collapsed h2 {
background-image: url(../img/nav-bg.gif); background: #f8f8f8;
background-position: bottom left; color: #666;
color: #999; }
fieldset .collapse-toggle {
color: #fff;
} }
fieldset.collapsed .collapse-toggle { fieldset.collapsed .collapse-toggle {
background: transparent; background: transparent;
display: inline !important; display: inline !important;
color: #447e9b;
} }
/* MONOSPACE TEXTAREAS */ /* MONOSPACE TEXTAREAS */
fieldset.monospace textarea { fieldset.monospace textarea {
font-family: "Bitstream Vera Sans Mono",Monaco,"Courier New",Courier,monospace; font-family: "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace;
} }
/* SUBMIT ROW */ /* SUBMIT ROW */
.submit-row { .submit-row {
padding: 5px 7px; padding: 12px 14px;
margin: 0 0 20px;
background: #f8f8f8;
border: 1px solid #eee;
border-radius: 4px;
text-align: right; text-align: right;
background: white url(../img/nav-bg.gif) 0 100% repeat-x;
border: 1px solid #ccc;
margin: 5px 0;
overflow: hidden; overflow: hidden;
} }
@ -178,20 +254,38 @@ body.popup .submit-row {
} }
.submit-row input { .submit-row input {
height: 35px;
line-height: 15px;
margin: 0 0 0 5px; margin: 0 0 0 5px;
} }
.submit-row input.default {
margin: 0 0 0 8px;
text-transform: uppercase;
}
.submit-row p { .submit-row p {
margin: 0.3em; margin: 0.3em;
} }
.submit-row p.deletelink-box { .submit-row p.deletelink-box {
float: left; float: left;
margin: 0;
} }
.submit-row .deletelink { .submit-row a.deletelink {
background: url(../img/icon_deletelink.gif) 0 50% no-repeat; display: block;
padding-left: 14px; background: #ba2121;
border-radius: 4px;
padding: 10px 15px;
height: 15px;
line-height: 15px;
color: #fff;
}
.submit-row a.deletelink:hover,
.submit-row a.deletelink:active {
background: #a41515;
} }
/* CUSTOM FORM FIELDS */ /* CUSTOM FORM FIELDS */
@ -252,12 +346,15 @@ body.popup .submit-row {
.inline-group { .inline-group {
padding: 0; padding: 0;
border: 1px solid #ccc; margin: 0 0 30px;
margin: 10px 0; }
.inline-group thead th {
padding: 8px 10px;
} }
.inline-group .aligned label { .inline-group .aligned label {
width: 8em; width: 160px;
} }
.inline-related { .inline-related {
@ -267,10 +364,11 @@ body.popup .submit-row {
.inline-related h3 { .inline-related h3 {
margin: 0; margin: 0;
color: #666; color: #666;
padding: 3px 5px; padding: 5px;
font-size: 11px; font-size: 13px;
background: #e1e1e1 url(../img/nav-bg.gif) top left repeat-x; background: #f8f8f8;
border-bottom: 1px solid #ddd; border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
} }
.inline-related h3 span.delete { .inline-related h3 span.delete {
@ -301,7 +399,6 @@ body.popup .submit-row {
.inline-group .tabular fieldset.module { .inline-group .tabular fieldset.module {
border: none; border: none;
border-bottom: 1px solid #ddd;
} }
.inline-related.tabular fieldset.module table { .inline-related.tabular fieldset.module table {
@ -331,7 +428,7 @@ body.popup .submit-row {
position: absolute; position: absolute;
left: 0; left: 0;
height: 1.1em; height: 1.1em;
padding: 2px 7px; padding: 2px 9px;
overflow: hidden; overflow: hidden;
font-size: 9px; font-size: 9px;
font-weight: bold; font-weight: bold;
@ -353,14 +450,14 @@ body.popup .submit-row {
.inline-group div.add-row, .inline-group div.add-row,
.inline-group .tabular tr.add-row td { .inline-group .tabular tr.add-row td {
color: #666; color: #666;
padding: 3px 5px; background: #f8f8f8;
border-bottom: 1px solid #ddd; padding: 8px 10px;
background: #e1e1e1 url(../img/nav-bg.gif) top left repeat-x; border-bottom: 1px solid #eee;
} }
.inline-group .tabular tr.add-row td { .inline-group .tabular tr.add-row td {
padding: 4px 5px 3px; padding: 8px 10px;
border-bottom: none; border-bottom: 1px solid #eee;
} }
.inline-group ul.tools a.add, .inline-group ul.tools a.add,
@ -368,7 +465,7 @@ body.popup .submit-row {
.inline-group .tabular tr.add-row td a { .inline-group .tabular tr.add-row td a {
background: url(../img/icon_addlink.gif) 0 50% no-repeat; background: url(../img/icon_addlink.gif) 0 50% no-repeat;
padding-left: 14px; padding-left: 14px;
font-size: 11px; font-size: 12px;
outline: 0; /* Remove dotted border around link */ outline: 0; /* Remove dotted border around link */
} }
@ -393,4 +490,18 @@ body.popup .submit-row {
width: 16px; width: 16px;
height: 16px; height: 16px;
background-image: url(../img/selector-search.gif); background-image: url(../img/selector-search.gif);
background-repeat: no-repeat;
background-position: 0 3px;
vertical-align: middle;
margin-top: -4px;
}
form .related-widget-wrapper ul {
display: inline-block;
margin-left: 0;
padding-left: 0;
}
.clearable-file-input input {
margin-top: 0;
} }

View File

@ -1,31 +1,45 @@
/* LOGIN FORM */ /* LOGIN FORM */
body.login { body.login {
background: #eee; background: #f8f8f8;
}
.login #header {
height: auto;
padding: 5px 16px;
}
.login #header h1 {
font-size: 18px;
}
.login #header h1 a {
color: #fff;
}
.login #content {
padding: 20px 20px 0;
} }
.login #container { .login #container {
background: white; background: #fff;
border: 1px solid #ccc; border: 1px solid #eaeaea;
border-radius: 4px;
overflow: hidden;
width: 28em; width: 28em;
min-width: 300px; min-width: 300px;
margin-left: auto; margin: 100px auto;
margin-right: auto;
margin-top: 100px;
} }
.login #content-main { .login #content-main {
width: 100%; width: 100%;
} }
.login form {
margin-top: 1em;
}
.login .form-row { .login .form-row {
padding: 4px 0; padding: 4px 0;
float: left; float: left;
width: 100%; width: 100%;
border-bottom: none;
} }
.login .form-row label { .login .form-row label {
@ -38,7 +52,7 @@ body.login {
.login .form-row #id_username, .login .form-row #id_password { .login .form-row #id_username, .login .form-row #id_password {
clear: both; clear: both;
padding: 6px; padding: 8px;
width: 100%; width: 100%;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
@ -53,6 +67,10 @@ body.login {
.login .submit-row { .login .submit-row {
clear: both; clear: both;
padding: 1em 0 0 9.4em; padding: 1em 0 0 9.4em;
margin: 0;
border: none;
background: none;
text-align: left;
} }
.login .password-reset-link { .login .password-reset-link {

View File

@ -48,7 +48,7 @@ th {
thead th:first-child, thead th:first-child,
tfoot td:first-child { tfoot td:first-child {
border-left: 1px solid #ddd !important; border-left: none;
} }
/* LAYOUT */ /* LAYOUT */
@ -99,33 +99,33 @@ thead th.sorted .text {
/* changelists styles */ /* changelists styles */
.change-list .filtered { .change-list .filtered {
background: white url(../img/changelist-bg_rtl.gif) top left repeat-y !important; background: #fff !important;
} }
.change-list .filtered table { .change-list .filtered table {
border-left: 1px solid #ddd; border-left: none;
border-right: 0px none; border-right: 0px none;
} }
#changelist-filter { #changelist-filter {
right: auto; right: auto;
left: 0; left: 0;
border-left: 0px none; border-left: none;
border-right: 1px solid #ddd; border-right: none;
} }
.change-list .filtered .results, .change-list .filtered .paginator, .filtered #toolbar, .filtered div.xfull { .change-list .filtered .results, .change-list .filtered .paginator, .filtered #toolbar, .filtered div.xfull {
margin-right: 0px !important; margin-right: 0px !important;
margin-left: 160px !important; margin-left: 280px !important;
} }
#changelist-filter li.selected { #changelist-filter li.selected {
border-left: 0px none; border-left: none;
padding-left: 0px; padding-left: 10px;
margin-left: 0; margin-left: 0;
border-right: 5px solid #ccc; border-right: 5px solid #eaeaea;
padding-right: 5px; padding-right: 10px;
margin-right: -10px; margin-right: -15px;
} }
.filtered .actions { .filtered .actions {
@ -136,8 +136,8 @@ thead th.sorted .text {
} }
#changelist table tbody td:first-child, #changelist table tbody th:first-child { #changelist table tbody td:first-child, #changelist table tbody th:first-child {
border-right: 0; border-right: none;
border-left: 1px solid #ddd; border-left: none;
} }
/* FORMS */ /* FORMS */
@ -160,10 +160,18 @@ thead th.sorted .text {
padding-right: 14px; padding-right: 14px;
} }
.submit-row input.default {
margin-left: 0;
}
.vDateField, .vTimeField { .vDateField, .vTimeField {
margin-left: 2px; margin-left: 2px;
} }
.aligned .form-row input {
margin-left: 5px;
}
form ul.inline li { form ul.inline li {
float: right; float: right;
padding-right: 0; padding-right: 0;
@ -181,13 +189,13 @@ fieldset .field-box {
} }
.errorlist li { .errorlist li {
background-position: 100% .3em; background-position: 100% 12px;
padding: 4px 25px 4px 5px; padding: 0;
} }
.errornote { .errornote {
background-position: 100% .3em; background-position: 100% 12px;
padding: 4px 25px 4px 5px; padding: 10px 12px;
} }
/* WIDGETS */ /* WIDGETS */
@ -195,13 +203,13 @@ fieldset .field-box {
.calendarnav-previous { .calendarnav-previous {
top: 0; top: 0;
left: auto; left: auto;
right: 0; right: 10px;
} }
.calendarnav-next { .calendarnav-next {
top: 0; top: 0;
right: auto; right: auto;
left: 0; left: 10px;
} }
.calendar caption, .calendarbox h2 { .calendar caption, .calendarbox h2 {
@ -220,6 +228,10 @@ fieldset .field-box {
float: left; float: left;
} }
form .form-row p.datetime {
overflow: hidden;
}
/* MISC */ /* MISC */
.inline-related h2, .inline-group h2 { .inline-related h2, .inline-group h2 {

View File

@ -1,18 +1,18 @@
/* SELECTOR (FILTER INTERFACE) */ /* SELECTOR (FILTER INTERFACE) */
.selector { .selector {
width: 840px; width: 800px;
float: left; float: left;
} }
.selector select { .selector select {
width: 400px; width: 380px;
height: 17.2em; height: 17.2em;
} }
.selector-available, .selector-chosen { .selector-available, .selector-chosen {
float: left; float: left;
width: 400px; width: 380px;
text-align: center; text-align: center;
margin-bottom: 5px; margin-bottom: 5px;
} }
@ -23,10 +23,16 @@
.selector-available h2, .selector-chosen h2 { .selector-available h2, .selector-chosen h2 {
border: 1px solid #ccc; border: 1px solid #ccc;
border-radius: 4px 4px 0 0;
}
.selector-chosen h2 {
background: #79aec8;
color: #fff;
} }
.selector .selector-available h2 { .selector .selector-available h2 {
background: white url(../img/nav-bg.gif) bottom left repeat-x; background: #f8f8f8;
color: #666; color: #666;
} }
@ -34,7 +40,7 @@
background: white; background: white;
border: 1px solid #ccc; border: 1px solid #ccc;
border-width: 0 1px; border-width: 0 1px;
padding: 3px; padding: 8px;
color: #999; color: #999;
font-size: 10px; font-size: 10px;
margin: 0; margin: 0;
@ -43,12 +49,16 @@
.selector .selector-filter label, .selector .selector-filter label,
.inline-group .aligned .selector .selector-filter label { .inline-group .aligned .selector .selector-filter label {
float: left;
margin: 0;
width: 16px; width: 16px;
padding: 2px; padding: 0 2px;
line-height: 1;
} }
.selector .selector-available input { .selector .selector-available input {
width: 360px; width: 320px;
margin-left: 8px;
} }
.selector ul.selector-chooser { .selector ul.selector-chooser {
@ -67,8 +77,9 @@
} }
.selector select { .selector select {
margin-bottom: 10px; padding: 0 10px;
margin-top: 0; margin: 0 0 10px;
border-radius: 0 0 4px 4px;
} }
.selector-add, .selector-remove { .selector-add, .selector-remove {
@ -110,11 +121,11 @@ a.selector-chooseall, a.selector-clearall {
} }
a.selector-chooseall { a.selector-chooseall {
padding: 3px 18px 3px 0; padding: 1px 18px 3px 0;
} }
a.selector-clearall { a.selector-clearall {
padding: 3px 0 3px 18px; padding: 1px 0 3px 18px;
} }
a.active.selector-chooseall:hover, a.active.selector-clearall:hover { a.active.selector-chooseall:hover, a.active.selector-clearall:hover {
@ -224,15 +235,27 @@ p.datetime {
margin: 0; margin: 0;
padding: 0; padding: 0;
color: #666; color: #666;
font-size: 11px; font-size: 13px !important;
font-weight: bold; font-weight: bold;
} }
form .form-row p.datetime {
font-size: 13px !important;
margin-left: 160px;
padding-left: 10px !important;
}
.datetime span { .datetime span {
white-space: nowrap;
font-weight: normal;
font-size: 11px; font-size: 11px;
color: #ccc; color: #ccc;
font-weight: normal; }
white-space: nowrap;
.datetime input {
min-width: 0;
margin-left: 5px;
margin-bottom: 4px !important;
} }
table p.datetime { table p.datetime {
@ -283,6 +306,10 @@ p.file-upload {
font-weight: bold; font-weight: bold;
} }
.aligned p.file-upload {
margin-left: 170px;
}
.file-upload a { .file-upload a {
font-weight: normal; font-weight: normal;
} }
@ -302,10 +329,14 @@ span.clearable-file-input label {
.calendarbox, .clockbox { .calendarbox, .clockbox {
margin: 5px auto; margin: 5px auto;
font-size: 11px; font-size: 12px;
width: 16em; width: 19em;
text-align: center; text-align: center;
background: white; background: white;
border: 1px solid #ddd;
border-radius: 4px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
overflow: hidden;
position: relative; position: relative;
} }
@ -328,22 +359,27 @@ span.clearable-file-input label {
.calendar caption, .calendarbox h2 { .calendar caption, .calendarbox h2 {
margin: 0; margin: 0;
font-size: 11px;
text-align: center; text-align: center;
border-top: none; border-top: none;
background: #f5dd5d;
font-weight: 700;
font-size: 12px;
color: #333;
} }
.calendar th { .calendar th {
font-size: 10px; padding: 8px 5px;
color: #666; background: #f8f8f8;
padding: 2px 3px;
text-align: center;
background: #e1e1e1 url(../img/nav-bg.gif) 0 50% repeat-x;
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
font-weight: 400;
font-size: 12px;
text-align: center;
color: #666;
} }
.calendar td { .calendar td {
font-size: 11px; font-weight: 400;
font-size: 12px;
text-align: center; text-align: center;
padding: 0; padding: 0;
border-top: 1px solid #eee; border-top: 1px solid #eee;
@ -351,32 +387,33 @@ span.clearable-file-input label {
} }
.calendar td.selected a { .calendar td.selected a {
background: #C9DBED; background: #79aec8;
color: #fff;
} }
.calendar td.nonday { .calendar td.nonday {
background: #efefef; background: #f8f8f8;
} }
.calendar td.today a { .calendar td.today a {
background: #ffc; font-weight: 700;
} }
.calendar td a, .timelist a { .calendar td a, .timelist a {
display: block; display: block;
font-weight: bold; font-weight: 400;
padding: 4px; padding: 8px;
text-decoration: none; text-decoration: none;
color: #444; color: #444;
} }
.calendar td a:hover, .timelist a:hover { .calendar td a:hover, .timelist a:hover {
background: #5b80b2; background: #79aec8;
color: white; color: white;
} }
.calendar td a:active, .timelist a:active { .calendar td a:active, .timelist a:active {
background: #036; background: #417690;
color: white; color: white;
} }
@ -394,47 +431,52 @@ span.clearable-file-input label {
.calendar-shortcuts { .calendar-shortcuts {
background: white; background: white;
font-size: 10px; font-size: 11px;
line-height: 11px; line-height: 11px;
border-top: 1px solid #eee; border-top: 1px solid #eee;
padding: 3px 0 4px; padding: 8px 0;
color: #ccc; color: #ccc;
} }
.calendarbox .calendarnav-previous, .calendarbox .calendarnav-next { .calendarbox .calendarnav-previous, .calendarbox .calendarnav-next {
display: block; display: block;
position: absolute; position: absolute;
font-weight: bold; top: 7px;
border: 1px solid #333;
border-radius: 50%;
background: #fff;
width: 18px;
height: 18px;
padding: 0;
line-height: 16px;
font-size: 12px; font-size: 12px;
background: #C9DBED url(../img/default-bg.gif) bottom left repeat-x; color: #333;
padding: 1px 4px 2px 4px;
color: white;
} }
.calendarnav-previous:hover, .calendarnav-next:hover { .calendarnav-previous:hover, .calendarnav-next:hover {
background: #036; background: #333;
color: #fff;
} }
.calendarnav-previous { .calendarnav-previous {
top: 0; left: 10px;
left: 0;
} }
.calendarnav-next { .calendarnav-next {
top: 0; right: 10px;
right: 0;
} }
.calendar-cancel { .calendar-cancel {
margin: 0 !important; margin: 0 !important;
padding: 0 !important; padding: 4px 0 !important;
font-size: 10px; font-size: 12px;
background: #e1e1e1 url(../img/nav-bg.gif) 0 50% repeat-x; background: #eee;
border-top: 1px solid #ddd; border-top: 1px solid #ddd;
color: #333;
} }
.calendar-cancel:hover { .calendar-cancel:hover {
background: #e1e1e1 url(../img/nav-bg-reverse.gif) 0 50% repeat-x; background: #ddd;
} }
.calendar-cancel a { .calendar-cancel a {
@ -621,3 +663,8 @@ ul.orderer li.deleted:hover, ul.orderer li.deleted a.selector:hover {
.related-widget-wrapper-link:link { .related-widget-wrapper-link:link {
opacity: 1; opacity: 1;
} }
select + .related-widget-wrapper-link,
.related-widget-wrapper-link + .related-widget-wrapper-link {
margin-left: 7px;
}

View File

@ -0,0 +1,202 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
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.

View File

@ -0,0 +1,2 @@
Roboto webfont source: https://code.google.com/p/roboto-webfont/
Weights used in this project: Light (300), Regular (400), Bold (700)

View File

@ -115,6 +115,15 @@ though:
.. _django-braces: http://django-braces.readthedocs.org/en/latest/index.html .. _django-braces: http://django-braces.readthedocs.org/en/latest/index.html
New styling for ``contrib.admin``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The admin sports a modern, flat design. It still provides a fully-functional
experience to `YUI's A-grade`_ browsers. Older browser may experience varying
levels of graceful degradation.
.. _YUI's A-grade: http://yuilibrary.com/yui/docs/tutorials/gbs/
Minor features Minor features
~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~

View File

@ -755,7 +755,7 @@ class DateTimePickerSeleniumFirefoxTests(SeleniumDataMixin, AdminSeleniumWebDriv
# Get the expected caption # Get the expected caption
may_translation = month_names.split(' ')[4] may_translation = month_names.split(' ')[4]
expected_caption = '{0:s} {1:d}'.format(may_translation, 1984) expected_caption = '{0:s} {1:d}'.format(may_translation.upper(), 1984)
# Test with every locale # Test with every locale
with override_settings(LANGUAGE_CODE=language_code, USE_L10N=True): with override_settings(LANGUAGE_CODE=language_code, USE_L10N=True):