Skip to content
Snippets Groups Projects
Commit 33194464 authored by Olimpia Magliulo's avatar Olimpia Magliulo
Browse files

Css optimisation, message-box

- Add class message-box which combined with .error or .success
replaces errorbox and successbox.
- responsive for rtl
parent b003e5d3
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@
{% if errorcode %}
<div class="pure-g">
<div class="pure-u-1">
<div class="errorbox b-radius">
<div class="message-box error">
{% set errtitles = errorcodes['title'] %}
{% set errtitle = errtitles[errorcode] %}
......
......@@ -6,7 +6,7 @@
{% if errors %}
<div class="errorbox">
<div class="message-box error">
<div class="pure-g">
<div class="pure-u-1-12">
<span class="fa fa-times-circle fa-2x"></span>
......@@ -25,7 +25,7 @@
{% endif %}
{% if info %}
<div class="successbox">
<div class="message-box success">
<div class="pure-g">
<div class="pure-u-1-12">
<span class="fa fa-check fa-2x"> </span>
......
......@@ -86,20 +86,17 @@ fieldset.fancyfieldset legend {
left:0;
right: auto;
}
.errorbox {
.message-box {
border-left-style: initial;
border-left-width: 0;
border-left-color: none;
border-right-style: solid;
border-right-width: 0.3125rem;
}
.message-box.error{
border-right-color: #cc4b37;
}
.successbox{
border-left-style: initial;
border-left-width: 0;
border-left-color: none;
border-right-style: solid;
border-right-width: 0.3125rem;
.message-box.success{
border-right-color: #46cc48;
}
......
......@@ -121,25 +121,22 @@ CONTENT
padding-top: 2em;
padding-bottom: 4rem;
}
.errorbox {
padding: 1.3rem;
margin: 0 0 1rem 0;
background-color: #f7e4e1;
.message-box {
border-left-style: solid;
border-left-width: 0.3125rem;
border-left-color: #cc4b37;
position: relative;
box-shadow: 0 5px 8px -6px rgba(0, 0, 0, 0.2);
}
.successbox{
padding: 1.3rem;
margin: 0 0 1rem 0;
padding: 1.3rem;
position: relative;
}
.message-box.error {
background-color: #f7e4e1;
border-left-color: #cc4b37;
}
.message-box.success {
background-color: #daf7e6;
border-left-style: solid;
border-left-width: 0.3125rem;
border-left-color: #46cc48;
position: relative;
box-shadow: 0 5px 8px -6px rgba(0, 0, 0, 0.2);
}
.auth_methods{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment