Modèle:Banner/style.css
Sauter à la navigation
Sauter à la recherche
.jcarousel { position: relative; overflow: hidden; } .jcarousel-wrapper { max-width: 976px; margin: 0 auto; position: relative; } .jcarousel .jcarousel-list { width: 20000em; position: relative; margin: 0; padding: 0; } .jcarousel .jcarousel-item { float: left; } .jcarousel-item img { display: block; max-width: 100%; height: auto !important; } .jcarousel-control-prev, .jcarousel-control-next { position: absolute; top: 45%; width: 30px; height: 30px; text-align: center; background: #fff; color: #fff; text-decoration: none; text-shadow: 0 0 1px #000; font: 24px/27px Arial, sans-serif; border-radius: 30px; box-shadow: 0 0 2px #999; } .jcarousel-control-prev { left: -15px; } .jcarousel-control-next { right: -15px; } .jcarousel-control-prev:hover span, .jcarousel-control-next:hover span { display: block; } .jcarousel-control-prev.inactive, .jcarousel-control-next.inactive { opacity: .5; cursor: default; } .jcarousel-pagination { position: absolute; bottom: 10px; left: 15px; } .jcarousel-pagination a { text-decoration: none; display: inline-block; font-size: 11px; line-height: 14px; min-width: 14px; background: #fff; color: #873522; border-radius: 14px; padding: 3px; text-align: center; margin-right: 2px; opacity: .75; } .jcarousel-pagination a.active { background: #873522; color: #fff; opacity: 1; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.75); } .mainpage-shadowbox { color: #f1ede7; background: rgb(241,237,231); background: rgba(241,237,231,0.8); border-radius: 4px; } .mainpage-shadowbox h2, .mainpage-shadowbox h3 { color: #873522; border:none; font-family: 'Cardo', sans-serif; line-height: 1.2em; margin:0; padding: 0; /* was previously set only for h3, and skin styles would do the same for h2. however, cannot rely on skin to do this on mobile */ } .mainpage-shadowbox h2{font-size:1.5em;font-style:normal;margin-bottom: 5px;} .mainpage-shadowbox h3{font-size: 95%;font-weight:normal;} .mainpage-shadowbox a { color: #873522; /*font-weight: ;*/ } .banner-image { position: relative; max-width: 1125px; height: auto; margin-bottom: .6em; } .banner-image img { max-width: 100%; height: auto; /* width: auto\9; */ /* ie8 */ } .banner-box-wide { width: 80% } .banner-box-left, .banner-box-right { padding: 8px 7px; background: rgb(247,231,237); background: rgba(241,237,231,0.8); border-radius: 4px; width: 40%; } .banner-box-left { text-align: left; } .banner-box-right { text-align: right; } .banner-box-2 { position: absolute; z-index: 2; min-width: 25em; } @media screen and ( min-width: 720px ) { /* greater than or equal to */ .banner-image img.nolink { display: none; } .mainpage-shadowbox h2 { /*font-size: 100%;*/ } .mainpage-shadowbox h3 { font-size: 95%; } .banner-image { overflow: hidden; } .banner-box-left { left: 3%; } .banner-box-right { right: 3%; } .banner-box-bottom { bottom: 6%; } .banner-box-2 { margin-top: 2em; /*top: 6%;*/ } .banner-box-2 .quote { font-size: 95%; line-height: 1.2em; font-style: italic; } } @media screen and ( max-width: 720px ) { .banner-image img:not(.nolink) { display: none; } .banner-image > .mainpage-shadowbox { width: inherit !important; min-height: 100%; margin-left: -150%; margin-right: 150%; opacity: 0; background: #f1ede7; } .mainpage-shadowbox .quote > a:after { content: '\ATap to learn more.'; white-space: pre; /* needed to make content work. if content is disabled, this can be, too */ } .jcarousel-item:hover .mainpage-shadowbox { margin: unset; opacity: 1; transition: margin 0.5s; /* without this, problem with tap on image still activating links - speed may matter here */ bottom: 50%; /* relative vertical position; change to top to lower, negative percentages do not work as naively expected */ } .jcarousel-control-prev, .jcarousel-control-next { display: none; /* hide the carousel arrows */ /* a kludge resulting from gadgets not working on mobile */ /* unforunately also targets very narrow desktops, but there can't be too many of those */ /* and besides, the number buttons still work */ } .interactiveIcon { position: absolute; opacity: 0.4; height: 75% !important; width: auto; bottom: 0; right: 0; } }