161 lines
2.7 KiB
JavaScript
Raw Normal View History

2019-09-24 18:42:08 +02:00
import { createGlobalStyle } from 'styled-components';
const GlobalStyle = createGlobalStyle`
html {
font-size: 62.5%;
}
body {
font-family: 'Lato';
font-size: 1.4rem;
line-height: 1.5;
color: #292b2c;
}
2019-10-24 15:28:47 +02:00
// ::-webkit-scrollbar {
// width: 0;
// }
2019-09-24 18:42:08 +02:00
* {
-webkit-font-smoothing: antialiased;
box-sizing: border-box;
font-family: 'Lato';
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
line-height: 1.1;
}
.btn {
font-size: 1.4rem;
2019-10-10 16:21:32 +02:00
padding: 0;
2019-09-24 18:42:08 +02:00
}
.cursor-pointer {
cursor: pointer;
}
/*
* Override
*/
.modal {
2019-10-23 15:49:03 +02:00
background: transparent;
2019-09-24 18:42:08 +02:00
.modal-dialog {
max-width: 74.5rem;
margin: 16rem auto 3rem calc(50% - #{$left-menu-width});
2019-10-23 15:49:03 +02:00
position: relative;
z-index: 999;
2019-09-24 18:42:08 +02:00
}
}
2019-10-23 15:49:03 +02:00
// TODO - New modal transition in progress
// .modal {
// &::before {
// content: '';
// display: block;
// width: 100%;
// height: 100%;
// position: absolute;
// z-index: 0;
// left: 0;
// top: 0;
// transition-delay: 0.05s;
// transition-duration: 0.3s;
// transition-property: background-color;
// }
// &.show::before {
// background-color: rgba(0,0,0,0.5);
// }
// }
// .modal-backdrop, .modal-backdrop.show {
// opacity: 0;
// background-color: transparent;
// }
2019-09-24 18:42:08 +02:00
.modal-content {
border-radius: .2rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
border: none;
2019-09-24 18:42:08 +02:00
}
2019-09-24 18:42:08 +02:00
.modal-header {
button {
&.close {
margin: 0;
}
}
}
2019-10-23 15:49:03 +02:00
.modal-body {
.video-react {
background: transparent;
}
}
2019-09-24 18:42:08 +02:00
form .row {
text-align: left;
}
.form-check {
padding-left: 0;
.form-check-label {
padding-left: 1.25rem;
}
}
2019-10-08 12:27:04 +02:00
.form-control:focus {
outline: none;
box-shadow: none;
}
2019-09-24 18:42:08 +02:00
textarea.form-control {
height: 10.6rem;
}
.input-group-addon {
padding-left: 0.75rem;
padding-right: 0.75rem;
}
2019-10-24 15:28:47 +02:00
.btn-secondary:not(:disabled):not(.disabled):active:focus,
.btn-secondary:not(:disabled):not(.disabled).active:focus,
.btn-secondary,
2019-09-24 18:42:08 +02:00
.show > .btn-secondary.dropdown-toggle:focus {
&:focus, &:active, &:hover, &.focus {
box-shadow: 0 0 0 0px rgba(134,142,150,0.5);
color: rgb(51, 55, 64);
background-color: rgb(250, 250, 251) !important;
2019-10-24 15:28:47 +02:00
2019-09-24 18:42:08 +02:00
}
}
/*
* Notifications animation
*/
.notification-enter {
opacity: 0.01;
top: -60px;
}
.notification-enter.notification-enter-active {
opacity: 1;
transition: all 400ms ease-in;
top: 0;
}
.notification-exit {
opacity: 1;
}
.notification-exit.notification-exit-active {
opacity: 0.01;
transition: all 400ms ease-in;
}
`;
export default GlobalStyle;