So, anyone know CSS?

Test stuff, from signatures to avatars to code, here
Post Reply
User avatar
Kaiser Ikol II
Posts: 222
Joined: Fri Jun 11, 2010 6:45 pm

So, anyone know CSS?

Post by Kaiser Ikol II »

I want to make the tables here percentage based, so that the central forum occupies a fixed percentage of the screen and the blue background the rest.

But every time I do that, it screws up the red bar on top with the Control Panel on it, not to mention the banner.

I'd really rather hand this project off to someone who knows CSS. Any volunteers?

User avatar
Malliki Tosha
Posts: 2516
Joined: Wed Aug 26, 2009 10:43 am

Re: So, anyone know CSS?

Post by Malliki Tosha »

The banner is proly stated in pixels, and perhaps the red bar too. If you send me the code I can have a crack at it, but I'm not a master of CSS by any means.
Malliki Tosha
Owner, Mortis Mercatoria FC
Owner, Newport City FC

User avatar
Kaiser Ikol II
Posts: 222
Joined: Fri Jun 11, 2010 6:45 pm

Re: So, anyone know CSS?

Post by Kaiser Ikol II »

Code: Select all

/*  phpBB 3.0 Style Sheet
    --------------------------------------------------------------
	Style name:		GuildWarsAlliance
	Based on style:	subSilver
    --------------------------------------------------------------
*/

/* Layout
 ------------ */
* { margin: 0; padding: 0; border: 0; }

.fl { float: left; }

.fr { float: right; }

body {
	background: #214879 url('{T_THEME_PATH}/images/bg.gif') top repeat-x;
	background-attachment: fixed;
	font-size: 10px;
	color:#B9C0BC;
	font-family: verdana, arial;
	margin: 0px;
}

.space { clear: both; }

#wrapheader {
	width: 1058px;
	margin: 0 auto;
	background: #556661 url('{T_THEME_PATH}/images/bg2.jpg') top no-repeat;
	background-position: 0 100px;
	border: #000000 1px solid;
	border-width: 0 1px 1px 1px;

}

a#logo {
	display: block;
	height: 100px;
	width: 1058px;
	background: url('{T_IMAGESET_PATH}/banner.jpg') top no-repeat;
	text-decoration: none;
	text-indent: -4000px;
}

#navleft {
	background: url('{T_THEME_PATH}/images/navleft.jpg') top no-repeat;
	float: left;
	width: 165px;
	height: 79px;
}

a#login {
	display: block;
	width: 147px;
	height: 28px;
	text-indent: -4000px;
	float: left;
	background: url('{T_IMAGESET_LANG_PATH}/login.jpg') 0 0 no-repeat;
}

a:hover#login {
	background-position: 0px -28px;
}

a#logout {
	display: block;
	width: 147ox;
	height: 28px;
	text-indent: -4000px;
	float: left;
	background: url('{T_IMAGESET_LANG_PATH}/logout.jpg') 0 0 no-repeat;
}

*/Proper widths: 165 px for left, 853 px for right

a:hover#logout {
	background-position: 0px -28px;
}

#navright {
	background: url('{T_THEME_PATH}/images/navright.jpg') top repeat;
	float: left;
	width: 853px;
	height: 59px;
	padding: 20px 40px 0 0;
	overflow: hidden;
	font-size : 11px;
	color : #E1E2E2;
	font-family: verdana, arial;
	text-align: center;
	line-height: 18px;
}

.bar { height: 6px; background: #645E55 url('{T_THEME_PATH}/images/bar.gif') top repeat-x; }

#infocontain {
	background: url('{T_THEME_PATH}/images/infobg.gif') top repeat-y;
	width: 1054px;
}

#infowrap {
	background: url('{T_THEME_PATH}/images/infobottom.gif') bottom no-repeat;
}

#info {
	background: url('{T_THEME_PATH}/images/infotop.gif') top no-repeat;
	padding: 22px 20px 22px 20px;
}

#wrapcentre {
	margin: 15px 2px 0 2px;
}

#wrapfooter {
	text-align: center;
	clear: both;
}

#wrapnav {
	width: 100%;
	margin: 0;
	background-color: #ECECEC;
	border-width: 1px;
	border-style: solid;
	border-color: #0D1010;
}

#datebar {
	margin: 10px 2px 0 2px;
}

#findbar {
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
}

.forumrules {
	background-color: #645E55;
	border-width: 1px;
	border-style: solid;
	border-color: #403B34;
	padding: 4px;
	font-weight: normal;
	font-size: 11px;
	font-family: "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
}

.forumrules h3 {
	color: #181D1D;
}

#pageheader { }
#pagecontent { }
#pagefooter { }

#poll { }
#postrow { }
#postdata { }


/*  Text
 --------------------- */
h1 {
	color: black;
	font-family: "Lucida Grande", "Trebuchet MS", Verdana, sans-serif;
	font-weight: bold;
	font-size: 1.8em;
	text-decoration: none;
}

h2 {
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
	font-size: 1.5em;
	text-decoration: none;
	line-height: 120%;
}

h3 {
	font-size: 1.3em;
	font-weight: bold;
	font-family: Arial, Helvetica, sans-serif;
	line-height: 120%;
}

h4 {
	margin: 0;
	font-size: 12px;
	font-weight: bold;
}

h5 {
	margin: 0;
	font-size: 11px;
	font-weight: bold;
}

p {
	font-size: 11px;
}

p.moderators {
	margin: 0;
	float: left;
	color: black;
	font-weight: bold;
}

.rtl p.moderators {
	float: right;
}

p.linkmcp {
	margin: 0;
	float: right;
	white-space: nowrap;
}

p.forumsread {
	margin: 0;
	float: right;
	white-space: nowrap;
}

.rtl p.linkmcp {
	float: left;
}

p.breadcrumbs {
	margin: 0;
	float: left;
	color: black;
	font-weight: bold;
	white-space: normal;
	font-size: 10pt;
}

.rtl p.breadcrumbs {
	float: right;
}

p.datetime {
	margin: 0;
	float: right;
	white-space: nowrap;
	font-size: 1em;
}

.rtl p.datetime {
	float: left;
}

p.searchbar {
	padding: 2px 0;
	white-space: nowrap;
} 

p.searchbarreg {
	margin: 0;
	float: right;
	white-space: nowrap;
}

.rtl p.searchbarreg {
	float: left;
}

p.forumdesc {
	padding-bottom: 4px;
	font-size: 
}

p.topicauthor {
	margin: 1px 0;
}

p.topicdetails {
	margin: 1px 0;
}

.postreported, .postreported a:visited, .postreported a:hover, .postreported a:link, .postreported a:active {
	margin: 1px 0;
	color: red;
	font-weight:bold;
}

.postapprove, .postapprove a:visited, .postapprove a:hover, .postapprove a:link, .postapprove a:active {
	color: green;
	font-weight:bold;
}

.postapprove img, .postreported img {
	vertical-align: bottom;
	padding-top: 5px;
}

.postauthor {
	color: #8DB8B7;
	font-size: 10px;
}

.postdetails {
	color: #8DB8B7;
	font-size: 10px;
}

.postbody {
	font-size: 10pt;
	line-height: 1.4em;
	font-family: "Lucida Grande", "Trebuchet MS", Helvetica, Arial, sans-serif;
}

.postbody li, ol, ul {
	margin: 0 0 0 1.5em;
}

.rtl .postbody li, .rtl ol, .rtl ul {
	margin: 0 1.5em 0 0;
}

.posthilit {
	background-color: #3E5151;
}

.nav {
	margin: 0;
	color: #B9C0BC;
	font-weight: bold;
}

.pagination {
	padding: 4px;
	color: black;
	font-size: 10px;
	font-weight: bold;
}

.cat h4 a { font-weight: bold; font-size: 12px; letter-spacing: 1px; color : #5E8C8A }

.cat, .cat h4 a:visited, .cat h4 a:hover	{ text-decoration: none; color : #5E8C8A; }

.gen { font-size : 12px; }

.genmed { font-size : 11px; }

.gensmall { font-size : 10px; }

.gen,.genmed,.gensmall { color : #B9C0BC; }

.copyright {
	color: #8DB8AB;
	font-weight: normal;
	font-family: "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
	font-size: 9px;
}

.titles {
	font-family: "Lucida Grande", Helvetica, Arial, sans-serif;
	font-weight: bold;
	font-size: 1.3em;
	text-decoration: none;
}

.error {
	color: #5E716A;
}


/* Tables
 ------------ */
th {
	color: #76A38E;
	font-size: 11px;
	font-weight: bold;
	background: #2E382D url('{T_THEME_PATH}/images/cellpic3.gif') top repeat-x;
	white-space: nowrap;
	padding: 7px 5px;
	text-align: center;
}

.th2 {
	background: #2E382D url('{T_THEME_PATH}/images/cellpic4.gif') top repeat-x;
}

td {
	padding: 2px;
}
td.profile {
	padding: 4px;
}

.tablebg {
	background-color: #0D1010;
}

.catdiv {
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	background: url('{T_THEME_PATH}/images/cellpic2.jpg') repeat-y scroll top left;
}
.rtl .catdiv {
	background: white url('{T_THEME_PATH}/images/cellpic2_rtl.jpg') repeat-y scroll top right;
}

.cat {
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	background: #161C1C url('{T_THEME_PATH}/images/cellpic1.gif') top repeat-x;
	text-indent: 4px;
}

.row1, .row2, .row3, .row3Right { border-left: solid 1px #282D2D; border-top: solid 1px #282D2D; }
.row1	{ background: #181D1D url('{T_THEME_PATH}/images/cellbg.gif') top repeat-x; }
.row2	{ background: #181D1D url('{T_THEME_PATH}/images/cellbg.gif') top repeat-x; }
.row3,.row3Right	{ background: #181D1D url('{T_THEME_PATH}/images/cellbg.gif') top repeat-x; }

.spacer {
	background: #1B2020 url('{T_THEME_PATH}/images/spacerbg.gif') top repeat-x;
}

.legend {
	text-align:center;
	margin: 0 auto;
}

/* Links
 ------------ */

/* Links adjustment to correctly display an order of rtl/ltr mixed content */
.rtl a {
	direction: rtl;
	unicode-bidi: embed;
}
 
a:link,a:active,a:visited { 
	text-decoration: none;
	color : #7FAA9A;
}

a:hover { 
	text-decoration: underline; 
	color : #4CAC89;
}

#navright a,#navright a:visited {
	text-decoration: none;
	color : #E1E2E2;
}
#navright a:hover {
	text-decoration: underline;
	color : #719C8D;
}

.forumlink		{ font-weight: bold; font-size: 12px; color : #6EB1A2; }
a.forumlink,a.forumlink:visited	{ text-decoration: none; color : #6EB1A2; }
a.forumlink:hover{ text-decoration: none; color : #8CC3B7; }

a.topictitle {
	margin: 1px 0;
	font-family: "Lucida Grande", Helvetica, Arial, sans-serif;
	font-weight: bold;
	font-size: 12px;
}

a.topictitle:visited {
	color: #698C7F;
	text-decoration: none;
}

th a,
th a:visited {
	color: #FFA34F !important;
	text-decoration: none;
}

th a:hover {
	text-decoration: underline;
}


/* Form Elements
 ------------ */
form {
	margin: 0;
	padding: 0;
	border: 0;
}

input {
	color: #111111;
	background: #50695F url('{T_THEME_PATH}/images/inputbg.gif') top repeat-x;
	font-family: "Lucida Grande", Verdana, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: normal;
	padding: 1px;
	border: 1px solid #0D1010;
	vertical-align: middle;
}

input.post{
	background: #50695F url('{T_THEME_PATH}/images/inputbg.gif') top repeat-x;
	border-top: 1px solid #0D1010;
	border-left: 1px solid #0D1010;
	border-bottom: 1px solid #878787;
	border-right: 1px solid #878787;
	text-align: left;
}

textarea {
	background: #638376 url('{T_THEME_PATH}/images/textbg.gif') repeat;
	color: #111111;
	font-family: "Lucida Grande", Verdana, Helvetica, Arial, sans-serif;
	font-size: 12px;
	line-height: 1.4em;
	font-weight: normal;
	border: 1px solid #0D1010;
	padding: 2px;
}

select {
	color: #111111;
	background: #638376 url('{T_THEME_PATH}/images/textbg.gif') repeat;
	font-family: "Lucida Grande", Verdana, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: normal;
	border-top: 1px solid #0D1010;
	border-left: 1px solid #0D1010;
	border-bottom: 1px solid #878787;
	border-right: 1px solid #878787;
	padding: 1px;
	vertical-align: middle;
}

option {
	padding: 0 1em 0 0;
}

option.disabled-option {
	color: #aaadae;
}

.rtl option {
	padding: 0 0 0 1em;
}

.radio {
	border: none;
	background-color: #transparent;
}

.radio2 {
	margin: 5px 0 5px 5px;
	border: none;
	background-color: #transparent;
}

.post {
	border-style: solid;
	border-width: 1px;
}

.btnbbcode {
	font-weight: normal;
	font-size: 1.1em;
	cursor: pointer;
	padding: 1px 5px;
	background-color : #638376;
	color : #111111;
	background-image : url('{T_THEME_PATH}/images/bbcode.gif');
	background-repeat: repeat;
	border-top: 1px solid #878787;
	border-left: 1px solid #878787;
	border-bottom: 1px solid #0D1010;
	border-right: 1px solid #0D1010;
	margin-bottom: 3px;
}

.btnmain {
	font-weight: bold;
	cursor: pointer;
	padding: 1px 5px;
	background-color : #638376;
	color : #111111;
	font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif;
	background-image : url('{T_THEME_PATH}/images/buttonbg.gif');
	background-repeat: repeat;
	border-top: 1px solid #878787;
	border-left: 1px solid #878787;
	border-bottom: 1px solid #0D1010;
	border-right: 1px solid #0D1010;
}

.btnlite  {
	font-weight: bold;
	cursor: pointer;
	padding: 1px 5px;
	background-color : #638376;
	color : #111111;
	font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif;
	background-image : url('{T_THEME_PATH}/images/buttonbg.gif');
	background-repeat: repeat;
	border-top: 1px solid #878787;
	border-left: 1px solid #878787;
	border-bottom: 1px solid #0D1010;
	border-right: 1px solid #0D1010;
}

.btnfile {
	font-weight: normal;
	background-color: #ECECEC;
	border: 1px solid #0D1010;
	padding: 1px 5px;
	font-size: 1.1em;
}

.helpline {
	background-color: #181D1D;
	color: #DEE3E7;
	border-style: none;
}


/* BBCode
 ------------ */
.quotetitle, .attachtitle {
	margin: 10px 5px 0 5px;
	padding: 4px;
	border-width: 1px 1px 0 1px;
	border-style: solid;
	border-color: #0D1010;
	color: #608989;
	background-color: #3C4242;
	font-size: 0.85em;
	font-weight: bold;
}

.quotetitle .quotetitle {
	font-size: 1em;
}

.quotecontent, .attachcontent {
	margin: 0 5px 10px 5px;
	padding: 5px;
	border-color: #0D1010;
	border-width: 0 1px 1px 1px;
	border-style: solid;
	font-weight: normal;
	font-size: 1em;
	line-height: 1.4em;
	font-family: "Lucida Grande", "Trebuchet MS", Helvetica, Arial, sans-serif;
	background: #373E3E url('{T_THEME_PATH}/images/qc.gif') top repeat-x;
	color: #C8CCCA;
}

.attachcontent {
	font-size: 0.85em;
}

.codetitle {
	margin: 10px 5px 0 5px;
	padding: 2px 4px;
	border-width: 1px 1px 0 1px;
	border-style: solid;
	border-color: #0D1010;
	color: #608989;
	background-color: #3C4242;
	font-family: "Lucida Grande", Verdana, Helvetica, Arial, sans-serif;
	font-size: 0.8em;
}

.codecontent {
	direction: ltr;
	margin: 0 5px 10px 5px;
	padding: 5px;
	border-color: #0D1010;
	border-width: 0 1px 1px 1px;
	border-style: solid;
	font-weight: normal;
	font-size: 0.85em;
	font-family: Monaco, 'Courier New', monospace;
	background: #373E3E url('{T_THEME_PATH}/images/qc.gif') top repeat-x;
	color: #C8CCCA;
}

.syntaxbg {
	color: #FFFFFF;
}

.syntaxcomment {
	color: #FF8000;
}

.syntaxdefault {
	color: #0000BB;
}

.syntaxhtml {
	color: #000000;
}

.syntaxkeyword {
	color: #007700;
}

.syntaxstring {
	color: #DD0000;
}


/* Private messages
 ------------------ */
.pm_marked_colour {
	background-color: #000000;
}

.pm_replied_colour {
	background-color: #2D3636;
}

.pm_friend_colour {
	background-color: #007700;
}

.pm_foe_colour {
	background-color: #DD0000;
}


/* Misc
 ------------ */
 
hr	{ height: 0px; border: solid #293535 0px; border-top-width: 1px;}

img {
	border: none;
}

.sep {
	color: black;
	background-color: #FFA34F;
}

table.colortable td {
	padding: 0;
}

pre {
	font-size: 1.1em;
	font-family: Monaco, 'Courier New', monospace;
}

.nowrap {
	white-space: nowrap;
}

.username-coloured {

}

User avatar
Kaiser Ikol II
Posts: 222
Joined: Fri Jun 11, 2010 6:45 pm

Re: So, anyone know CSS?

Post by Kaiser Ikol II »

Actually, I think I just got the bar working.

Now, what would be really cool would be if I could get the image to scale. IE if it's 1000*100, and suddenly the screen changes so it only has 900 horizontal pixels, it becomes 900*90. Is there anything that does that?

User avatar
Kaiser Ikol II
Posts: 222
Joined: Fri Jun 11, 2010 6:45 pm

Re: So, anyone know CSS?

Post by Kaiser Ikol II »

Actually, think I've got the image okay too.

Now, what would be REALLY cool would be if I could expand the size of each row in the forum to fit a bigger mango symbol for new topics.

User avatar
Malliki Tosha
Posts: 2516
Joined: Wed Aug 26, 2009 10:43 am

Re: So, anyone know CSS?

Post by Malliki Tosha »

That should be somewhere in the tables section. TR tag, perhaps "height: bla" or something. Can't be arsed to look it up atm. :)
Malliki Tosha
Owner, Mortis Mercatoria FC
Owner, Newport City FC

Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: So, anyone know CSS?

Post by Erik Mortis »

We need Spangle...

But are we gonna be doing anything about the colours?

User avatar
Kaiser Ikol II
Posts: 222
Joined: Fri Jun 11, 2010 6:45 pm

Re: So, anyone know CSS?

Post by Kaiser Ikol II »

I'd like to, but I'm having trouble finding a scheme that looks better. If anyone wants to propose one, let me know. A screenshot of the forum colored in the way you'd like it would be great.

The green on the top no longer bothers me. I'd like to see what it looks like with the links in red instead of green. I don't know what to do about the green text box.

I might just change all the greens to the closest blue, but I dunno how that would go with the background.

Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: So, anyone know CSS?

Post by Erik Mortis »

Yeah. The links are hard to read for me...

User avatar
Malliki Tosha
Posts: 2516
Joined: Wed Aug 26, 2009 10:43 am

Re: So, anyone know CSS?

Post by Malliki Tosha »

I would rather want something in a blue or red tint than this green-gray bleh.
Malliki Tosha
Owner, Mortis Mercatoria FC
Owner, Newport City FC

User avatar
CJ Miller
Posts: 716
Joined: Mon Jan 18, 2010 2:35 pm

Re: So, anyone know CSS?

Post by CJ Miller »

Meh, I like the green-gray bleh.

It's too bad I'm no longer using the phpBB forum, because this would be a good skin for Safiria.

Come to think of it, does anybody know how to convert phpBB skins to SMF?

Erik Mortis
Posts: 7238
Joined: Thu Oct 02, 2003 10:37 pm
Location: County of Monty Crisco
Contact:

Re: So, anyone know CSS?

Post by Erik Mortis »

Is it me, or did the font change to white?

Could we get more contrast for when we're writing messages. I have issues with this black on greenish. maybe a lighter green?

And am I the only one who sees the green go to a darker green halfway down the text area, then go back to the lighter green?

User avatar
Andreas the Wise
Posts: 5253
Joined: Sat Oct 27, 2007 10:41 pm
Location: The Island of Melangia, Atterock, Kildare
Contact:

Re: So, anyone know CSS?

Post by Andreas the Wise »

Kaiser Ikol II wrote:Actually, I think I just got the bar working.

Now, what would be really cool would be if I could get the image to scale. IE if it's 1000*100, and suddenly the screen changes so it only has 900 horizontal pixels, it becomes 900*90. Is there anything that does that?
I strongly suspect that scaling an image automatically is well beyond normal CSS capabilities. Spangle or Ari might be able to do it, though.
The character Andreas the Wise is on indefinite leave.
However, this account still manages:
Cla'Udi - Count of Melangia
Manuel - CEO of VBNC. For all you'll ever need.
Vincent Waldgrave - Lord General of Gralus
Q - Director of SAMIN
Duke Mel'Kat - Air Pirate, Melangian, and Duke of the Flying Duchy of Glanurchy

And references may be made to Vur'Alm Xei'Bôn (a Nelagan Micron of undisclosed purpose).

Ryan
Posts: 1605
Joined: Thu Mar 08, 2001 6:15 pm
Location: The Saran Isles, Yardistan
Contact:

Re: So, anyone know CSS?

Post by Ryan »

Image sizes can be scaled using percentiles for any image tag - simply remove the px tag and replace it with a % tag. However, this does not mean that images will remain proportionately sized; if the screen widens the image will stretch wide as well, but may remain scrunched in height. AFAIK, there's no way to lock height and width into proportion.

The other option is to use spacer images to fill in the blank spots. e.g. Use a block image from the end of the banner than can stretch without distorting and use the percentile tags on that to fill in whatever is blank.
Oh ye who torments me in dreams of dark abysses, beware the sleeping shadow, for it is a bane like no other...
-The Sorcerer of Korgun-Amoth

Post Reply

Return to “Lukedu Center for the Exploding Arts”

Who is online

Users browsing this forum: No registered users and 13 guests