Back to top

Autore Topic: [RISOLTO]Modifica del custom.scss gantry 5 hydrogen  (Letto 1649 volte)

Offline umboz

  • Esploratore
  • **
  • Post: 141
    • Mostra profilo
Salve a tutti sto utilizzando il template hydrogen di gantry 5. Vorrei poter inserire un background in tutte le parti del layout. Dopo svariati tentativi e consigli ho creato la cartella scss dentro la cartella custom del template, all'interno del quale ho creato il file custom.scss. Ho creato la mia regola:


.umbo {
Background-image: url("/joomla/templates/g5_hydrogen/images/ipad.png");
Background-position: center;
Background-repeat: no-repeat;
}


dopo sono andato nelle opzioni dello showcase e ho scritto nel campo CSS CLASSES umbo( nome della regola).
ho ricompilato il css nella sezione styles ma purtroppo il file si vede ripetuto  e non centrato. Qualche soluzione?  Il sito in prova è questo: http://misterbiscottinoprova.altervista.org/joomla/
« Ultima modifica: 19 Apr 2016, 21:39:59 da umboz »

adottauncane

  • Visitatore
Re:Modifica del custom.scss gantry 5 hydrogen
« Risposta #1 il: 19 Apr 2016, 14:00:31 »
Ciao umboz,
prova così:

Codice: [Seleziona]
.umbo .section-background {
  Background-image: url('../../../../joomla/templates/g5_hydrogen/images/ipad.png');
  Background-position: center;
  Background-repeat: no-repeat;
}

o così:

Codice: [Seleziona]
.umbo .section-background {    background-position: center center;    background-repeat: no-repeat;}

Offline umboz

  • Esploratore
  • **
  • Post: 141
    • Mostra profilo
Re:Modifica del custom.scss gantry 5 hydrogen
« Risposta #2 il: 19 Apr 2016, 21:39:20 »
Sei un genio! Risolto con il primo codice! ma se volessi che l'immagine si adattasse allo spazio senza lasciare margini??


Metto risolto. Grazie ancora!

adottauncane

  • Visitatore
Re:[RISOLTO]Modifica del custom.scss gantry 5 hydrogen
« Risposta #3 il: 19 Apr 2016, 21:48:47 »
Prova così:

Codice: [Seleziona]
.umbo .section-background {    background-position: center center;    background-repeat: no-repeat;    background-size: cover;}

Offline umboz

  • Esploratore
  • **
  • Post: 141
    • Mostra profilo
Re:[RISOLTO]Modifica del custom.scss gantry 5 hydrogen
« Risposta #4 il: 19 Apr 2016, 21:53:17 »
Grande! solo che c'è un problemino su mobile non è adattata. diciamo che potrebbe andare bene anche così ma se riuscissimo ad adattarla sarebbe il massimo.

adottauncane

  • Visitatore
Re:[RISOLTO]Modifica del custom.scss gantry 5 hydrogen
« Risposta #5 il: 20 Apr 2016, 12:49:47 »
Mmmm, dovresti scrivere un css @media ma dato che lo spazio è molto lungo e stretto non so come potresti fare per adattarla.

Offline umboz

  • Esploratore
  • **
  • Post: 141
    • Mostra profilo
Re:[RISOLTO]Modifica del custom.scss gantry 5 hydrogen
« Risposta #6 il: 20 Apr 2016, 14:33:22 »
Mm ho capito ti ringrazio lo stesso per il grande aiuto  ;D ;D

Ma nessun altro ha una soluzione?

 



Web Design Bolzano Kreatif