osm2vectortiles/_sass/_custom.scss

422 wiersze
6.7 KiB
SCSS

/* For custom styles in project */
.octocat{
margin-top: -20px;
margin-bottom: -10px;
}
#navbar-top{
background-color: transparent;
position: absolute;
.title{
font-family: 'OpenSans';
font-size: 22px;
img{
vertical-align: bottom;
}
}
}
body{
background: url('img/page-bg.jpg');
background-position: top center;
background-repeat: no-repeat;
&.home{
background: url('img/home-bg.jpg');
background-repeat: no-repeat;
background-position: top center;
h1, h2, h3, h4, h5, h6{
color: #363636;
span.font-primary{
font-family: $font-primary;
}
&.white{
color: #fff;
}
}
}
}
.banner{
height: 270px;
h1{
margin: 100px 0 0 0;
font-size: 45px;
}
&.home{
height: 518px;
img{
position: absolute;
left: 50%;
margin-left: -410px;
top: 200px;
}
}
}
.home-btn{
text-align: center;
margin-bottom: 40px;
h3{
margin-top: -80px;
&:hover{
color: #868d97;
}
}
&:hover{
text-decoration: none;
color: #868d97;
}
}
.btn, .btn-gray-dark{
line-height: 1.4;
}
@media(max-width: 841px){
.banner{
h1{
font-size: 30px;
margin-top: 100px;
}
&.home{
height: 400px;
img{
margin-left: -205px;
top: 242px;
width: 410px;
height: 196px;
}
}
}
.logos{
img{
width: 100%;
}
}
}
@media(max-width: 451px){
body.home{
h1{
font-size: 24px;
}
}
.banner{
&.home{
height: 350px;
img{
margin-left: -151px;
top: 227px;
width: 320px;
height: 153px;
}
}
}
.container-branding {
padding-top: 30px;
padding-bottom: 30px;
}
.title-branding {
margin-top: 0;
margin-bottom: 0;
}
}
.contributors {
img {
max-width: 100%;
}
}
.contributor-profile {
text-align: center;
.circular {
margin-left: auto;
margin-right: auto;
}
h3{
&:hover{
}
}
.circular:hover {
opacity: .95;
}
&:hover{
text-decoration: none;
}
}
.search-field {
font-size: 1.5em;
border: 2px solid #53b985 !important;
height: 2em !important;
width: 100%;
margin-bottom: 5px;
}
.download-section {
display: -webkit-flex; /* Safari */
display: flex;
-webkit-flex-direction: column;
flex-direction: column;
-webkit-align-items: center; /* Safari 7.0+ */
align-items: center;
@media(max-width: 479px){
-webkit-flex-direction: row;
flex-direction: row;
}
h2 {
@media(max-width: 479px){
margin-left: 40px;
}
}
}
.download-section:hover {
cursor: pointer;
background-color: #F3F3F3 !important;
}
.download-section-circle {
width: 200px;
height: 200px;
background-size: cover;
border: 6px solid black;
border-radius: 100px;
-webkit-border-radius: 100px;
-moz-border-radius: 100px;
@media(max-width: 841px){
width: 150px;
height: 150px;
border-radius: 75px;
-webkit-border-radius: 75px;
-moz-border-radius: 75px;
}
@media(max-width: 770px){
width: 100px;
height: 100px;
border-radius: 50px;
-webkit-border-radius: 50px;
-moz-border-radius: 50px;
}
}
.download-item {
background-color: white;
color: #44A886;
font-size: 0.9em;
font-family: 'Open Sans', Helvetica, Arial, sans-serif;
border: 2px solid #53b985;
padding: 5px 5px;
margin-bottom: 5px;
display: -webkit-flex; /* Safari */
-webkit-align-items: center; /* Safari 7.0+ */
display: flex;
-webkit-flex-direction: row;
flex-direction: row;
align-items: center;
small {
font-size: 70%;
}
@media(max-width: 479px) {
-webkit-flex-direction: row;
flex-direction: row;
}
@media(max-width: 920px) {
small { display: none; }
}
}
.download-item:hover {
cursor: pointer;
background-color: #44A886;
color: white;
}
.download-title {
font-size: 1.1em;
font-weight: bold;
}
.clipboard {
display: flex;
display: -webkit-flex; /* Safari */
flex-direction: row;
-webkit-flex-direction: row;
}
.clipboard-input {
width: 90%;
border-radius: 3px;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-color: rgb(213, 213, 213);
color: black;
font-size: 0.9em;
}
.clipboard-input:focus {
border-color: rgb(213, 213, 213);
}
.clipboard-button {
position: relative;
display: inline-block;
padding: 6px 12px;
margin-left: -1px;
cursor: pointer;
background-color: #eee;
background-image: linear-gradient(#fcfcfc, #eee);
border: 1px solid #d5d5d5;
border-radius: 3px;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
-webkit-appearence: none;
}
.clipboard-button:focus {
text-decoration: none;
border-color: #51a7e8;
outline: none;
box-shadow:0 0 5px rgba(81,167,232,0.5);
}
.clipboard-button:hover {
text-decoration: none;
background-color: #ddd;
background-image: linear-gradient(#eee, #ddd);
border-color: #ccc;
}
.clipboard-img {
position: relative;
height: 15px;
width: inherit;
margin: 0px !important;
}
.map-clipboard-button {
width: 100%;
height: 50px;
font-size: 14px;
line-height: 20px;
border-radius: 0 0 3px 3px;
border: none;
background-color: #44A886;
color: white;
font-weight: bold;
}
.map-clipboard-button:hover {
cursor: pointer;
background-color: #59C39F;
}
.map-clipboard-img {
background-image: url(/img/clipboard-white.svg);
background-size: 15px 15px;
background-position: left center;
background-repeat: no-repeat;
padding-left: 22px;
}
.docs-section:hover > div {
background-color: #F3F3F3;
color: #606c71;
}
.docs-section {
color: #606c71;
}
#country-list, #city-list {
display: none;
padding: 0px 0px !important;
}
#planet-nav {
background-color: #F3F3F3;
}
#timestamp {
color: #3F9A6C;
}
#basic, #liberty {
display: none;
}
.gist-meta {
display: none;
}
.gist-file {
margin-bottom: 0 !important;
border-bottom: 0 !important;
border-radius: 0 !important;
}
.download-redirect {
margin: 0 auto;
margin-top: 60px;
max-width: 580px;
display: block;
background-color: #3f9a6c;
padding: 10px;
border-radius: 4px;
img {
margin-left: 10px;
vertical-align: middle;
display: inline;
max-width: 80px;
@media(max-width: 841px){
display: none;
}
}
h2 {
margin-left: 10px;
vertical-align: middle;
display: inline;
color: white;
@media(max-width: 841px){
margin-left: 0px;
font-size: 16px;
}
}
&:hover {
background-color: lighten(#3f9a6c, 7%);
text-decoration: none;
}
}