Guida CSS per Mambo 4.5.X

Transcript

Guida CSS per Mambo 4.5.X
Guida CSS per Mambo 4.5.X
(25 Giu, 2005 at 04:03 PM) - Contributi di Roberto D'Alessio - Ultimo aggiornamento (29 Lug, 2005 at 07:06 PM)
Una piccola e pratica guida sui Css per i template di Mambo
/**
* Stili generali per il Body
* -------------------* Questi settaggi CSS sono raccomandabili per il vostro
* template in HTML anche se non sono indispensabili
*/
body {
margin: 0px 0px 0px 0px;
background-color : #FFFFFF ;
color : #465675;
}
td,tr,p,div {
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 11px;
color: #333333;
}
h4 {
color: #FF9900;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 14px; font-weight: bold;
}
h5 {
color: #FF9900;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 13px; font-weight: bold;
}
h6 {
color: #FF9900;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 12px; font-weight: bold;
}
a:link, a:visited {
font-size: 11px;
color: #23598d;
text-decoration: none;
font-family: Arial, Verdana, Helvetica, sans-serif;
}
a:hover {
color: #23598d;
}
text-decoration: underline;
ul {
margin: 0px 0px 0px 0px;
}
li {
list-style: inside 3px;
}
/**
* Stili generali per Mambo
* -------------------* Quelli che seguono sono stili usati spesso
http://www.supportomambo.it - Supportomambo.it : il supporto ufficiale italiano a Mambo
Powered by Mambo
Generato:17 March, 2017, 05:57
* e largamente da Mambo per fornire il controllo migliore
* della formattazione grafica dei contenuti
*/
hr {
/* usato spesso nei componenti come Akobook, e nel forum Simpleboard
per definire le linee separatrici */
background: transparent;
height:1px;
border: 1px solid #314B77;
}
hr.separator {
/* Questo stile si trova nello stile CSS di Peekmambo. Ancora non si è risolto se questo è uno stile personalizzato o fa
parte degli stili interni. Far' un aggiornamento quando lo capirò */
background: transparent;
height: 1px;
width: 75px;
border: 1px solid #314B77;
}
.pagenavbar {
/* per qualche bizzarro motivo, questo stile non è usato nei nav delle pagine, ma lo ho trovato usato per i nick names nei
threads Simpleboard */
}
.pagenav {
/* come indicato dal nome questo stile modifica i link menu testuali "<< inizio < precedente 1 prossimo > fine>>" */
font-weight: normal;
}
a.pagenav, a.pagenav:visited {
/* come prima ma per i links */
font-weight: bold;
color: #343A58;
}
a.pagenav:hover {
/* per i links, provoca una modifica del testo quando il mouse ci passa sopra */
color: #FF9900;
}
.small {
/* general style for texts when small size fonts are used. In
the contents, this style is used for "Written by..." texts */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 10px;
color: #343A58;
text-decoration: none;
font-weight: normal;
}
.smalldark {
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 10px;
color: #343A58;
text-decoration: none;
font-weight: normal;
}
/**
http://www.supportomambo.it - Supportomambo.it : il supporto ufficiale italiano a Mambo
Powered by Mambo
Generato:17 March, 2017, 05:57
* Stili per i Form in Mambo
* ----------------* Qui ci sono i 2 stili che Mambo OS usa per darci il controllo
* sull'apparenza di forms e bottoni.
*/
.button {
/* Questo stile è quello che controlla l'apparenza della maggioranza
dei bottoni dei forms generati da mambo e dai suoi componenti.
Cambiate la loro grafica da qui */
color: #FFFFFF;
font-family: Arial, Verdana, Helvetica, sans-serif;
margin-top: 4px;
font-weight: normal;
text-align: center;
font-size: 12px;
background: #94B1CF;
border: 1px solid #000066;
height: 20px;
}
.inputbox {
/* Il nome stesso dello stile ci indica che esso si occupa dell'aspetto dei campi per gli input */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 12px;
color: #343A58;
background: #FFFFFF;
border: 1px solid;
}
/**
* Interfaccia di Amministrazione del frontend
* ------------------------------------* Questi stili CSS gestiscono l'aspetto dell'interfaccia di amministrazione
* quando le news vengono redatte o amministrate attraverso il frontend.
*/
.ontab {
/* For styling of the "Tab" buttons when editing contents through the frontend
(when you log in as admin in the frontend). This .ontab is the styling for the
tab when it is active or after its "clicked" */
background-color: #323A15;
border-left: outset 1px #DCF2FA;
border-right: outset 1px #808080;
border-top: outset 1px #DCF2FA;
border-bottom: solid 1px #d5d5d5;
text-align: center;
font-weight: bold;
color: #FFFFFF;
}
.offtab {
/* Same as above, used for styling of the "Tab" buttons when editing contents through the frontend.
This .ontab is the styling for the tab when it is NOT active or when it is NOT "clicked" */
background-color : #e5e5e5;
border-left: outset 1px #E0E0E0;
border-right: outset 1px #E0E0E0;
border-top: outset 1px #E0E0E0;
border-bottom: solid 1px #d5d5d5;
text-align: center;
cursor: hand;
font-weight: normal;
http://www.supportomambo.it - Supportomambo.it : il supporto ufficiale italiano a Mambo
Powered by Mambo
Generato:17 March, 2017, 05:57
}
.tabpadding {
/* this style is used set the size of the tab in
in the above */
padding-top: 5px;
padding-bottom: 5px;
padding-left: 5px;
padding-right: 5px;
}
.tabheading {
/* Not too sure what this is used for. Couldn't find anything
related to it yet at the moment */
}
.pagetext {
/* this style is used to style the content of the editing form
contents (where HTMLArea sits and all its forms + contents) in
the frontend Administration interface */
visibility: hidden;
display: none;
position: relative;
top: 0;
}
/**
* Stili per il menu
* -----------* E' possibile controllare You can control the way menu behave and look
* by using the CSS settings below
*/
a.mainlevel:link, a.mainlevel:visited {
/* this styling is for the MAIN items in the menu */
color: #3D4E6D;
font-weight: bold;
text-decoration:none;
text-align: left;
}
a.mainlevel:hover {
/* same as above, but when hovering */
color: #FF9900;
font-weight: bold;
text-decoration:none;
text-align: left;
}
a.sublevel:link, a.sublevel:visited {
/* this styling is for menu items that HAS A PARENT */
font-family: Arial, Verdana, Helvetica, sans-serif;
color: #343A58;
font-weight: normal;
}
a.sublevel:hover {
/* pffff!.. you know this! */
color: #FFFFFF;
text-decoration: none;
}
http://www.supportomambo.it - Supportomambo.it : il supporto ufficiale italiano a Mambo
Powered by Mambo
Generato:17 March, 2017, 05:57
/**
* Stili generali per le Sezioni/Categorie/Contenuti
* -----------------------------------------------------* Questi stili sono usati - in certi casi o spesso per dare un formato a
* Sezioni, categorie e contenuti. Quindi meritano
* di essere menzionati in una categoria a parte rispetto agli altri.
*/
.createdate {
/* name says it all.. its for styling the date the content/articles are created under
contents title */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 9px;
color: #343A58;
text-decoration: none;
font-weight: normal;
}
.modifydate {
/* need me to say? :) Well it styles the "Last updated on" text
at the end of articles/contents */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 10px;
color: #343A58;
text-decoration: none;
font-weight: normal;
}
a.readon:link, a.readon:visited {
/* For formatting the "Read on..." link for blogs and on frontpage. */
color: #23598d;
text-decoration: none;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 11px;
}
a.readon:hover {
/* Pfft..! */
color: #23598d; text-decoration: underline;
font-weight: normal;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 11px;
}
/**
* Stili di Mambo per la sezione Contents
* -------------------------* Tutti gli stili per i contenuti sono nella lista che segue.
*/
.contentpane {
/* This is used mainly for the table that holds the SECTIONS such as News.
This is when you create a link to a Section and when clicked on it, it will display
"News" then some description (with image if you selected one) and then a list of
Category of News. Yes! That entire thing is contained in a table with this style */
background-color : #FFFFFF;
}
http://www.supportomambo.it - Supportomambo.it : il supporto ufficiale italiano a Mambo
Powered by Mambo
Generato:17 March, 2017, 05:57
.contentpaneopen {
background-color : #FFFFFF;
}
.contentheading {
/* This is used in several places; the Heading of contents on the frontpage,
it is also used for Section's heading (see above for explanation) "News" or
whatever heading you used */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 13px;
font-weight: bold;
color: #FF9900;
text-align:left;
line-height: 16px;
height: 15px;
}
.contentpagetitle {
/* Couldn't find where is this yet. Will update this part when I
get to it. Sorry. If you know, please email me the infos */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 13px;
font-weight: bold;
color: #FF9900;
text-align:left;
}
.contentdescription {
/* When you create a link to a Section in the main menu and when clicked on it, it will display
"News" then some description (with image if you selected one) and then a list of
Category of News. This style is used for formating the "DESCRIPTION" part of that page */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 11px;
color: #333333;
text-align: left;
}
table.contenttoc {
/* This is used to format the table of the Tables of Contents or "Jump to"
box when it is enabled in a multiple paged content or article */
color: #343A58;
background-color: #e0e0e0;
border-top: 1px solid #465675;
border-bottom: 1px solid #465675;
border-left: 1px solid #465675;
border-right: 1px solid #465675;
}
table.contenttoc td {
/* the same as above, but this is used to format the td or
table cells */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 8pt;
font-weight: normal;
text-align:left;
padding: 3px;
}
.content_rating {
/* used for styling the texts used for displaying
those "stars" for rating in an article */
font-weight: normal;
font-size: 8pt;
}
http://www.supportomambo.it - Supportomambo.it : il supporto ufficiale italiano a Mambo
Powered by Mambo
Generato:17 March, 2017, 05:57
.content_vote {
/* used for those voting texts (the one with voting RADIO buttons) */
font-weight: normal;
font-size: 8pt;
}
/**
* Stili Mambo per le Sezioni
* --------------------* Formati per le tavole delle sezioni
*/
.sectiontableheader {
/* questo formatta l'header delle pagine Sezione.
Un esempio potrebbe essere cio' che viene mostrato
quando si clicca sul pulsante "News" o sezioni simili.
Il table header che mostra la "Data", Il "Titolo dell'argomento",
l'"Autore" ed il "Punteggio", questo stile controlla proprio quell header */
background-color : #94B1CF;
background-repeat: repeat;
padding: 2px;
color : #FFFFFF;
font-weight : bold;
padding: 2px;
}
.sectiontableentry1, {
/* this is used when there's a whole list of data to provide and
you need to create alternate colors for each row of data. This is
the first color */
background-color : #BED2EB;
}
.sectiontableentry2 {
/* this is the second color for the row. So, the table generator,
will alternate its style through sectionableentry1 and sectiontableentry2
as it cycles through and outputs each row of data. Similar to forum's post
listings */
background-color : #F3F3F3;
}
/**
* Mambo Styles for Categories
* --------------------------* The following are the styling for "Category" items
* generated from the Sections area
*/
.category {
/* this is to set the category Titles ( found on a SECTION's page
where the Category lists are) styles */
color: #3D4E6D;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
text-decoration: none;
}
a.category:link, a.category:visited {
http://www.supportomambo.it - Supportomambo.it : il supporto ufficiale italiano a Mambo
Powered by Mambo
Generato:17 March, 2017, 05:57
/* same as above, but to set the link format */
color: #3D4E6D; font-weight: bold;
}
a.category:hover {
/* same as above, but for links with mouse pointer over it */
color: #3D4E6D;
}
/**
* Mambo Blog styling
* -----------------* Not too sure where this is used yet. I tried the blog section
* but it doesn't seem to use it. If you have info on this,
* email me. I'll update this part.
*/
a.blogsection:link, a.blogsection:visited {
color: #44757D;
text-decoration: none;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 10px;
}
a.blogsection:hover {
color: #759328;
text-decoration: underline;
font-size: 10px;
}
/**
* Mambo Components Styles
* ----------------------* These stylings are to format the way components title
* is displayed
*/
.componentheading {
/* This is used for formatting the component's title
when it is displayed on its own page on the frontend */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
color: #FF9900;
text-align:left;
}
/**
* Mambo Modules formatting
* -----------------------* These stylings are to format the way modules are
* displayed. It mainly deals with the format of its
* table. I think this doesn't need too much explaining
*/
table.moduletable {
/* styling the module table */
http://www.supportomambo.it - Supportomambo.it : il supporto ufficiale italiano a Mambo
Powered by Mambo
Generato:17 March, 2017, 05:57
margin: 0px 0px 0px 0px;
width: 95%;
}
table.moduletable th {
/* styling the module header, and the module titles */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
color: #FF9900;
text-align: left;
}
table.moduletable td {
/* well.. for formatting the table cells of the module table */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 11px;
}
/**
* Mambo's Built-in Component's Syling
* ----------------------------------* These stylings are used for Mambo's built-in components
* such as newsfeeds, weblinks, contact, search and polls.
* A commented subtitle will guide you which is for which
*/
/* Polls */
.poll {
/* polls texts */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
color: #343A58;
line-height: 14px
}
.pollstableborder {
/* set the border properties of the polls voting table */
border: 1px solid #465675;
}
/* Weblinks */
a.weblinks:link, a.weblinks:visited {
/* well.. to format the link's titles under the "Weblinks"
section on the frontend */
color: #405115; text-decoration: none; font-weight: normal;
font-family: Arial, Verdana, Helvetica, sans-serif;
}
a.weblinks:hover {
/* same as above, but for link with mouseover */
color: #000099; text-decoration: underline;
}
/* Newsfeeds */
http://www.supportomambo.it - Supportomambo.it : il supporto ufficiale italiano a Mambo
Powered by Mambo
Generato:17 March, 2017, 05:57
.newsfeedheading {
/* The newsfeed title. NOTE: This will not affect the newsfeed's news title! */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
color: #343A58;
}
.newsfeeddate {
/* yeah.. the date on the newsfeed */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 10px;
color: #343A58;
font-weight: normal;
}
.fase4rdf {
/* this is the body text of the newsfeed */
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 11px;
color: #343A58;
font-weight: normal;
}
a.fase4rdf:link {
/* links of the body text of the newsfeed */
font-size: 11px;
font-weight: bold;
color: #356C82;
}
a.fase4rdf:hover {
/* links of the body text of the newsfeed when mouse points over it*/
font-size: 11px;
font-weight: bold; color: #759328;
}
/* Search page */
table.searchintro {
/* This is for formatting the box with "Search Keyword: test returned 4 matches" box
that appears after you have entered a search value. It appears on the mainbody
with the search results */
background-color: #FFFFFF;
border: 1px solid #8D9ABC;
}
/* Contact's table settings */
table.contact {
/* for formatting the entire "Contact" table which includes
the name, address icons and form. Note this table DOES NOT
enclose the dropdown list for selecting the Department/person
to contact */
background-color: #FFFFFF;
}
table.contact td.icons {
/* the name gave it away. This formats the <td> cells
where the little icons sits next to the details (those addresses,
phone number etc) */
http://www.supportomambo.it - Supportomambo.it : il supporto ufficiale italiano a Mambo
Powered by Mambo
Generato:17 March, 2017, 05:57
background-color: #CCCCCC;
}
table.contact td.details {
/* this is for formatting the <td> cells where all the details sits.
The details where addresses, phone number and additional info are */
background-color: #F3F3F3;
font-size: 11px;
font-family: Arial, Verdana, Helvetica, sans-serif;
}
http://www.supportomambo.it - Supportomambo.it : il supporto ufficiale italiano a Mambo
Powered by Mambo
Generato:17 March, 2017, 05:57