Не нравятся результаты поиска? Попробуйте другой поиск!
DLE FAQ » Все вопросы » Шаблоны (TPL) » Как изменить размер шрифта в новости по умолчанию с 12 на 14?

Как изменить размер шрифта в новости по умолчанию с 12 на 14?


     24.02.2019    новости, размер шрифта    Шаблоны (TPL), Стили (CSS), Общие вопросы по PHP    1423

вопрос
Всем привет! Очень нужно изменить размер шрифта в новости , чтобы по умолчанию было не 12 как сейчас а 14. надоело каждый раз менять размер при написании / копировании статей. В каком файле движка меняется этот параметр?
Как изменить размер шрифта в новости по умолчанию с 12 на 14?

Ответа пока нет


8 комментариев

OuteerMan
Юзер

OuteerMan - 24 февраля 2019 18:02 -

Это не файлы движка это файл плагина /engine/editor/jscripts/froala/editor.js 25 строка, параметр fontSizeDefaultSelection

Но, это всё править нету смысла так как вам таки придётся всё ровно кликать на это. Ведь при наборе текста к нему по умолчанию не применяется никакое форматирование. Тексту устанавливается размер через css правила font-size в css файлах шаблона. Меняйте там с 12 на 14.

SergeyZ
Юзер

SergeyZ - 24 февраля 2019 21:11 -

Я менял там ранее, меняется просто шрифт в категориях и еще где то, а в новости остается как было.. Может не то менял?!! Вот кусок из style.css
html, body {margin:0;height:100%;font-family:Arial;font-size:11px;color:#000000;background:#000000 url(../images/fon_1.png) no-repeat center 147px;}
#wrapper {height:auto !important;height:100%;min-height:100%;}
#container {margin:0 auto;width:1000px;background:#f7f8fa url(../images/container.gif) repeat-x;}
#header {}
#left {float:left;width:261px;padding:15px 0 5px 18px;}
#right {margin-left:286px;padding:13px 0 5px 0;}
#spacer {}
#footer {margin:0 auto;width:1000px;}
.clear {clear:both;}



/* mozilla-fix */
a, img, input {outline:none;border:none;}

/* header */
.header1 {background:url(../images/header1.png) repeat-x;height:160px;margin-bottom:252px;}
.header2 {background:url(../images/header2.gif) repeat-x bottom;margin:0 auto;width:1020px;}
.header3 {background:url(../images/header3.gif) no-repeat bottom right;}
.header4 {background:url(../images/header4.png) no-repeat bottom left;}
.header5 {background:url(../images/banner_bg.gif) no-repeat 458px 0;height:147px;}
.header_banner {width:468px;height:60px;float:right;margin-top:15px;}
.logo {padding:38px 0 0 32px;}
.logo_link {display:block;width:255px;height:55px;cursor:pointer;}
.head_links {float:right;padding:15px 25px 0 17px;}
.head_link1 {background:url(../images/head_link1.gif) no-repeat;width:19px;height:18px;display:block;cursor:pointer;margin-bottom:4px;}
.head_link1:hover {background-position:0 -18px;}
.head_link2 {background:url(../images/head_link2.gif) no-repeat;width:19px;height:18px;display:block;cursor:pointer;margin-bottom:4px;}
.head_link2:hover {background-position:0 -18px;}
.head_link3 {background:url(../images/head_link3.gif) no-repeat;width:19px;height:18px;display:block;cursor:pointer;}
.head_link3:hover {background-position:0 -18px;}
.rek_link {float:right;margin:29px 45px 0 0;opacity:0.85;-moz-opacity:0.85;filter:alpha(opacity=85);}
.rek_link:hover {opacity:1;-moz-opacity:1;filter:alpha(opacity=100);}

/* content header container */
.header6 {background:url(../images/header6.png) no-repeat top right;margin:0 auto;width:1000px;}
.header7 {background:url(../images/header5.gif) repeat-x;margin:0 12px 0 12px;}
.header8 {background:url(../images/header7.png) no-repeat;margin-left:-12px;height:119px;}

/* header navigation */
.menubar {margin:16px 0 0 23px;}
ul.menu {list-style:none;margin:0;padding:0;}
ul.menu * {margin:0;padding:0;}
ul.menu a {display:block;text-decoration:none;}
ul.menu li {position:relative;float:left; opacity:0.98;-moz-opacity:0.98;filter:alpha(opacity=98);}
ul.menu ul {position:absolute;top:36px;left:5px;background:url(../images/sublinks_bot.png) no-repeat bottom;display:none;list-style:none;}
ul.menu ul li {position:relative;border-top:none;width:219px;margin:0;}
ul.menu ul li a {display:block;padding:7px 0px 8px 9px;background:url(../images/sublink_a.gif) repeat-x;color:#b2b2b0;font-weight:bold;text-transform:uppercase;}
ul.menu ul li a:hover {background:url(../images/sublink_a.gif) repeat-x 0 -29px;color:#FFF;}
ul.menu ul ul {left:148px;top:-1px;}
ul.menu .menuhover {color:#ffb900;background:url(../images/menu_top.gif) no-repeat 0 -36px;}
ul.menu .menuhover:hover {color:#ffb900;background:url(../images/menu_top.gif) no-repeat 0 -36px;}
ul.menu .menuhover span {background:url(../images/menu_top2.gif) no-repeat right -36px;padding-right:17px;margin-right:-16px;}
ul.menu .menuhover:hover span {background:url(../images/menu_top2.gif) no-repeat right -36px;}
.menu_top {text-decoration:none;font-weight:bold;text-transform:uppercase;}
.menu_top a {display:block;float:left;color:#3f3f3f;background:url(../images/menu_top2.gif) top right no-repeat;padding-right:16px;outline:none;}
.menu_top a span {display:block;line-height:13px;background:url(../images/menu_top.gif) no-repeat;padding:10px 1px 13px 17px;}
.menu_top a:hover {background-position:100% -36px;}
.menu_top a:hover span {background-position:0% -36px;color:#ffb900;}

/* search */
.search_bg {background:url(../images/search_bg.gif) no-repeat;float:right;padding:20px 0 0 0;margin:1px 6px 0 0;width:502px;}
.search_field {color:#d4e1e9;font-size:11px;width:436px;height:14px;background-color:transparent;margin:0 0 17px 12px;}
.search_btn {background:url(../images/search_btn.gif) no-repeat;width:45px;height:25px;margin-bottom:-9px;}
.search_btn:hover {background-position:0 -25px;}
.search_link {color:#96d0e8;}
.search_link:hover {color:#d4e1e9;}

/* autorisation */
.login {float:left;width:279px;padding:22px 0 0 24px;}
.auotoriz_bg {background:url(../images/auotoriz_bg.gif) repeat-x;}
.a_field {color:#764210;font-size:10px;width:114px;height:11px;margin:7px 13px 7px 9px;background-color:transparent;}
.login_btn {background:url(../images/login_btn.gif) no-repeat;width:44px;height:26px; float:right; margin:4px 4px 0px 0;}
.login_btn:hover {background-position:0 -26px;}
.auotoriz_links {color:#565656;float:left;padding:7px 0 0 5px;}
.auotoriz_links a {color:#565656;text-decoration:none;}
.auotoriz_links a:hover {text-decoration:underline;}
.login_ava {width:45px;border:1px solid #c4c4c4;float:left;margin:2px 7px 0 2px;}
.login1 {float:left;line-height:16px;padding:1px 14px 0 0;}
.login1 a {color:#666666;}
.login1 a:hover {color:#df9a0e;}
.login2 {height:48px;line-height:16px;padding:1px 0 0 0; margin-bottom:-23px;}
.login2 a {color:#666666;}
.login2 a:hover {color:#df9a0e;}

Кусок из engine.css
.selectmass input { float: right; margin-left: 6px; }
.mass_comments_action { text-align: right; }
.instagram-media, .twitter-tweet {display: inline-block !important;}
/*---Информационное окно загрузки AJAX---*/
#loading-layer { display: none; font-size: 11px; background: #2e83d7; padding: 10px; text-align: center; color: #fff; }

/*---Цитата и скрытый текст---*/
.scriptcode, .title_quote,
.quote, .title_spoiler, .text_spoiler { padding: 5px; background: #f9fafa; border: 1px solid #dce7e7; }
.title_quote, .title_spoiler { background: #f9fafa; }

.title_quote { border-bottom: 0; font-weight: bold; }
.scriptcode { color: #004e8d; text-align: left; font-family: "Courier New"; }
.title_spoiler { font-weight: bold; }
.text_spoiler { border-top: 0; text-align: justify; }

.hide { background-color: #e8f3fa; padding: 5px; color: #3a78a5; margin: 0 0 1em; 0; }
.hide a { text-decoration: underline; } .hide a:hover { text-decoration: none }
.inhide { border: 1px solid #d1e3ef; padding: 5px; background-color: #fff; margin-bottom: 5px; }

/*---Календарь---*/
.calendar { width: 100%; }
.calendar td, .calendar th { padding: 5px 0; vertical-align: middle; text-align: center; }
.weekday-active-v, .day-active-v, .weekday-active, .day-active { font-weight: bold; }
.weekday { color: #b270ce; }
th.workday, th.weekday { background-color: #f4f8fa; }
.monthselect { font-size: 1.15em; }

.day-current { background-color: #3f4b51; color: #fff; }
.day-current a { color: #fff; }

/*---Лучшие пользователи---*/
.userstop td, .pm td.pm_list, .pm td.pm_head { border: 1px solid #d8d8d8; padding: 2px; background-color: #fff; }
.userstop thead td, .pm td.pm_head { font-size: 0.9em; background: #fff url("../images/bbcodes.png") repeat-x 0 100%; height: 22px; padding: 0; font-weight: bold; text-align: center; color: #4e4e4e; }

/* ==================== Рейтинг */
.rating { width: 85px; height: 17px; font-size: 0.9em; }

OuteerMan
Юзер

OuteerMan - 24 февраля 2019 22:23 -

Воздействуйте на определённый класс или id объекта и присваивайте ему нужный размер шрифта.
.nameClass {font-size:14px}

или
#nameId {font-size:14px}

Зачем тут кому-то ваши css файлы ?)

SergeyZ
Юзер

SergeyZ - 25 февраля 2019 16:10 -

Я там уже все перерыл и переменял, ничего не изменяется... куш разумеется везде чистил, проверял с разных браузеров... Что может быть не так??

OuteerMan
Юзер

OuteerMan - 25 февраля 2019 18:16 -

Покажите как вы устанавливали стиль ?
На примере default шаблона и стандартных классов для блоков
.fullstory, .shortstory {font-size:14px;}

или
.fullstory, .shortstory {font-size:14px !important;}

SergeyZ
Юзер

SergeyZ - 25 февраля 2019 19:47 -

В styles.css У меня только эти строки:
/* shortstory */
.short_top1 {background:url(../images/short_top1.gif) repeat-x;}
.short_top2 {background:url(../images/short_top2.jpg) no-repeat;}
.short_top3 {background:url(../images/short_top3.jpg) no-repeat top right;}
.short_title {font-size:14px;color:#FFF;padding:28px 0 30px 33px;}
.short_title a {color:#FFF;text-decoration:none;}
.short_title a:hover {text-decoration:underline;}
.short_author {color:#686868;padding:5px 0 10px 20px;}
.short_author span {color:#dfdfdf;}
.short_author a {color:#0776A0;font-weight:bold;text-decoration:none;}
.short_author a:hover {text-decoration:underline;}
.short_story {display:block;overflow:hidden;padding:11px 19px 12px 19px;}
.short_story a {color:#4169E1;text-decoration:none;}
.short_story a:hover {text-decoration:underline;}
.short_bot {background:url(../images/short_bot.gif) repeat-x;margin:0 1px 0 1px; height:53px;}
.link_category1 {background:url(../images/link_category1.gif) repeat-x;float:right;margin:7px 9px 0 0;}
.link_category2 {background:url(../images/link_category2.gif) no-repeat;}
.link_category3 {background:url(../images/link_category3.gif) no-repeat top right;height:40px;line-height:40px;padding:0 22px 0 41px;}
.link_category3 a {color:#ffb900;font-weight:bold;text-decoration:none;}
.link_category3 a:hover {text-decoration:underline;}
.full_link {background:url(../images/full_link.jpg) no-repeat;width:110px;height:29px;margin:10px 0 0 20px;}
.full_link:hover {background-position:0 -29px;}
.back_link {background:url(../images/back_link.jpg) no-repeat;width:110px;height:29px;margin:10px 0 0 20px;}
.back_link:hover {background-position:0 -29px;}
.info1 {margin:4px 0 22px 19px;}
.info {background:#f8f7f3;border:1px solid #e9e7e4;width:648px;}
.info_top {background:url(../images/info_top.gif) no-repeat;margin:-1px;}
.info_bot {background:url(../images/info_bot.gif) no-repeat bottom;padding:7px 10px 13px 92px;color:#505050;}
.info_bot a {color:#d4981a;}
.info_bot a:hover {text-decoration:none;}
.info_telek {background:url(../images/info_telek.png) no-repeat right;width:90px;height:88px;position:relative;margin-bottom:-60px;}

SergeyZ
Юзер

SergeyZ - 27 февраля 2019 11:48 -

Вижу помощи не дождаться...

OuteerMan
Юзер

OuteerMan - 27 февраля 2019 18:23 -

Вам были даны ответы, вы их совсем не понимаете.

Больше ничем помочь не могу. Да и это касается всего на свете, если вы не понимаете Вам никакие ответы не помогут.

На этом сайте Вы найдете всю необходимую информацию и примеры для различных махинаций.
http://htmlbook.ru/css
http://htmlbook.ru/samcss/klassy
http://htmlbook.ru/css/font-size

Чтобы комментировать - войдите или зарегистрируйтесь на сайте

Похожие вопросы

наверх