server/assets/development/styles/home.css

463 lines
6.7 KiB
CSS
Raw Permalink Normal View History

.header {
2020-07-07 11:28:55 +00:00
/* border-bottom: 2px solid #C28100; */
padding-bottom: 1.5em;
padding-top: 1.5em;
2020-07-07 11:28:55 +00:00
background-color: #d35400;
}
.header-container {
2020-07-18 10:43:13 +00:00
position: relative;
display: flex;
2020-07-07 11:28:55 +00:00
justify-content: space-between;
}
.header-left {
display: flex;
}
.header-menu {
2020-07-18 10:43:13 +00:00
position: absolute;
right: 0;
bottom: 0;
2020-07-07 11:28:55 +00:00
display: flex;
align-items: flex-end;
}
.header-menu a {
color: white;
margin-right: 1em;
}
.header-menu a:last-of-type {
margin-right: 0;
}
.header-image {
display: flex;
align-items: center;
justify-content: center;
margin-right: 3em;
}
.header-image img {
width: 7em;
height: 158px;
}
.header-home-link {
display: flex;
justify-content: center;
}
.header-content {
display: flex;
flex-direction: column;
justify-content: space-between;
padding-top: 1em;
padding-bottom: 1em;
}
.header-title {
font-family: 'Roboto Slab', serif;
margin: 0;
2020-07-07 11:28:55 +00:00
color: white;
font-weight: 500;
font-size: 2.5em;
}
.header-sub-title {
margin: 0;
text-decoration: underline;
font-weight: 100;
2020-07-07 11:28:55 +00:00
color: #ecf0f1;
transition: opacity 0.2s;
}
.header-sub-title:hover {
2020-07-07 11:28:55 +00:00
opacity: 0.9;
color: #ecf0f1;
}
.header-description {
2020-07-07 11:28:55 +00:00
color: #ecf0f1;
}
.content {
2020-08-17 14:32:02 +00:00
padding-top: 1.5em;
display: flex;
padding-bottom: 1em;
}
2020-08-17 14:32:02 +00:00
/**
Nav
**/
.nav {
margin-right: 2em;
}
.nav-item {
width: 18em;
padding: 1em;
border-radius: 4px;
margin-bottom: 0.7em;
border: 3px solid rgba(255, 111, 10, 0.7);
color: initial;
display: flex;
cursor: pointer;
transition: all 0.2s !important;
text-decoration: unset;
font: inherit;
background: white;
height: auto;
text-align: left;
}
.nav-item:hover {
text-decoration: unset;
transform: scale(1.05);
color: initial;
}
2020-09-06 10:25:25 +00:00
.nav-item:focus {
outline: 0;
transform: scale(1.05);
color: initial;
}
2020-07-15 20:32:42 +00:00
.nav-item svg {
width: .75em;
height: .75em;
}
.nav-icon {
width: 1em;
display: flex;
justify-content: center;
align-items: center;
color: #C28200;
font-size: 1.5em;
margin-left: 0.25em;
opacity: 0.7;
}
.nav-item-content {
margin-left: 1em;
display: flex;
justify-content: space-between;
width: 100%;
}
.nav-title {
display: flex;
align-items: center;
2020-07-15 20:32:42 +00:00
opacity: 0.7;
}
.nav-access {
display: flex;
align-items: center;
color: #FF6F0A;
opacity: 0.7;
}
.nav-item.enabled {
border-color: rgba(255, 111, 10, 1);
}
2020-09-06 10:25:25 +00:00
.nav-item.enabled .nav-access, .nav-item:focus .nav-access {
opacity: 1;
}
2020-09-06 10:25:25 +00:00
.nav-item.enabled .nav-icon, .nav-item:focus .nav-icon {
opacity: 1;
}
2020-09-06 10:25:25 +00:00
.nav-item.enabled .nav-title, .nav-item:focus .nav-title {
opacity: 1;
}
#nav-enabler {
display: none;
}
2020-08-11 20:32:18 +00:00
#nav-content {
position: sticky;
top: 10px;
}
.mosaic {
background: white;
width: 100%;
2020-08-17 10:25:10 +00:00
padding-bottom: .25em;
flex-grow: 1;
}
.mosaic-header {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5em;
}
.mosaic-actions {
display: flex;
}
.mosaic-action {
cursor: pointer;
border: 0;
background-color: transparent;
padding: .75em .75em;
color: #2c3e50;
display: flex;
justify-content: center;
align-items: center;
border-radius: 2px;
margin-right: .5em;
border: 1px solid #7f8c8d;
transition: all .2s;
}
.mosaic-action:hover {
opacity: 0.8;
}
.mosaic-action .btn-icon {
width: 1em;
}
.mosaic-action.enabled {
background-color: #ecf0f1;
color:#d35400;
}
.mosaic-count {
opacity: 0.8;
}
.card-container {
margin: 0 auto;
width: 85%;
}
.card {
2020-07-07 11:28:55 +00:00
cursor: pointer;
display: flex;
border: 1px solid #bdc3c7;
border-radius: 4px;
margin-bottom: 1em;
box-shadow: 0 0 8px 0px rgba(0,0,0,0.1);
2020-07-19 13:26:57 +00:00
overflow: hidden;
2020-07-21 14:41:07 +00:00
text-decoration: none;
2020-07-23 10:43:20 +00:00
transition: transform 0.2s ease-in-out;
2020-07-07 11:28:55 +00:00
}
.card:hover {
2020-07-21 14:41:07 +00:00
text-decoration: none;
}
2020-07-21 14:41:07 +00:00
.card-image-container {
border-right: 1px solid #C4C4C4;
display: flex;
justify-content: center;
align-items: center;
padding: 1em;
}
2020-07-21 14:41:07 +00:00
.card-image {
height: 12em;
width: 12em;
2020-07-21 14:41:07 +00:00
background-position: center;
background-size: cover;
2020-07-23 10:43:20 +00:00
transition: all 0.2s ease-in-out;
border: 0;
outline: 0;
box-shadow: 0;
}
2020-07-23 10:43:20 +00:00
.card-image:hover {
transform: scale(1.1);
}
.card-content {
2020-07-19 13:26:57 +00:00
width: 100%;
padding: 1.5em;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.card-title-container {
display: flex;
justify-content: space-between;
}
.card-icon {
color: #C28200;
opacity: 0.85;
margin-top: -.5em;
margin-right: -.5em;
font-size: 1.4em;
}
2020-07-15 20:32:42 +00:00
.card-icon svg {
width: 1em;
height: 1em;
}
.card-title {
color: #B12008;
margin: 0;
margin-bottom: 0.5em;
/* to do a margin with the category icon */
padding-right: 1em;
}
.card-description {
color: #34495E;
margin: 0;
line-height: 1.6em;
overflow-wrap: break-word;
word-wrap: break-word;
-ms-word-break: break-word;
word-break: break-word;
}
.card-description::first-letter {
/*
may mess up some content
*/
text-transform: capitalize;
}
/*
.card-link {
2020-07-19 13:26:57 +00:00
position: absolute;
right: .5em;
bottom: 0;
margin-bottom: -.5em;
} */
@media (max-width: 1350px) {
.card-container {
width: 100%;
}
2020-07-18 10:43:13 +00:00
.header-left {
padding-bottom: 1em;
}
}
2020-07-07 11:28:55 +00:00
@media (max-width: 1000px) {
.header-left {
padding-bottom: 2em;
}
.content {
display: block;
2020-08-17 14:32:02 +00:00
padding-top: 1em;
}
.nav {
margin-right: 0;
user-select: none;
}
#nav-enabler {
display: flex;
}
#nav-enabler-icon {
transform: rotate(-90deg)
}
#nav-content {
2020-08-17 14:32:02 +00:00
overflow: hidden;
max-height: 0;
transition: max-height 0.1s ease-out;
}
2020-08-17 10:25:10 +00:00
.nav-item {
width: 100%;
}
2020-08-17 14:32:02 +00:00
.nav-item:hover {
transform: scale(1);
}
.nav-mobile-enabler #nav-enabler-icon {
transition: all 0.1s ease;
}
.mosaic {
position: relative;
border-top: 1px solid #C4C4C4;
padding-top: 1em;
2020-08-17 14:32:02 +00:00
margin-top: .3em;
}
.mosaic-header {
text-align: center;
2020-08-17 10:25:10 +00:00
margin-bottom: 1em;
}
}
@media (max-width: 600px) {
.header {
padding-top: 1em;
padding-bottom: 1em;
}
.header-container {
display: block;
}
.header-left {
display: block;
2020-09-06 10:25:25 +00:00
padding-bottom: 1em;
}
.header-menu {
justify-content: center;
position: relative;
margin-top: 0;
}
.header-content {
padding: 0;
}
.header-home-link {
margin-bottom: .25em;
}
.header-image {
margin: 0;
text-align: center;
}
.header-image img {
width: 6em;
height: 135px;
}
.header-sub-title {
margin-top: 1em;
text-align: center;
}
.header-title {
text-align: center;
margin-bottom: .25em;
}
.header-description {
text-align: center;
}
.card {
display: block;
}
2020-07-21 14:41:07 +00:00
.card-image-container {
padding: 0;
margin: 0;
border-right: 0;
border-bottom: 1px solid #C4C4C4;
2020-08-17 10:25:10 +00:00
overflow: hidden;
2020-07-21 14:41:07 +00:00
}
.card-content {
width: auto;
}
}