MyBB Community Forums

Full Version: css styles in acp
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
is this the bit of the theme file that corresponds to that part of the acp? if i remove that what would happen? i find that having all of my css in a .css file much easier then having to go into the acp and looking for whatever to edit.


<cssbits>
<body>
<background><![CDATA[#efefef]]></background>
<color><![CDATA[#000]]></color>
<font-family><![CDATA[Verdana]]></font-family>
<font-size><![CDATA[small]]></font-size>
<a_link>
<color><![CDATA[#026CB1]]></color>
<text-decoration><![CDATA[none]]></text-decoration>
</a_link>
<a_visited>
<color><![CDATA[#026CB1]]></color>
<text-decoration><![CDATA[none]]></text-decoration>
</a_visited>
<a_hover>
<color><![CDATA[#000]]></color>
<text-decoration><![CDATA[underline]]></text-decoration>
</a_hover>
</body>
<container>
<width><![CDATA[95%]]></width>
<extra><![CDATA[background: #fff;
border: 1px solid #e4e4e4;
color: #000000;
margin: auto auto;
padding: 20px;]]></extra>
</container>
<content>
<extra><![CDATA[/* FIX: Make internet explorer wrap correctly */
width: auto !important;
]]></extra>
</content>
<menu>
<color><![CDATA[#000000]]></color>
<font-weight><![CDATA[bold]]></font-weight>
<extra><![CDATA[text-align: right;
padding: 4px;]]></extra>
<a_link>
<color><![CDATA[#000000]]></color>
<text-decoration><![CDATA[none]]></text-decoration>
</a_link>
<a_visited>
<color><![CDATA[#000000]]></color>
<text-decoration><![CDATA[none]]></text-decoration>
</a_visited>
<a_hover>
<color><![CDATA[#4874a3]]></color>
<text-decoration><![CDATA[none]]></text-decoration>
</a_hover>
</menu>
<panel>
<background><![CDATA[#efefef]]></background>
<color><![CDATA[#000000]]></color>
<font-size><![CDATA[11px]]></font-size>
<extra><![CDATA[border: 1px solid #D4D4D4;
padding: 8px;]]></extra>
</panel>
<table>
<color><![CDATA[#000000]]></color>
<font-family><![CDATA[Verdana]]></font-family>
<font-size><![CDATA[small]]></font-size>
</table>
<tborder>
<background><![CDATA[#81A2C4]]></background>
<width><![CDATA[100%]]></width>
<extra><![CDATA[margin: auto auto;
border: 1px solid #0F5C8E;]]></extra>
</tborder>
<thead>
<background><![CDATA[#026CB1 url(images/thead_bg.gif) top left repeat-x]]></background>
<color><![CDATA[#ffffff]]></color>
<a_link>
<color><![CDATA[#ffffff]]></color>
<text-decoration><![CDATA[none]]></text-decoration>
</a_link>
<a_visited>
<color><![CDATA[#ffffff]]></color>
<text-decoration><![CDATA[none]]></text-decoration>
</a_visited>
<a_hover>
<color><![CDATA[#ffffff]]></color>
<text-decoration><![CDATA[underline]]></text-decoration>
</a_hover>
</thead>
<tcat>
<background><![CDATA[#ADCBE7]]></background>
<color><![CDATA[#000000]]></color>
<font-size><![CDATA[11px]]></font-size>
<a_link>
<color><![CDATA[#000000]]></color>
</a_link>
<a_visited>
<color><![CDATA[#000000]]></color>
</a_visited>
<a_hover>
<color><![CDATA[#000000]]></color>
</a_hover>
</tcat>
<trow1>
<background><![CDATA[#f5f5f5]]></background>
</trow1>
<trow2>
<background><![CDATA[#EFEFEF]]></background>
</trow2>
<trow_shaded>
<background><![CDATA[#eea8a1]]></background>
</trow_shaded>
<trow_sep>
<background><![CDATA[#e5e5e5]]></background>
<color><![CDATA[#000]]></color>
<font-size><![CDATA[11px]]></font-size>
<font-weight><![CDATA[bold]]></font-weight>
</trow_sep>
<tfoot>
<background><![CDATA[#026CB1 url(images/thead_bg.gif) top left repeat-x]]></background>
<color><![CDATA[#ffffff]]></color>
<a_link>
<color><![CDATA[#ffffff]]></color>
<text-decoration><![CDATA[none]]></text-decoration>
</a_link>
<a_visited>
<color><![CDATA[#ffffff]]></color>
<text-decoration><![CDATA[none]]></text-decoration>
</a_visited>
<a_hover>
<color><![CDATA[#ffffff]]></color>
<text-decoration><![CDATA[underline]]></text-decoration>
</a_hover>
</tfoot>
<bottommenu>
<background><![CDATA[#efefef]]></background>
<color><![CDATA[#000000]]></color>
<extra><![CDATA[border: 1px solid #4874a3;
padding: 6px;]]></extra>
</bottommenu>
<navigation>
<color><![CDATA[#000000]]></color>
<font-family><![CDATA[Verdana]]></font-family>
<font-size><![CDATA[small]]></font-size>
<font-weight><![CDATA[bold]]></font-weight>
<a_link>
<text-decoration><![CDATA[none]]></text-decoration>
</a_link>
<a_visited>
<text-decoration><![CDATA[none]]></text-decoration>
</a_visited>
<a_hover>
<text-decoration><![CDATA[none]]></text-decoration>
</a_hover>
</navigation>
<navigation_active>
<color><![CDATA[#000000]]></color>
<font-family><![CDATA[Verdana]]></font-family>
<font-size><![CDATA[small]]></font-size>
<font-weight><![CDATA[bold]]></font-weight>
</navigation_active>
<smalltext>
<font-family><![CDATA[Verdana]]></font-family>
<font-size><![CDATA[11px]]></font-size>
</smalltext>
<largetext>
<font-family><![CDATA[Verdana, Arial, sans-serif;]]></font-family>
<font-size><![CDATA[medium]]></font-size>
<font-weight><![CDATA[bold]]></font-weight>
</largetext>
<area_input_select_object>
<color><![CDATA[#000000]]></color>
<font-family><![CDATA[Verdana]]></font-family>
<font-size><![CDATA[small]]></font-size>
</area_input_select_object>
</cssbits>
<themebits>
<templateset><![CDATA[1]]></templateset>
<imgdir><![CDATA[images]]></imgdir>
<logo><![CDATA[images/logo.gif]]></logo>
<tablespace><![CDATA[4]]></tablespace>
<tablewidth><![CDATA[100%]]></tablewidth>
<borderwidth><![CDATA[1]]></borderwidth>
<extracss><![CDATA[.clear {
clear: both;
}

.hidden {
display: none;
float: none;
width: 1%;
}

.menu ul {
list-style: none;
margin: 0;
}

.menu li {
display: inline;
padding-left: 5px;
}

.menu img {
padding-right: 5px;
vertical-align: top;
}

#panel .links {
margin: 0;
float: right;
}

.expcolimage {
float: right;
width: auto;
vertical-align: middle;
}

img.attachment {
border: 1px solid #E9E5D7;
padding: 2px;
}

.pagenav {
font-weight: bold;
}

.pagenavbit {
padding-left: 3px;
}

.pagenavbit a {
text-decoration: none;
}

.pagenavcurrent {
font-weight: bold;
padding-left: 3px;
}

hr {
background-color: #000000;
color: #000000;
height: 1px;
border: 0px;
}

#copyright {
font: x-small Verdana, Arial, Sans-Serif;
margin: 0;
padding: 10px 0 0 0;
}

#debug {
float: right;
text-align: right;
margin-top: 0;
}

.quote_header {
background: #fff;
border: 1px dashed #000;
border-bottom: 0;
color: #000;
font-weight: bold;
margin: 8px auto 0 auto;
padding: 4px;
}

.quote_body {
background: #fff;
border: 1px dashed #000;
border-top: 0;
color: #000;
padding: 4px;
margin: 0 auto 8px auto;
}

.code_header {
background: #fff;
border: 1px dashed #000;
border-bottom: 0;
color: #000;
font-weight: bold;
margin: 8px auto 0 auto;
padding: 4px;
}

.code_body {
background: #fff;
border: 1px dashed #000;
border-top: 0;
color: #000;
padding: 4px;
margin: 0 auto 8px auto;
font-family: monospace;
}
.usercpnav {
list-style: inside;
padding: 0;
margin: 0;
}

.usercpnav li {
padding: 1px;
font-family: Verdana;
font-size:11px
}

.usercpnav .pmfolders {
/* PM folders on the UCP Nav menu */
}

.separator {
margin: 5px;
padding: 0;
height: 0px;
font-size: 1px;
list-style-type: none;
}]]></extracss>
No, Admin CP Styles are handled in the styles folder of the Admin CP.
The CSS is stored in the database.

You are probably looking at /install/resources/mybb_theme.xml, correct?

There currently is no option to store CSS as files.
Ryan Ashbrook Wrote:The CSS is stored in the database.

You are probably looking at /install/resources/mybb_theme.xml, correct?

There currently is no option to store CSS as files.

that's exactly it, i don't want to use the css stored in the database, why make something so simple as editing a .css file complicated by putting it into the database? but anyhow, i think i've figured out what i want to do, thanks for you quick replies. Big Grin
vln004 Wrote:that's exactly it, i don't want to use the css stored in the database, why make something so simple as editing a .css file complicated by putting it into the database? but anyhow, i think i've figured out what i want to do, thanks for you quick replies. Big Grin

Because the boards would have to create a css file for every theme that you make.

And, also, a lot of people don't know CSS like say me and you. Smile

But you're welcome anyway. Smile