Skip to content

Commit

Permalink
Merge branch '3.1' of github.com:cakephp/app into 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Sep 18, 2015
2 parents 89ad510 + 2882695 commit b70adf5
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 49 deletions.
2 changes: 1 addition & 1 deletion src/Template/Element/Flash/error.ctp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<div class="message error"><?= h($message) ?></div>
<div class="message error" onclick="this.classList.add('hidden');"><?= h($message) ?></div>
2 changes: 1 addition & 1 deletion src/Template/Element/Flash/success.ctp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<div class="message success"><?= h($message) ?></div>
<div class="message success" onclick="this.classList.add('hidden')"><?= h($message) ?></div>
68 changes: 21 additions & 47 deletions webroot/css/cake.css
Original file line number Diff line number Diff line change
Expand Up @@ -186,48 +186,6 @@ input[type=radio] {
color: #C3232D;
}

div.message {
border-style: solid;
border-width: 1px;
display: block;
font-weight: normal;
position: relative;
padding: 0.875rem 1.5rem 0.875rem 20%;
transition: opacity 300ms ease-out 0s;
background-color: #DCE47E;
border-color: #DCE47E;
color: #626262;
}

div.message.error {
background-color: #C3232D;
border-color: #C3232D;
color: #FFF;
}

div.message:before {
line-height: 0px;
font-size: 20px;
height: 12px;
width: 12px;
border-radius: 15px;
text-align: center;
vertical-align: middle;
display: inline-block;
position: relative;
left: -11px;
background-color: #FFF;
padding: 12px 14px 12px 10px;
content: "i";
color: #DCE47E;
}

div.message.error:before {
padding: 11px 16px 14px 7px;
color: #C3232D;
content: "x";
}

.view h2 {
color: #6F6F6F;
}
Expand Down Expand Up @@ -497,19 +455,20 @@ button {
}

div.message {
border-style: solid;
border-width: 1px;
cursor: pointer;
display: block;
font-weight: normal;
padding: 0.875rem 1.5rem 0.875rem 1.5rem;
transition: opacity 300ms ease-out 0s;
padding: 0 1.5rem 0 1.5rem;
transition: height 300ms ease-out 0s;
background-color: #a0d3e8;
border-color: #74bfdd;
color: #626262;
position: fixed;
top: 15px;
right: 15px;
z-index: 999;
overflow: hidden;
height: 50px;
line-height: 2.5em;
}

div.message:before {
Expand All @@ -529,6 +488,21 @@ div.message:before {
color: #a0d3e8;
}

div.message.error {
background-color: #C3232D;
color: #FFF;
}

div.message.error:before {
padding: 11px 16px 14px 7px;
color: #C3232D;
content: "x";
}
div.message.hidden {
height: 0;
}


.vertical-table th {
padding: 0.5625rem 0.625rem;
font-size: 0.875rem;
Expand Down

0 comments on commit b70adf5

Please sign in to comment.