kopia lustrzana https://github.com/wagtail/wagtail
Merge remote-tracking branch 'upstream/master'
commit
2721118c74
|
@ -223,12 +223,12 @@ input[type=submit], input[type=reset], input[type=button], .button, button{
|
|||
padding-left:3.5em;
|
||||
|
||||
&:before{
|
||||
font-size:1.2em;
|
||||
font-size:1rem;
|
||||
position:absolute;
|
||||
left:0;
|
||||
top:0;
|
||||
width:2em;
|
||||
line-height:2.3em;
|
||||
line-height:2em;
|
||||
height:100%;
|
||||
text-align:center;
|
||||
background-color:rgba(0,0,0,0.2);
|
||||
|
@ -241,7 +241,8 @@ input[type=submit], input[type=reset], input[type=button], .button, button{
|
|||
|
||||
&:before{
|
||||
width:2em;
|
||||
font-size:1.2em;
|
||||
font-size:0.9rem;
|
||||
line-height:2em;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -635,7 +636,7 @@ ul.inline li:first-child, li.inline:first-child{
|
|||
}
|
||||
}
|
||||
.field:before{
|
||||
font-size:1.4em;
|
||||
font-size:1.1rem;
|
||||
top:0.45em;
|
||||
}
|
||||
|
||||
|
@ -671,7 +672,7 @@ input[type=submit], input[type=reset], input[type=button], .button, button{
|
|||
|
||||
&:before{
|
||||
width:2.2em;
|
||||
line-height:2.35em;
|
||||
line-height:2.15em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -156,7 +156,7 @@ ul.listing{
|
|||
color:auto;
|
||||
}
|
||||
.actions{
|
||||
margin-top:1.5em;
|
||||
margin-top:1.8em;
|
||||
|
||||
li{
|
||||
border-color:@color-teal-darker;
|
||||
|
@ -178,7 +178,6 @@ ul.listing{
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.page-explorer & .index{
|
||||
|
@ -187,6 +186,7 @@ ul.listing{
|
|||
|
||||
.title h2{
|
||||
color:white;
|
||||
font-size:1.3em;
|
||||
|
||||
a:hover{
|
||||
color:white;
|
||||
|
|
|
@ -33,7 +33,6 @@ body{
|
|||
|
||||
h1,h2,h3,h4,h5,h6{
|
||||
font-weight:normal;
|
||||
-webkit-font-smoothing: auto;
|
||||
}
|
||||
|
||||
h1{
|
||||
|
@ -525,15 +524,15 @@ footer{
|
|||
.unlist();
|
||||
.clearfix();
|
||||
|
||||
padding-top:0.2em;
|
||||
font-size:0.85em;
|
||||
margin-top:1.5em !important;
|
||||
margin-left:-30px;
|
||||
margin-bottom:-4px; /* negates the 4px margin on the bottom of each LI, used to make it wrap nicely */
|
||||
|
||||
li {
|
||||
display: block;
|
||||
float: left;
|
||||
background: @color-grey-3;
|
||||
padding: 0.5em 1em 0.5em 2em;
|
||||
background: @color-teal-darker;
|
||||
padding: 0.4em 1em 0.4em 2em;
|
||||
position: relative;
|
||||
margin: 0 4px 4px 0;
|
||||
text-decoration: none;
|
||||
|
@ -544,57 +543,51 @@ footer{
|
|||
line-height:1.5em;
|
||||
|
||||
a{
|
||||
color:@color-grey-2;
|
||||
color:white;
|
||||
display:block;
|
||||
max-width:25em;
|
||||
white-space: nowrap;
|
||||
text-overflow:ellipsis;
|
||||
overflow:hidden;
|
||||
line-height:1.6em;
|
||||
text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
|
||||
|
||||
}
|
||||
|
||||
&:after, &:before{
|
||||
content: "";
|
||||
border-top: 1.3em solid transparent;
|
||||
border-bottom: 1.3em solid transparent;
|
||||
border-top: 1.2em solid transparent;
|
||||
border-bottom: 1.2em solid transparent;
|
||||
}
|
||||
&:after {
|
||||
border-left: 1em solid @color-grey-3;
|
||||
border-left: 1em solid @color-teal-darker;
|
||||
position: absolute; right: -0.9em; top: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
&:before {
|
||||
&:before {
|
||||
border-left: 1em solid white;
|
||||
position: absolute; left: 0; top: 0;
|
||||
}
|
||||
&:hover {
|
||||
background: @color-teal-darker;
|
||||
|
||||
a{
|
||||
color:white;
|
||||
text-shadow:none;
|
||||
}
|
||||
background: @color-teal-dark;
|
||||
}
|
||||
&:hover:after {
|
||||
border-left-color: @color-teal-darker;
|
||||
border-left-color: @color-teal-dark;
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
padding:0.5em;
|
||||
padding:0.4em;
|
||||
.border-radius(3px 0px 0px 3px);
|
||||
|
||||
&:before{
|
||||
display:none;
|
||||
width:1em;
|
||||
|
||||
}
|
||||
a {
|
||||
width:2em;
|
||||
font-size:1em;
|
||||
&:before{
|
||||
line-height:1em;
|
||||
font-size:1.7em;
|
||||
font-size:1.15rem;
|
||||
line-height:0.95em;
|
||||
}
|
||||
}
|
||||
|
@ -847,10 +840,6 @@ footer, .logo{
|
|||
margin-left:50px;
|
||||
}
|
||||
|
||||
.breadcrumb{
|
||||
margin-left:0;
|
||||
}
|
||||
|
||||
/* Z-indexes */
|
||||
.nav-main{
|
||||
li{
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
box-shadow: @shadow; //inset 2px 2px 3px 2px rgba(0, 0, 0, 1)
|
||||
}
|
||||
|
||||
.visuallyhidden() {
|
||||
.visuallyhidden{
|
||||
border: 0;
|
||||
clip: rect(0 0 0 0);
|
||||
height: 1px;
|
||||
|
@ -81,7 +81,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
.visuallyvisible(){
|
||||
.visuallyvisible{
|
||||
clip:none;
|
||||
height:auto;
|
||||
width:auto;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
{% block content %}
|
||||
<header class="merged no-border nice-padding">
|
||||
<h1>Explorer</h1>
|
||||
<h1 class="visuallyhidden">Explorer</h1>
|
||||
|
||||
{% if not parent_page.is_root %}
|
||||
<ul class="breadcrumb">
|
||||
|
|
|
@ -248,11 +248,20 @@ class Page(MP_Node, ClusterableModel, Indexed):
|
|||
|
||||
def _update_descendant_url_paths(self, old_url_path, new_url_path):
|
||||
cursor = connection.cursor()
|
||||
cursor.execute("""
|
||||
UPDATE wagtailcore_page
|
||||
SET url_path = %s || substring(url_path from %s)
|
||||
WHERE path LIKE %s AND id <> %s
|
||||
""", [new_url_path, len(old_url_path) + 1, self.path + '%', self.id])
|
||||
if connection.vendor == 'sqlite':
|
||||
update_statement = """
|
||||
UPDATE wagtailcore_page
|
||||
SET url_path = %s || substr(url_path, %s)
|
||||
WHERE path LIKE %s AND id <> %s
|
||||
"""
|
||||
else:
|
||||
update_statement = """
|
||||
UPDATE wagtailcore_page
|
||||
SET url_path = %s || substring(url_path from %s)
|
||||
WHERE path LIKE %s AND id <> %s
|
||||
"""
|
||||
cursor.execute(update_statement,
|
||||
[new_url_path, len(old_url_path) + 1, self.path + '%', self.id])
|
||||
|
||||
def object_indexed(self):
|
||||
# Exclude root node from index
|
||||
|
|
Ładowanie…
Reference in New Issue