|
Tytuł: wieksze literki w code Wiadomość wysłana przez: cieplutki 29.10.2008 10:33:47 zauwa?y?em ciekaw? rzecz ?e tu na forum tekst w "[kode][/kode]" jest takiej samej wielko?ci jak pozosta?y tekst jak to zrobi? ???
style.css czy w index.template poprosz? o odpowied? ch?tnie zrobi? takie co? u siebie Tytuł: Odp: wieksze literki w code Wiadomość wysłana przez: roco 29.10.2008 12:17:45 Tak.. to co jest na default to lekka siermi?ga i puryzm zarazem.. Nie podoba?o mi sie i wiem ?e ludzie na to narzekali, wi?c poprawi?em.. hehe
A gdzie? Oczywi?cie to plik style.css, niestety ?eby wszystkim dogodzi?, to producenci styli, daj? wsz?dzie procentowe rozmiary czcionek, ale to po to, ?eby jakos wygl?da?o pod ka?d? przegl?dark?.. Nale?y to oczywi?cie i odrazu zmieni? hehe Ale zajmijmy si? quote i code Musisz odnale?? te wpisy u siebie, (bo to z Twoich styli): GeSHi -› Code: [select] /* A quote, perhaps from another post. */ .quote { color: #000000; background-color: #A8BEE6; margin: 1px; padding: 1px; font-size: x-small; font-style: italic; line-height: 1.4em; } /* A code block - maybe even PHP ;). */ .code { color: #000000; background-color: #dddddd; font-family: "courier new", "times new roman", monospace; font-size: x-small; line-height: 1.3em; /* Put a nice border around it. */ border: 1px solid #000000; margin: 1px auto 1px auto; padding: 1px; width: 99%; /* Don't wrap its contents, and show scrollbars. */ white-space: nowrap; overflow: auto; /* Stop after about 24 lines, and just show a scrollbar. */ max-height: 24em; } hmm co tu mo?naby "popsu?" ?? np. dlaczega nie dac zawijania, przecie? to wygodniejsze, a nie ma wp?ywu na sam kod, jedynie to efekt wizualny.. mamy: white-space: nowrap; to dajmy: white-space: pre-line; albo normal, albo wrap, albo pre.. Teraz ten rozmiar fonta, masz tak: font-size: x-small; A ja proponuj? takie rozwi?zanie, no mo?e ?eby nie by?y za du?e wo?y to rozmiar 8pt; jest wystarczaj?cy, jak by by?o ma?o to ustaw 12px; plus do?o?y?bym grubo?? tej czcionki, dla wi?kszej jej wyrazisto?ci, no da?bym ciutk? wi?kszy prze?wit mi?dzy wierszami textu: np: font-size:8pt; font-weight:500; line-height:1.4em; Da?bym równie? w Twoim quote zawijanie okna, a nie ?eby lecia?o po ca?o?ci, w tym wypadku lepiej tak jak w code, tylko zwi?ksz? dziurk? z 24em na 30em. Tu masz ten kawa?ek kodu i spokojnie podmie? u siebie: GeSHi -› Code: [select] /* A quote, perhaps from another post. */ .quote { color: #000000; background-color: #A8BEE6; margin: 1px; padding: 1px; font-size: 8pt; font-weight: 500; font-style: italic; line-height: 1.4em; /* Stop after about 24 lines, and just show a scrollbar. */ max-height: 30em; } /* A code block - maybe even PHP ;). */ .code { color: #000000; background-color: #dddddd; font-family: "courier new", "times new roman", monospace; font-size: 8pt; line-height: 1.4em; font-weight: 500; /* Put a nice border around it. */ border: 1px solid #000000; margin: 1px auto 1px auto; padding: 1px; width: 99%; /* Don't wrap its contents, and show scrollbars. */ white-space: pre-line; overflow: auto; /* Stop after about 24 lines, and just show a scrollbar. */ max-height: 30em; } A tu bez kolorowanki, mo?e skondensowane, b?dzie przyst?pniejsze: Code: [select] /* A quote, perhaps from another post. */ .quote { color: #000000; background-color: #A8BEE6; margin: 1px; padding: 1px; font-size: 8pt; font-weight: 500; font-style: italic; line-height: 1.4em; /* Stop after about 24 lines, and just show a scrollbar. */ max-height: 30em; } /* A code block - maybe even PHP ;). */ .code { color: #000000; background-color: #dddddd; font-family: "courier new", "times new roman", monospace; font-size: 8pt; line-height: 1.4em; font-weight: 500; /* Put a nice border around it. */ border: 1px solid #000000; margin: 1px auto 1px auto; padding: 1px; width: 99%; /* Don't wrap its contents, and show scrollbars. */ white-space: pre-line; overflow: auto; /* Stop after about 24 lines, and just show a scrollbar. */ max-height: 30em; } mam nadziej?, ?e od teraz Twoje code i quote, b?d? pi?kniejsze hehe ;) Pozdrawiam :) roco Tytuł: Odp: wieksze literki w code Wiadomość wysłana przez: cieplutki 29.10.2008 12:28:59 oki zmiana wprowadzona serdeczne dzieki
pozdrawiam |