html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
  margin:0;
  padding:0;
  border:0;
  outline:0;
  font-size:100%;
  vertical-align:baseline;
  background:transparent;
}                  

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section { 
    display:block;
}

nav ul { list-style:none; }

blockquote, q { quotes:none; }

blockquote:before, blockquote:after,
q:before, q:after { content:""; content:none; }

a { margin:0; padding:0; font-size:100%; vertical-align:baseline; background:transparent; }

ins { background-color:#ff9; color:#000; text-decoration:none; }

mark { background-color:#ff9; color:#000; font-style:italic; font-weight:bold; }

del { text-decoration: line-through; }

abbr[title], dfn[title] { border-bottom:1px dotted; cursor:help; }

/* tables still need cellspacing='0' in the markup */
table { border-collapse:collapse; border-spacing:0; }

input, select { vertical-align:middle; }

/* КОНЕЦ RESET CSS */


/* fonts.css из YUI Library: developer.yahoo.com/yui/
   Проценты для размеров шрифтов: developer.yahoo.com/yui/3/cssfonts/

  Меняем три вещи:
   * убираем arial и helvetica из списка шрифтов
   * сами нормализуем стили для моноширинных шрифтов
   * font-size для таблицы был исправлен выше, так что повторять это не нужно
*/
body { font:13px/1.231 sans-serif; *font-size:small; } /* оставляем хак, для точности */  

select, input, textarea, button { font:99% sans-serif; }

/* нормализуем размеры моноширинных шрифтов 
 * en.wikipedia.org/wiki/MediaWiki_talk:Common.css/Archive_11#Teletype_style_fix_for_Chrome
 */
pre, code, kbd, samp { font-family: monospace, sans-serif; }
 

/* 
 * базовые стили (самый минимум)
 */


body, select, input, textarea { 
  /* #444 выглядит лучше черного цвета: twitter.com/H_FJ/statuses/11800719859 */ 
  color: #444; 
  /* укажите ваш базовый шрифт здесь, чтобы он везде был одинаковым */
  /* font-family: Georgia, serif;  */   
}

/* Headers (h1,h2,etc) have no default font-size or margin,
   you&apos;ll want to define those yourself. */ 
h1,h2,h3,h4,h5,h6 { font-weight: bold; }

/* всегда показывайте полосу прокрутки в браузерах отличных от IE */ 
/*html { overflow-y: scroll; }*/

 
/* Делаем фокус доступным (accessible): people.opera.com/patrickl/experiments/keyboard/test */
a:hover, a:active { outline: none; }

a, a:active, a:visited { color: #607890; }
a:hover { color: #036; }


ul, ol { margin-left: 1.8em; }
ol { list-style-type: decimal; }

/* Убераем отступы от навигационных списков */
nav ul, nav li { margin: 0; } 

small { font-size: 85%; }
strong, th { font-weight: bold; }

td, td img { vertical-align: top; } 

sub { vertical-align: sub; font-size: smaller; }
sup { vertical-align: super; font-size: smaller; }

pre { 
  padding: 15px; 
  
  /* www.pathf.com/blogs/2008/05/formatting-quoted-code-in-blog-posts-css21-white-space-pre-wrap/ */
  white-space: pre; /* CSS2 */
  white-space: pre-wrap; /* CSS 2.1 */
  white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */
  word-wrap: break-word; /* IE */
}
 
textarea { overflow: auto; } /* thnx ivannikolic! www.sitepoint.com/blogs/2010/08/20/ie-remove-textarea-scrollbars/ */

.ie6 legend, .ie7 legend { margin-left: -7px; } /* thnx ivannikolic! */

/* выравниваем чекбоксы, радио кнопки и тектовые поля по отношению к их меткам
   by: Thierry Koblentz tjkdesign.com/ez-css/css/base.css  */
input[type='radio'] { vertical-align: text-bottom; }
input[type='checkbox'] { vertical-align: bottom; }
.ie7 input[type='checkbox'] { vertical-align: baseline; }
.ie6 input { vertical-align: text-bottom; }

/* курсор в виде руки для всех кликабельных элементов input */
input[type=button], input[type=submit], button { cursor: pointer; }
 
/* браузеры на webkit добавляют двухпиксельный отступ к элементам формы */  
button, input, select, textarea { margin: 0; }

/* цвета для правильно/неправильно заполненных полей */
input:valid, textarea:valid   {  }
input:invalid, textarea:invalid { 
      border-radius: 1px;
    -moz-box-shadow: 0px 0px 5px red; 
 -webkit-box-shadow: 0px 0px 5px red; 
         box-shadow: 0px 0px 5px red;
}
.no-boxshadow input:invalid, 
.no-boxshadow textarea:invalid { background-color: #f0dddd; }


/* Эти селекторы должны быть разделены
   Убираем text-shadow twitter.com/miketaylr/status/12228805301 
   Плюс: розовенько */
::-moz-selection{ background: #003366; color:#fff; text-shadow: none; }
::selection { background:#003366; color:#fff; text-shadow: none; } 

/*  j.mp/webkit-tap-highlight-color */
a:link { -webkit-tap-highlight-color: #FF5E99; } 

/* исправляем кнопки для IE    
   www.viget.com/inspire/styling-the-button-element-in-internet-explorer/ */
button {  width: auto; overflow: visible; }
 
/* бикубическое изменение размеров для IMG с не-нативными размерами
   code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/ */
.ie7 img { -ms-interpolation-mode: bicubic; }

body { *font-size: 75%; }
pre, code { *font-size: 100%; }
q:before, q:after { content:''; }
input,textarea,select { *font-size: 100%; }
.dijitInline { #zoom: 1; #display: inline; #vertical-align: auto; /* makes TextBox,Button line up w/native counterparts on IE6 */ }
.dijitInputContainer { #zoom: 1; #display: inline; } .dijitInlineTable { #zoom: 1; #display: inline; } 
.dijitRight { #display: inline; /* IE7 sizes to outer size w/o this */ } 
.dijitButtonNode { #vertical-align: auto; } 
.dj_ie .dijitButtonNode { /* ensure hasLayout */ zoom: 1; }
.dijitTextBox { #overflow: hidden; /* #6027, #6067 */ }
.dijitPlaceHolder { #filter: ""; /* make this showup in IE6 after the rendering of the widget */ }
.dijitTextBoxError INPUT.dijitValidationInner, .dijitTextBox INPUT.dijitArrowButtonInner { #text-indent: 0 !important; #letter-spacing: -5em !important; #text-align: right !important; }
.dijit_a11y INPUT.dijitValidationInner, .dijit_a11y INPUT.dijitArrowButtonInner { #text-align: left !important; }
.dijitSpinner .dijitSpinnerButtonContainer .dijitUpArrowButton { #bottom: 50%; /* otherwise (on some machines) top arrow icon too close to splitter border (IE6/7) */ }
.dj_ie .dijitSpinner .dijitArrowButtonInner .dijitInputField { zoom: 50%; /* emulate transform: scale(0.5) */ }
.dj_ie .dijitCheckBoxInput { filter: alpha(opacity = 0); }
.dijit_a11y .dijitCheckBoxInput { filter: none; }
/* #6945: stop mouse events */ .dj_ie .dijitSplitterCover { filter: alpha(opacity = 0); }
.dijitSplitterShadow, .dijitSplitContainerVirtualSizerH, .dijitSplitContainerVirtualSizerV { filter: Alpha(Opacity = 50); -moz-opacity: 0.5; }
.dj_ie6 .dijitTitlePaneContentOuter, .dj_ie6 .dijitTitlePane .dijitTitlePaneTitle { zoom: 1; }
.dj_ie .dijit_a11y .dijitMenuItemDisabled, .dj_ie .dijit_a11y .dijitMenuItemDisabled td, .dj_ie .dijitMenuItemDisabled *, .dj_ie .dijitMenuItemDisabled td { color: gray !important; filter: alpha(opacity = 35); } 
.dijitTabContainerTop-tabs .dijitTab, .dijitTabContainerBottom-tabs .dijitTab { #zoom: 1; /* set hasLayout:true to mimic inline-block */ #display: inline; /* don't use .dj_ie since that increases the priority */ }
.dj_ie .dijitDialogUnderlay { filter: alpha(opacity = 50); }
.dj_ie .dijit_a11y .dijitSliderReadOnly .dijitSliderBar, .dj_ie .dijit_a11y .dijitSliderDisabled .dijitSliderBar { filter: alpha(opacity = 40); }
/* Editor */ .dijitIEFixedToolbar { position: absolute; top: expression(eval((document.documentElement||document.body).scrollTop)); }

.tundra .dijitTreeNode { zoom: 1; }
.dj_ie .tundra .dijitSelectDisabled  .dijitButtonNode * { filter: gray() alpha(opacity = 50); }
.tundra .dijitSelect .dijitButtonContents { #background-image:url("../images/validationInputBg.gif"); }
.tundra .dijitTextBox { #background-image:url('../images/validationInputBg.gif'); }
.tundra .dijitSliderFocused .dijitSliderImageHandleH { #background-image:url("../images/preciseSliderThumbFocus.gif"); }
.tundra .dijitSplitterActive { filter: Alpha(Opacity = 60); -moz-opacity: 0.6; }

.dj_gecko .dijitToolbar .dijitButtonNode::-moz-focus-inner { padding: 0; }
.dijitTextBoxFocused { outline: auto 5px -webkit-focus-ring-color; }
.dijitSplitterH { cursor: ns-resize; }
.dijitSplitterV { cursor: ew-resize; }
.dijitRuleLabelV { text-overflow: ellipsis; }
