Skip to content

Commit

Permalink
styling add to collection popup (bug 668036)
Browse files Browse the repository at this point in the history
  • Loading branch information
potch committed Jun 29, 2011
1 parent 4e0a372 commit d3f4ee2
Show file tree
Hide file tree
Showing 6 changed files with 103 additions and 31 deletions.
53 changes: 27 additions & 26 deletions media/css/impala/collections.less
Expand Up @@ -2,7 +2,7 @@
margin: 0 0 .5em 0;
li {
cursor: pointer;
padding-left: 30px;
padding: 5px 0 3px 30px;
background-repeat: no-repeat;
background-position: 0 4px;
background-image: url(../../img/zamboni/icons/checks.png);
Expand Down Expand Up @@ -38,32 +38,32 @@
}
}

.edit_with_prefix, .edit-with-suffix {
span {
border: 1px solid #5875A0;
background: #eee;
color: #888;
}
input:focus {
outline: 0;
}
}
.edit_with_prefix span {
border-right: 0 none;
padding: 2px 2px 2px 5px;
#slug_value {
font-weight: bold;
color: #222;
}
.edit_with_prefix input {
border-left: 0 none;

#collection-form-slug,
#clear-recents {
font-size: .9em;
}
.edit_with_suffix span {
border-left: 0 none;
padding: 2px 5px 2px 2px;

#collection-favorites-opts li {
display: inline-block;
margin-right: 1em;
}
.edit_with_suffix input {
border-right: 0 none;

.collections-details #id_name {
display: block;
-moz-box-sizing: border-box;
width: 100%;
}
.edit_initially_hidden {
display: none;

#collection_listed {
margin-bottom: 1.5em;
ul label {
font-weight: normal;
}
}

#slug_value {
Expand All @@ -89,7 +89,8 @@

#collection_listed {
margin-bottom: 1.5em;
ul label {
font-weight: normal;
}
}

#collection_listed ul label {
font-weight: normal;
}
56 changes: 56 additions & 0 deletions media/css/impala/forms.less
@@ -0,0 +1,56 @@
@import 'lib';

input[type="text"], input[type="password"], select, textarea {
border: 1px solid #5875A0;
color: #666666;
padding: 2px 5px;
}

label {
cursor: pointer;
font-weight: bold;
}

textarea {
.border-box();
display: block;
width: 100%;
}

form p {
margin-bottom: 1em;
}

.note {
color: #666666;
font-size: 11px;
line-height: 1.4;
}

.edit_with_prefix, .edit-with-suffix {
span {
border: 1px solid #5875A0;
background: #eee;
color: #888;
}
input:focus {
outline: 0;
}
}
.edit_with_prefix span {
border-right: 0 none;
padding: 2px 2px 2px 5px;
}
.edit_with_prefix input {
border-left: 0 none;
}
.edit_with_suffix span {
border-left: 0 none;
padding: 2px 5px 2px 2px;
}
.edit_with_suffix input {
border-right: 0 none;
}
.edit_initially_hidden {
display: none;
}
14 changes: 13 additions & 1 deletion media/css/impala/popups.less
Expand Up @@ -68,7 +68,7 @@ div.popup-shim {
box-shadow: 0 1px 3px rgba(0,0,0,0.35);
z-index: 2001; /* because of devhub title */
}
.modal {
.modal, .popup {
padding: 1em;
form {
margin: 0;
Expand All @@ -78,6 +78,18 @@ div.popup-shim {
color: #2e5186;
}
}

.popup {
h3 {
font-size: 18px;
margin-bottom: 1em;
}
fieldset {
border-bottom: 1px solid #A4CFDE;
margin-bottom: 1.5em;
padding-bottom: 1em;
}
}
.modal-delete h3 {
color: #6c1a1a;
}
Expand Down
3 changes: 0 additions & 3 deletions media/css/impala/reviews.less
Expand Up @@ -113,9 +113,6 @@
display: inline-block;
margin: 0 0 2px 8px;
}
input[type=submit] {
margin-top: 1em;
}
}

.ratingwidget {
Expand Down
7 changes: 6 additions & 1 deletion media/css/impala/typography.less
Expand Up @@ -46,6 +46,11 @@ pre, code, kbd, tt, samp, tt {
line-height: 1.3em;
}
}
.popup h3 {
color: #333;
font-family: @serif-stack;
font-style: italic;
}

.gutter {
.primary, .secondary {
Expand All @@ -62,7 +67,7 @@ pre, code, kbd, tt, samp, tt {
margin-left: .5em;
}

.island, .modal {
.island, .modal, .popup {
h2 {
font-size: 18px;
margin-bottom: .5em;
Expand Down
1 change: 1 addition & 0 deletions settings.py
Expand Up @@ -401,6 +401,7 @@ def JINJA_CONFIG():
'css/impala/site.less',
'css/impala/typography.less',
'css/global/headerfooter.css',
'css/impala/forms.less',
'css/impala/header.less',
'css/impala/footer.less',
'css/impala/moz-tab.css',
Expand Down

0 comments on commit d3f4ee2

Please sign in to comment.