Hi, I'm new in moodle. I have an image in the header, but the image is shown cropped, it currently appears as follows:
And the whole picture is this:
How can I configure the image to fit the screen of the device? My Version of moodle is Moodle 3.9.3+ (Build: 20201127)
This is my css theme:
h1, h2, h3, h4, h5, h6, .h1, .h2, .path-calendar .maincalendar .calendar-controls .current, .h3, .h4, .h5, .h6 {
margin-bottom: .5rem;
font-family: Roboto;
font-weight: 500;
line-height: 1.2;
color: RGB(0, 74, 151);
}
body {
font-family: Roboto;
}
li.activity.label p, td.label p {
color: #000000;
}
.theme-title.style-1::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 60px;
height: 1px;
border-bottom: solid 3px RGB(0, 168, 225);
}
.btn-primary.btn-secondary, .btn-default.btn-primary, input[type="submit"].btn-secondary, input.btn-default[type="submit"], button[type="submit"].btn-secondary, button.btn-default[type="submit"], input.btn-primary.btn-secondary, input.btn-default.btn-primary, button.btn-primary.btn-secondary, button.btn-default.btn-primary {
color: #fff !important;
background-color: RGB(225, 108, 12);
border-color: RGB(208, 97, 6);
}
.btn-primary, input[type="submit"], button[type="submit"], input.btn-primary, button.btn-primary {
color: #fff !important;
background-color: RGB(225, 108, 12);
border-color: RGB(208, 97, 6);
}
.theme-tabs .nav-tabs .nav-link.active, .moodle-dialogue-base .nav-tabs .nav-link.active {
background-color: RGB(0, 74, 151);
border-color: RGB(0, 74, 151);
color: #fff !important;
}
.theme-tabs .nav-tabs, .moodle-dialogue-base .nav-tabs {
list-style: none!important;
border-bottom-color: RGB(225, 108, 12);
border-bottom-width: 2px;
}
.theme-iconnav li a .static-icon, .theme-iconnav li .link-replace .static-icon {
background-color: RGB(0, 168, 225);
border-bottom: solid 1px rgba(0, 74, 151,.2);
}
.theme-iconnav li a:hover .static-icon, .theme-iconnav li .link-replace:hover .static-icon, .theme-iconnav li a:focus .static-icon, .theme-iconnav li .link-replace:focus .static-icon {
background-color: RGB(0, 168, 225);
border-bottom-color: transparent;
}
.theme-iconnav li a .text, .theme-iconnav li .link-replace .text {
background-color: rgba(0, 168, 225,.9);
}
//OCULTA EL MENU DE PAGINAS
.bg-divisor {
margin-top: 5px;
background-color: #f4f4f4;
}
.li-facebook a {
background: url(/theme/mb2nl/pix//customimage/BTN_facebook.png) no-repeat;
width: 32px;
height: 32px!important;
color: transparent!important;
background-size: 32px;
}
.li-youtube-play a {
/* background-color: #3b5998; */
background: url(/theme/mb2nl/pix//customimage/BTN_youtube.png) no-repeat;
width: 32px;
height: 32px!important;
color: transparent!important;
background-size: 32px;
}
.li-globe a {
/* background-color: #3b5998; */
background: url(/theme/mb2nl/pix//customimage/BTN_web.png) no-repeat;
width: 32px;
height: 32px!important;
color: transparent!important;
background-size: 32px;
}
i.fa.fas.fa-question {
font-size: 36px;
line-height: 45px;
}
.main-menu>.lang-item {
float:left!important;
margin-left: 80px;
}
.main-menu>.bookmarks-item{
display: none;
}
//afecta flechas del carrusel
.owl-nav{
display: contents;
}
.carousel-mode.nlearning .theme-slider-img {
margin: 0;
max-height: 200px;
}
.owl-carousel .owl-item img {
height: 200px;
}
.msjEnrolSelf{
font-size: 25px;
color: #004a97;
}
.min-height-carousel {
min-height: 300px;
}
.min-height-carousel .owl-item img {
height: 330px;
}
#main-header {
background-image: url('/theme/mb2nl/pix//customimage/Ulula-banner.jpg');
height: 200px;
background-size: cover;
}
@media only screen and (max-width: 768px) {
#main-header {
height: 100px;
}
}
#module-161 {
display:none;
}
.theme-hide-sidebar {
right: 0!important;
left: auto;
}
.fixed-bar {
// right: -500px;/
top: 700px;
}
.theme-iconnav li a .static-icon, .theme-iconnav li .link-replace .static-icon {
height: 43px;
}
.side-post {
display: none;
}
@media (min-width: 768px) {
.content-col {
flex: 0 0 75%!important;
min-width: 75%!important;
}
}
.theme-iconnav li a .text, .theme-iconnav li .link-replace .text {
height: 43px;
}
.header-tools-link.tool-search {
display:none;
}
.wikisearch {
display: none;
}
//Habilitar Botón de Matricula de Cursos de Páginas descriptivas
.matriculaBTN{
// display: block;/
display: none;
}
.videointerno {
}
.frontsec1{
max-width: 1240px;
width: 100%;
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
margin-top:30px;
}
margin-bottom: .5rem;
font-family: Roboto;
font-weight: 500;
line-height: 1.2;
color: RGB(0, 74, 151);
}
body {
font-family: Roboto;
}
li.activity.label p, td.label p {
color: #000000;
}
.theme-title.style-1::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 60px;
height: 1px;
border-bottom: solid 3px RGB(0, 168, 225);
}
.btn-primary.btn-secondary, .btn-default.btn-primary, input[type="submit"].btn-secondary, input.btn-default[type="submit"], button[type="submit"].btn-secondary, button.btn-default[type="submit"], input.btn-primary.btn-secondary, input.btn-default.btn-primary, button.btn-primary.btn-secondary, button.btn-default.btn-primary {
color: #fff !important;
background-color: RGB(225, 108, 12);
border-color: RGB(208, 97, 6);
}
.btn-primary, input[type="submit"], button[type="submit"], input.btn-primary, button.btn-primary {
color: #fff !important;
background-color: RGB(225, 108, 12);
border-color: RGB(208, 97, 6);
}
.theme-tabs .nav-tabs .nav-link.active, .moodle-dialogue-base .nav-tabs .nav-link.active {
background-color: RGB(0, 74, 151);
border-color: RGB(0, 74, 151);
color: #fff !important;
}
.theme-tabs .nav-tabs, .moodle-dialogue-base .nav-tabs {
list-style: none!important;
border-bottom-color: RGB(225, 108, 12);
border-bottom-width: 2px;
}
.theme-iconnav li a .static-icon, .theme-iconnav li .link-replace .static-icon {
background-color: RGB(0, 168, 225);
border-bottom: solid 1px rgba(0, 74, 151,.2);
}
.theme-iconnav li a:hover .static-icon, .theme-iconnav li .link-replace:hover .static-icon, .theme-iconnav li a:focus .static-icon, .theme-iconnav li .link-replace:focus .static-icon {
background-color: RGB(0, 168, 225);
border-bottom-color: transparent;
}
.theme-iconnav li a .text, .theme-iconnav li .link-replace .text {
background-color: rgba(0, 168, 225,.9);
}
//OCULTA EL MENU DE PAGINAS
.bg-divisor {
margin-top: 5px;
background-color: #f4f4f4;
}
.li-facebook a {
background: url(/theme/mb2nl/pix//customimage/BTN_facebook.png) no-repeat;
width: 32px;
height: 32px!important;
color: transparent!important;
background-size: 32px;
}
.li-youtube-play a {
/* background-color: #3b5998; */
background: url(/theme/mb2nl/pix//customimage/BTN_youtube.png) no-repeat;
width: 32px;
height: 32px!important;
color: transparent!important;
background-size: 32px;
}
.li-globe a {
/* background-color: #3b5998; */
background: url(/theme/mb2nl/pix//customimage/BTN_web.png) no-repeat;
width: 32px;
height: 32px!important;
color: transparent!important;
background-size: 32px;
}
i.fa.fas.fa-question {
font-size: 36px;
line-height: 45px;
}
.main-menu>.lang-item {
float:left!important;
margin-left: 80px;
}
.main-menu>.bookmarks-item{
display: none;
}
//afecta flechas del carrusel
.owl-nav{
display: contents;
}
.carousel-mode.nlearning .theme-slider-img {
margin: 0;
max-height: 200px;
}
.owl-carousel .owl-item img {
height: 200px;
}
.msjEnrolSelf{
font-size: 25px;
color: #004a97;
}
.min-height-carousel {
min-height: 300px;
}
.min-height-carousel .owl-item img {
height: 330px;
}
#main-header {
background-image: url('/theme/mb2nl/pix//customimage/Ulula-banner.jpg');
height: 200px;
background-size: cover;
}
@media only screen and (max-width: 768px) {
#main-header {
height: 100px;
}
}
#module-161 {
display:none;
}
.theme-hide-sidebar {
right: 0!important;
left: auto;
}
.fixed-bar {
// right: -500px;/
top: 700px;
}
.theme-iconnav li a .static-icon, .theme-iconnav li .link-replace .static-icon {
height: 43px;
}
.side-post {
display: none;
}
@media (min-width: 768px) {
.content-col {
flex: 0 0 75%!important;
min-width: 75%!important;
}
}
.theme-iconnav li a .text, .theme-iconnav li .link-replace .text {
height: 43px;
}
.header-tools-link.tool-search {
display:none;
}
.wikisearch {
display: none;
}
//Habilitar Botón de Matricula de Cursos de Páginas descriptivas
.matriculaBTN{
// display: block;/
display: none;
}
.videointerno {
}
.frontsec1{
max-width: 1240px;
width: 100%;
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
margin-top:30px;
}