SSOwat/portal/assets/css/ynh-style.css

924 lines
17 KiB
CSS

/* ==========================================================================
1 = Global
2 = Apps
3 = User
4 = Form
5 = Footer
6 = Colors
7 = Internet Explorer
========================================================================== */
/* ==========================================================================
1 = Global
========================================================================== */
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
html {
font-family: sans-serif; /* 1 */
-ms-text-size-adjust: 100%; /* 2 */
-webkit-text-size-adjust: 100%; /* 2 */
}
body {
background: #41444f;
font-family: 'source_sans_proregular';
overflow-y: scroll;
font-size: 1em;
line-height:1.5;
margin: 0;
}
h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child,
p:first-child,
ul:first-child,
ol:first-child,
dl:first-child{
margin-top: 0;
}
/* Responsive image */
img {
max-width: 100%;
height :auto;
}
.element-invisible {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
/* Layout */
.overlay {
padding: 2%;
}
.wrapper {
width: 90%;
margin: 2% 5%;
position: relative;
z-index: 1;
}
.wrapper:before,
.wrapper:after {content: " ";display: table;}
.wrapper:after {clear: both;}
.col {
letter-spacing: -5px; /*fix bug ff PC*/
}
.col > * {
display: inline-block;
vertical-align: top;
letter-spacing: normal;
}
.colMarge > * {
margin-left: 1%;
}
.colNomarge > * {
margin-left: 0;
}
/* Logo */
.logo {
text-align: center;
margin-bottom: 0;
opacity: 0.7;
}
.logo img {
margin-top: 4%;
width: 4em;
}
.logged .logo {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 0;
opacity: 0.7;
}
.logged .logo img {
margin-top: 0;
width: 2.5em;
padding: 0.3em;
border-radius: 5px;
}
.ynh-panel-active .logo {
display: none;
}
/* messages */
.messages {
color: #FFF;
margin-bottom: 1em;
text-align: center;
max-width: 21em;
margin: 2% auto 1em auto;
padding: 1.5em;
}
.messages.danger { background: #c0392b; }
.messages.warning { background: #e67e22; }
.messages.success { background: #27ae60; }
.messages.info { background: #2980b9; }
.logged .messages {
max-width: none;
margin: 2% 5%;
padding: 1.5em 15%;
}
/* Fonts & Colors */
a { text-decoration: none; }
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: 'source_sans_probold';
font-weight: normal;
}
/* headings */
h1,
.h1 {
font-size: 2.5em;
}
h2,
.h2 {
font-size: 1.8em;
}
.cwhite {
color: #fff;
}
select,
.form-text,
textarea {
border: 0;
font-family: 'source_sans_proregular';
}
.sourcePro {
font-family: 'source_sans_proregular';
}
.sourceProBold {
font-family: 'source_sans_probold';
}
.sourceProBlack {
font-family: 'SourceSansPro-Black';
}
/* Icons */
[class^="icon-"]:before, [class*=" icon-"]:before {
font-family: 'ynh_ssowat';
font-size: 1em;
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
margin-right: 0.5em;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-user:before { content: '\e801'; }
.icon-lock:before { content: '\e800'; }
.icon-connexion:before { content: '\e802'; }
.icon-pencil:before { content: '\e804'; }
.icon-trash:before { content: '\e80c'; }
.icon-angle-left:before { content: '\e803'; }
/* ==========================================================================
2 = Apps
========================================================================== */
.apps { margin: 4% 5%; }
.first-letter:before {
content: attr(data-first-letter);
}
.listing-apps {
margin: 0;
padding: 0;
}
.listing-apps li {
list-style: none;
margin: 0 0 1em 1em;
box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.4),
-2px -2px 3px 0 rgba(0, 0, 0, 0.7) inset;
}
.listing-apps a {
display: block;
position: relative;
padding: 0.2em;
top: 0;
left: 0;
width: 2.7em;
height: 2.7em;
background: #666;
color: #fff;
font-size: 4em;
transition: all 0.3s ease;
-webkit-transition: all 0.3s ease;
}
.listing-apps a:hover,
.listing-apps a:focus {
left: -10px;
top: -10px;
box-shadow: none;
}
.listing-apps a:hover:before,
.listing-apps a:focus:before {
height: 10px;
}
.listing-apps a:hover:after,
.listing-apps a:focus:after {
width: 10px;
}
.listing-apps a:hover:after,
.listing-apps a:focus:after,
.listing-apps a:hover:before,
.listing-apps a:focus:before {
background: #333;
}
.listing-apps a:after,
.listing-apps a:before {
content: "";
position: absolute;
transition: all 0.3s ease;
-webkit-transition: all 0.3s ease;
}
.listing-apps a:before {
width: 100%;
height: 0;
left: 5px;
top: 100%;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
transform: skew(45deg, 0deg);
-webkit-transform: skew(45deg, 0deg);
}
.listing-apps a:after {
width: 0;
height: 100%;
left: 100%;
top: 5px;
box-shadow: 5px 0 10px rgba(0, 0, 0, 0.4);
transform: skew(0deg, 45deg);
-webkit-transform: skew(0deg, 45deg);
}
.listing-apps span {
display: block;
margin: -1.2em 0 0 0.2em;
}
.listing-apps .first-letter { margin: 0; }
.listing-apps span + span { font-size: 0.3em; }
@media screen and (max-width: 450px) {
.apps {margin: 10% 5%;}
.listing-apps a {font-size: 3em;}
.listing-apps span + span { font-size: 0.32em; }
.listing-apps a:hover,
.listing-apps a:focus {left: -5px;top: -5px;}
.listing-apps a:hover:before,
.listing-apps a:focus:before {height: 5px;}
.listing-apps a:hover:after,
.listing-apps a:focus:after {width: 5px;}
.listing-apps a:before {left: 3px;box-shadow: 0 3px 5px rgba(0, 0, 0, 0.4);}
.listing-apps a:after {top: 3px;box-shadow: 3px 0 5px rgba(0, 0, 0, 0.4);}
}
@media screen and (max-width: 350px) {
.listing-apps a {
width: 2.5em;
height: 2.5em;
font-size: 2.8em;
}
}
/* ==========================================================================
3 = User
========================================================================== */
.user-container {
display:block;
position: relative;
max-width: 320px;
padding: 0.4em 1em;
color: #fff;
}
.user-container-edit:after,
.user-container-password:after {
content: '\e803';
font-family: 'ynh_ssowat';
display: block;
height: 1em;
width: 1em;
position: absolute;
top: 50%;
left: -16px;
z-index: 0;
margin-top: -0.75em;
font-size: 2em;
font-weight: normal;
color: #b4b4b4;
opacity: 0;
transition: all 0.1s ease;
-webkit-transition: all 0.1s ease;
}
.user-container-edit:hover:after,
.user-container-password:hover:after {
left: -20px;
opacity: 1;
}
@media screen and (max-width: 480px) {
.user-container-edit:after,
.user-container-password:after {left: -10px;}
.user-container-edit:hover:after,
.user-container-password:hover:after {left: -14px;}
}
.user-container:before {
display: block;
position: relative;
z-index: 1;
float: left;
margin-right: 10px;
content: '\e801';
display: block;
font-family: 'ynh_ssowat';
font-size: 4em;
text-align: center;
border: 3px solid #fff;
width: 1em;
height: 1em;
border-radius: 90px;
background: #b4b4b4;
color: #dedede;
overflow: hidden;
transition: all 0.1s ease;
-webkit-transition: all 0.1s ease;
}
.user-container:hover:before {
color: #fff;
}
.user-container .user-username {
font-size: 1.5em;
margin: 0;
}
.user-container .user-fullname {
font-size: 1em;
font-family: 'source_sans_proregular';
display: block;
margin-top: -0.6em;
}
.user-container-info .user-username:after {
content: '\e804';
font-family: 'ynh_ssowat';
color: #b4b4b4;
display: inline-block;vertical-align: text-top;
font-size: 0.8em;
width: 1em;
height: 1em;
margin-left: .5em;
opacity: 0;
transition: all 0.1s ease;
-webkit-transition: all 0.1s ease;
}
.user-container-info:hover .user-username:after {opacity: 1;}
.user-container .user-mail {
color: #999;
font-size: 0.9em;
display: block;
margin-top: -0.2em;
}
.user-menu {
float: right;
}
.user-menu a {
color: #999;
display: block;
padding: 1.25em 1em;
position: relative;
z-index: 1;
transition: all 0.1s ease;
-webkit-transition: all 0.1s ease;
}
.user-menu a:hover,
.user-menu a:focus {
color: #fff;
}
@media screen and (max-width: 480px) {
.user-menu {
float: none;
}
}
/* ==========================================================================
4 = Forms
========================================================================== */
button,
input,
select,
textarea {
font-family: inherit;
font-size: 100%;
margin: 0;
}
input[type="search"] {
-webkit-appearance: textfield;
}
[type="submit"],
[type="password"],
[type="email"],
[type="text"] {
/* <3 Apple */
-webkit-appearance: none;
-webkit-border-radius:0;
}
input::-moz-focus-inner {
border: 0;
padding: 0;
}
@media screen and (-webkit-min-device-pixel-ratio:0){
select{
-webkit-appearance: none;
border-radius: 0;
}
}
.form-text {
padding: 0.8em;
width: 100%;
}
.form-section {
display: inline-block;
vertical-align: top;
width: 47%;
}
.form-section + .form-section {margin-left: 5%;}
@media screen and (max-width: 768px) {
.form-section {width: 100%;}
.form-section + .form-section {margin-left: 0;}
}
label {
display: inline-block;
padding: 0.3em 1em;
background: #30333b;
color: #fff;
font-size: 1.2em;
margin-top: 1em;
font-family: 'source_sans_probold';
font-weight: normal;
}
label {cursor: pointer;}
label + .help-link {
display: inline-block;
padding: 0.3em 1em;
font-size: 1.2em;
background: #41444f;
color: #fff;
font-weight: bold;
transition: all 0.1s ease;
-webkit-transition: all 0.1s ease;
}
label + .help-link:hover {background: #30333b;}
.form-group {
background: none;
margin-bottom: 2em;
}
.form-text {
border: 0;
background: #797b83;
color: #fff;
padding: 0.8em;
margin-bottom: 0.3em;
display: block;
position: relative;z-index: 1; /* prevent strange label overlap */
transition: all 0.1s ease;
-webkit-transition: all 0.1s ease;
}
.form-test:-moz-placeholder{color:#ccc;}
.form-text::-moz-placeholder{color:#ccc;}
.form-text:-ms-input-placeholder{color:#ccc;}
.form-text::-webkit-input-placeholder{color:#ccc;}
:empty:invalid {box-shadow: none;}
.form-text:last-child {margin-bottom:0;}
.form-text:hover,
.form-text:focus {
background-color: #5d5f68;
}
.form-text:disabled { color: #ccc; }
.form-text:disabled:hover {background-color:rgba(255, 255, 255, 0.3);}
input:disabled {
cursor: not-allowed;
}
@media screen and (max-width: 480px) {
label,
label + .help-link {padding: 0.3em 0.8em;}
.form-text {padding: 0.8em;}
.form-group .btn {padding: 0.5em 0.8em;}
}
/* Buttons */
.btn {
background: #999;
display: inline-block;
padding: 0.5em 1em;
line-height: normal;
text-decoration: none;
color: #FFF;
cursor: pointer;
transition: all 0.1s ease;
-webkit-transition: all 0.1s ease;
}
.large-btn {
padding: 0.8em 1.5em;
font-size: 1.1em;
}
button.btn,
input.btn {
border:0;
cursor:pointer;
}
.btn:hover,
.btn:focus {
background: #AAA;
}
.important-btn { background: #c0392b;}
.important-btn:hover,
.important-btn:focus {background: #e74c3c;}
.validate-btn { background: #27ae60;}
.validate-btn:hover,
.validate-btn:focus {background: #2ecc71;}
.warning-btn { background: #e67e22;}
.warning-btn:hover,
.warning-btn:focus {background: #f39c12;}
.classic-btn { background: #2980b9;}
.classic-btn:hover,
.classic-btn:focus {background: #3498db;}
.link-btn { background: none;}
.link-btn:hover,
.link-btn:focus {background: #41444f;text-decoration: underline;}
.btn-group {
margin: 4em 0;
text-align: right;
}
/* Login form */
.login-form {
max-width: 21em;
margin: 0 auto;
}
.login-form .btn {
width: 100%;
padding: 0.8em 1em;
}
.login-form .form-group {
position: relative;
margin-bottom: 1em;
background: #fff;
}
.login-form label {
display: block;
min-width: 1em;
margin: 0;
padding: 0;
font-size: 1em;
}
.login-form label:before {
background: #eee;
color: #666;
position: absolute;
z-index: 2;
top: 0;
left: 0;
width: 2.5em;
height: 100%;
line-height: 3em;
text-align: center;
}
.login-form .form-text {
padding: 0.8em 0.8em 0.8em 3em;
width: 100%;
background: #fff;
color: #41444f;
}
.login-form .form-test:-moz-placeholder{color:#999;}
.login-form .form-text::-moz-placeholder{color:#999;}
.login-form .form-text:-ms-input-placeholder{color:#999;}
.login-form .form-text::-webkit-input-placeholder{color:#999;}
/* Edit form*/
.form-edit .form-group .btn:before {
content:"+";
display: inline-block;
padding-right: 0.75em;
font-weight: bold;
}
@media screen and (min-width: 768px) {
.form-edit .btn-group {
float: right;
}
.form-edit .btn-group + .btn-group {
float: left;
}
}
/* ==========================================================================
5 = Footer
========================================================================== */
.footer {
display: inline-block;
width: auto;
}
.footer nav {
margin: 0 1em;
padding: 0.25em;
border-top: 1px solid #666;
font-size: 0.9em;
}
.footer a {
display: inline-block;
vertical-align: top;
color: #999;
}
.footer a:before {
content: "•";
display: inline-block;
vertical-align: top;
padding: 0 0.5em 0 0.25em;
color: #666;
}
.footer a:first-child:before {content: none;}
.footer a:hover,
.footer a:active {
color: #fff;
text-decoration: none;
}
@media screen and (max-width: 480px) {
.footer a {
display: block;
}
.footer a:before {
content: none;
}
}
/* ==========================================================================
6 = Colors
========================================================================== */
.purplebg {
background: #9B59B6!important;
}
.purplebg:hover:after,
.purplebg:focus:after,
.purplebg:hover:before,
.purplebg:focus:before {
background: #532C64!important;
}
.yellowbg {
background: #F1C40F!important;
}
.yellowbg:hover:after,
.yellowbg:focus:after,
.yellowbg:hover:before,
.yellowbg:focus:before {
background: #796307!important;
}
.pinkbg {
background: #D66D92!important;
}
.pinkbg:hover:after,
.pinkbg:focus:after,
.pinkbg:hover:before,
.pinkbg:focus:before {
background: #992B52!important;
}
.orangebg {
background: #F39C12!important;
}
.orangebg:hover:after,
.orangebg:focus:after,
.orangebg:hover:before,
.orangebg:focus:before {
background: #7F5006!important;
}
.redbg {
background: #E74C3C!important;
}
.redbg:hover:after,
.redbg:focus:after,
.redbg:hover:before,
.redbg:focus:before {
background: #921E12!important;
}
.turquoisebg {
background: #1ABC9C!important;
}
.turquoisebg:hover:after,
.turquoisebg:focus:after,
.turquoisebg:hover:before,
.turquoisebg:focus:before {
background: #0B4C3F!important;
}
.bluebg {
background: #3498DB!important;
}
.bluebg:hover:after,
.bluebg:focus:after,
.bluebg:hover:before,
.bluebg:focus:before {
background: #16527A!important;
}
.greenbg {
background: #2ECC71!important;
}
.greenbg:hover:after,
.greenbg:focus:after,
.greenbg:hover:before,
.greenbg:focus:before {
background: #176437!important;
}
.darkbluebg {
background: #34495E!important;
}
.darkbluebg:hover:after,
.darkbluebg:focus:after,
.darkbluebg:hover:before,
.darkbluebg:focus:before {
background: #07090C!important;
}
.lightbluebg {
background: #6A93D4!important;
}
.lightbluebg:hover:after,
.lightbluebg:focus:after,
.lightbluebg:hover:before,
.lightbluebg:focus:before {
background: #2B5394!important;
}
.lightpinkbg {
background: #F76F87!important;
}
.lightpinkbg:hover:after,
.lightpinkbg:focus:after,
.lightpinkbg:hover:before,
.lightpinkbg:focus:before {
background: #DA0C31!important;
}
.lightyellow {
background: #FFC973!important;
}
.lightyellow:hover:after,
.lightyellow:focus:after,
.lightyellow:hover:before,
.lightyellow:focus:before {
background: #F39500!important;
}
.lightgreen {
background: #B5F36D!important;
}
.lightgreen:hover:after,
.lightgreen:focus:after,
.lightgreen:hover:before,
.lightgreen:focus:before {
background: #77CF11!important;
}
.purpledarkbg {
background: #8E44AD!important;
}
.purpledarkbg:hover:after,
.purpledarkbg:focus:after,
.purpledarkbg:hover:before,
.purpledarkbg:focus:before {
background: #432051!important;
}
/* ==========================================================================
Internet Explorer
========================================================================== */
/*IE8 and IE9*/
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
display: block;
}