MediaWiki:Common.css: различия между версиями

Материал из Ботвапедии
Перейти к: навигация, поиск
Строка 17: Строка 17:
 
}
 
}
  
/* navigation menu */
+
/* == 10. Horizontal menu Background == */
table.t2 {border-collapse:collapse; border:1px solid grey; margin-top:10px; font-size:80%; text-align:left;}
 
table.t2 th {background:#edb; text-align:right; padding-right:4px; border-right:1px solid grey;}
 
table.t2 td {background:#eee; border-bottom:1px solid grey; padding-left:8px;}
 
  
/* my menu */
+
/*====================
.mn {width:140px; position:relative; z-index:10;}
+
Color Scheme Begin
.mn ul {padding:0; margin:0;}
+
=====================================================================
.mn ul li {position:relative; margin-top:0; margin-bottom:0; border:0;}
+
====================================================================*/
.mn ul li p {margin-top:0; margin-bottom:0; display:block; width:135px; height:18px; text-align:left; font-color:black; font-size:12px; overflow:hidden;}
 
.mn ul li ul {display: none;}
 
.mn ul li ul li ul {display: none;}
 
  
.mn ul li:hover li ul {display: none;}
+
/* Menu bar background color */
.mn ul li:hover p {background:#ef8;}
+
#navigation,
.mn ul li:hover p.title {background:#ccc;}
+
#nav li ul li,
.mn ul li:hover ul {display:block; position:absolute; top:0px; left:128px; width:180px; z-index:11; border-left:2px solid #cba; border-right:2px solid #cba;}
+
#nav li ul li a{
.mn ul li:hover ul li {display:block; width:180px; height:20px; text-align:left; background:#eda;}
+
background: #000;  
.mn ul li:hover ul li p {padding-left:4px; margin-top:0; margin-bottom:0; display:block; text-decoration:none; width:180px; height:20px; text-align:left; font-color:black; background:#eda;}
+
}
.mn ul li:hover ul li:hover p {background:#dca;}
+
 
.mn ul li:hover ul li:hover p.title {background:#ccc;}
+
/* Menu Item text color */
 +
#nav li a,
 +
#nav li a:hover,
 +
#nav li ul li,
 +
#nav li ul li a,
 +
#nav li ul li a:hover {
 +
color: #fff;  
 +
}
 +
 
 +
/* Menu Item background color on hover */
 +
#nav li a:hover,
 +
#nav li ul li a:hover {
 +
background: #FF8C00;  
 +
}
  
.mn ul li:hover ul li:hover ul {display:block; position:absolute; top:0px; left:176px; width:180px; z-index:11; border-left:2px solid #cba; border-right:2px solid #cba; background:#eda;}
+
/* Text Shadow */
.mn ul li:hover ul li:hover ul li {display:block; width:180px; height:20px; text-align:left; background:#eda;}
+
#nav li a,
.mn ul li:hover ul li:hover ul li p {padding-left:4px; margin-top:0; margin-bottom:0; display:block; text-decoration:none; width:180px; height:20px; text-align:left; font-color:black; background:#eda;}
+
#nav li a:hover,
.mn ul li:hover ul li:hover ul li:hover p {background:#dca;}
+
#nav li ul li a:hover {
.mn ul li:hover ul li:hover ul li:hover p.title {background:#ccc;}
+
text-shadow: 0 1px 1px #333;  
 +
}
  
/* table list */
+
/* Search form colors */
span.tl ol {list-style-type:none; padding:0; margin:0; width:100%; background:#eef; border:0}
+
.searchform input, .searchform input:not(:focus){
span.tl ol li {border-bottom:1px solid #ccf; border-right:1px solid #ccf;}
+
color:#B1B1B1; /*search form text color default*/
span.tl ol li:hover {background:#ddf;}
+
background: #fff; /*search form background color default*/
span.tl ol li.ttl {background:#cbe; border-bottom:1px solid grey; border-right:1px solid grey;}
+
}
span.tl ol li.cp {background:#feb; border-right:0;}
+
.searchfield:focus{
 +
color: #000; /* search form text color after click */
 +
}
  
/*Менюшка*/
+
/*=====================================================================
#navBar1{
+
=======================================================================
float:left;
+
Color Scheme End
border:solid 2px #849c92;
+
====================*/
border-radius:13px;
+
 
-moz-border-radius:13px;
+
#menu_div{
-webkit-border-radius:13px;
+
clear: both;
background:-moz-linear-gradient(bottom,#596a63, #829a90);
+
position: relative;
background:-webkit-gradient(linear,left bottom, left top, from(#596a63), to(#829a90));
+
top: 0;
-moz-box-shadow: 2px 5px 7px #161617;
+
left: 0;
box-shadow: 2px 5px 7px #161617;
+
} /* Free space to top specialy for menu */
 +
 
 +
#navigation {
 +
position: fixed;
 +
}
 +
 
 +
#navigation, #menu_div {
 +
width: 100%;
 +
margin: 0 !important;
 +
padding: 0 !important;
 +
}
 +
 
 +
#menu_div, #navigation, #menu, #nav{
 +
height: 45px; /* menu height */
 
}
 
}
#navBar1 ul ul{
+
 
display:none;
+
#menu_div:hover,
 +
#navigation:hover,
 +
#nav li a:hover, #nav li ul a
 +
{
 +
opacity: 0.95;/* Menu transparency on mouse hover*/
 +
}
 +
 
 +
#menu_div,
 +
#navigation,
 +
#nav li a,
 +
#menu_div:not(:hover),
 +
#navigation:not(:hover)
 +
{
 +
opacity: 0.8;/* Menu transparency on mouse out */
 
}
 
}
  
#navBar1 ul {
+
 
 +
#menu {
 +
width: 960px;
 +
margin:0 auto; /*center the menu*/
 
padding:0;
 
padding:0;
 +
position: relative;
 +
}
 +
 +
#nav{
 +
width: 960px;
 
margin:0;
 
margin:0;
 +
padding:0;
 +
position: relative;
 +
font-family: 'Arial', Helvetica, sans-serif;
 +
}
 +
 +
#nav li a,#nav li {
 +
float:left;
 +
}
 +
 +
#nav li {
 
list-style:none;
 
list-style:none;
 
position:relative;
 
position:relative;
 
}
 
}
  
#navBar1 ul li{
+
#nav li a {
 +
line-height: 45px;
 +
padding:0 15px;
 +
text-decoration:none;
 +
margin:0;
 +
font-size:12px;
 +
font-weight:700;
 +
text-transform:uppercase;
 +
}
 +
 
 +
/*====================
 +
Submenu
 +
=====================*/
 +
#nav li ul {
 +
display:none;
 +
position:absolute;
 +
left:0;
 +
top:100%;
 +
padding:0;
 +
margin:0;
 +
} /* hide submenu */
 +
 
 +
#nav li:hover > ul {
 +
display:block;
 +
} /* show submenu on hover */
 +
 
 +
#nav li ul li,#nav li ul li a {
 +
float:none;
 +
height: 35px; /* submenu item height */
 +
min-width: 150px; /* submenu item minimal width */
 +
line-height: 35px;
 +
border-right: 0;
 +
text-shadow: none;
 
display:block;
 
display:block;
float:left;
+
font-size:13px;
padding-top:9px;
+
font-weight:400;
padding-bottom:9px;
+
text-transform:inherit;
 +
} /* Submenu item */
 +
 
 +
#nav li ul li {
 +
_display:inline; /* for IE */
 +
}
 +
 
 +
/* == 12. Sub-Sub Menu == */
 +
#nav li ul li ul {
 +
display:none;
 
}
 
}
#navBar1 ul li span a{
+
 
border-left:solid #8cab9e thin;
+
#nav li ul li:hover ul {
 +
left:100%;
 +
top:0;
 
}
 
}
  
.headerList1 a{
+
/*====================
border-right:solid #505e58 thin;
+
Search form
 +
====================*/
 +
 
 +
.searchform {
 +
position: absolute;
 +
right: 15px;
 +
top: 6px;
 +
display: inline-block;
 +
zoom: 1;
 +
*display: inline;
 +
border: 0;
 +
padding: 0;
 +
}
 +
.searchform input {
 +
font: normal 12px/100% Arial, Helvetica, sans-serif;
 
}
 
}
#navBar1 ul li a{
+
.searchform .searchfield {
display:block;
+
height: 27px;
padding:4px;
+
line-height: 27px;
padding-left:13px;
+
padding-left: 10px;
padding-right:13px;
+
padding-right: 10px;
color:#d1d1d1;
+
width: 150px;
text-decoration:none;
+
border: 2px solid #333;
font-family:Tahoma, Geneva, sans-serif;
+
outline: none;
font-size:80%;
+
-webkit-border-radius: 2em;
 +
-moz-border-radius: 2em;
 +
border-radius: 2em;
 +
-moz-box-shadow: inset 1px 1px 2px #A1A1A1;
 +
-webkit-box-shadow: inset 1px 1px 2px #A1A1A1;
 +
box-shadow: inner 1px 1px 2px #A1A1A1;
 
}
 
}
  
#navBar1 ul li a:hover{  
+
.searchfield:focus{
color:#ffffff;
+
font-weight: 700;
text-decoration:underline;
+
width: 220px;
 
}
 
}
  
#navBar1 ul ul{
+
.searchfield:not(:focus){
position:absolute;
+
width: 150px;
top:42px;
 
background:url(https://wiki.botva.ru/images/0/02/MenuDropBG.png);
 
width:310px;
 
border:thin solid #849c92;
 
font-size:70%;
 
display:none;
 
 
}
 
}
  
#navBar1 ul li:hover ul{
+
 
position:absolute;
+
/*========================
left:60px;
+
Transitions
display:block;
+
========================*/
 +
 
 +
#nav li a:hover,
 +
#nav li ul li a:hover {
 +
-webkit-transition-property:color, background;  
 +
-webkit-transition-duration: 0.5s, 0.5s;  
 +
-webkit-transition-timing-function: linear, ease-out;
 
}
 
}
  
#navBar1 ul ul li{
+
.searchfield:focus,
padding:0;
+
.searchfield:not(:focus){
padding-top:3px;
+
-webkit-transition-property:width;  
padding-bottom:2px;
+
-webkit-transition-duration: 0.5s, 0.5s;  
}
+
-webkit-transition-timing-function: linear, ease-out;
#navBar1 ul ul li a{
 
border:none;
 
color:white;
 
 
}
 
}
 +
 +
#menu_div:hover,
 +
#navigation:hover,
 +
#nav li ul a,
 +
#menu_div,
 +
#navigation,
 +
#nav li a,
 +
#menu_div:not(:hover),
 +
#navigation:not(:hover)
 +
{
 +
-webkit-transition-property:opacity;
 +
-webkit-transition-duration: 0.5s, 0.5s; /* duration in seconds */
 +
-webkit-transition-timing-function: linear, ease-out;
 +
} /* Menu transparency animation */

Версия 09:52, 23 сентября 2013

/** Collapsible tables *********************************************************
 *
 *  Description: Allows tables to be collapsed, showing only the header. See
 *                         http://www.mediawiki.org/wiki/Manual:Collapsible_tables.
 *  Maintainers: [[en:User:R. Koot]]
 */
 
table.collapsed tr.collapsible {
        display: none;
}
 
.collapseButton {               /* 'show'/'hide' buttons created dynamically by the             */
        float: right;           /* CollapsibleTables JavaScript in [[MediaWiki:Common.js]] */
        font-weight: normal;    /* are styled here so they can be customised.             */
        text-align: right;
        width: auto;
}

/* == 10. Horizontal menu Background == */

/*====================
	Color Scheme Begin
=====================================================================
====================================================================*/

/* Menu bar background color */
#navigation, 
#nav li ul li, 
#nav li ul li a{
background: #000; 
}

/* Menu Item text color */
#nav li a, 
#nav li a:hover, 
#nav li ul li,
#nav li ul li a,
#nav li ul li a:hover  {
color: #fff; 
}

/* Menu Item background color on hover */
#nav li a:hover, 
#nav li ul li a:hover  {
background: #FF8C00; 
}

/* Text Shadow */
#nav li a, 
#nav li a:hover, 
#nav li ul li a:hover  {
text-shadow: 0 1px 1px #333; 
}

/* Search form colors */
.searchform input, .searchform input:not(:focus){
color:#B1B1B1; /*search form text color default*/
background: #fff; /*search form background color default*/
}
.searchfield:focus{
color: #000; /* search form text color after click */
}

/*=====================================================================
=======================================================================
	Color Scheme End
====================*/

#menu_div{
clear: both;
position: relative;
top: 0;
left: 0;
} /* Free space to top specialy for menu */

#navigation {
position: fixed;
}

#navigation, #menu_div {
width: 100%;
margin: 0 !important;
padding: 0 !important;
}

#menu_div, #navigation, #menu, #nav{
height: 45px; /* menu height */
}

#menu_div:hover,
#navigation:hover,
#nav li a:hover, #nav li ul a 
{
opacity: 0.95;/* Menu transparency on mouse hover*/
} 

#menu_div,
#navigation, 
#nav li a, 
#menu_div:not(:hover), 
#navigation:not(:hover)
{
opacity: 0.8;/* Menu transparency on mouse out */
}


#menu {
width: 960px;
margin:0 auto; /*center the menu*/
padding:0;
position: relative;
}

#nav{
width: 960px;
margin:0;
padding:0;
position: relative;
font-family: 'Arial', Helvetica, sans-serif;
}

#nav li a,#nav li {
float:left;
}

#nav li {
list-style:none;
position:relative;
}

#nav li a {
line-height: 45px;
padding:0 15px;
text-decoration:none;
margin:0;
font-size:12px;
font-weight:700;
text-transform:uppercase;
}

/*====================
	Submenu 
=====================*/
#nav li ul {
display:none;
position:absolute;
left:0;
top:100%;
padding:0;
margin:0;
} /* hide submenu */

#nav li:hover > ul {
display:block;
} /* show submenu on hover */

#nav li ul li,#nav li ul li a {
float:none;
height: 35px; /* submenu item height */
min-width: 150px; /* submenu item minimal width */
line-height: 35px;
border-right: 0;
text-shadow: none;
display:block;
font-size:13px;
font-weight:400;
text-transform:inherit;
} /* Submenu item */

#nav li ul li {
_display:inline; /* for IE */
}

/* == 12. Sub-Sub Menu == */
#nav li ul li ul {
display:none;
}

#nav li ul li:hover ul {
left:100%;
top:0;
}

/*====================
	Search form 
====================*/

.searchform {
position: absolute;
right: 15px;
top: 6px;
display: inline-block;
zoom: 1;
*display: inline;
border: 0;
padding: 0;
}
.searchform input {
font: normal 12px/100% Arial, Helvetica, sans-serif;
}
.searchform .searchfield {
height: 27px;
line-height: 27px;
padding-left: 10px;
padding-right: 10px;
width: 150px;
border: 2px solid #333;
outline: none;
-webkit-border-radius: 2em;
-moz-border-radius: 2em;
border-radius: 2em;
-moz-box-shadow: inset 1px 1px 2px #A1A1A1;
-webkit-box-shadow: inset 1px 1px 2px #A1A1A1;
box-shadow: inner 1px 1px 2px #A1A1A1;
}

.searchfield:focus{
font-weight: 700;
width: 220px;
}

.searchfield:not(:focus){
width: 150px;
}


/*========================
		Transitions
========================*/

#nav li a:hover,
#nav li ul li a:hover  {
-webkit-transition-property:color, background; 
-webkit-transition-duration: 0.5s, 0.5s; 
-webkit-transition-timing-function: linear, ease-out;
}

.searchfield:focus,
.searchfield:not(:focus){
-webkit-transition-property:width; 
-webkit-transition-duration: 0.5s, 0.5s; 
-webkit-transition-timing-function: linear, ease-out;
}

#menu_div:hover,
#navigation:hover,
#nav li ul a, 
#menu_div,
#navigation, 
#nav li a, 
#menu_div:not(:hover), 
#navigation:not(:hover)
{
-webkit-transition-property:opacity; 
-webkit-transition-duration: 0.5s, 0.5s; /* duration in seconds */
-webkit-transition-timing-function: linear, ease-out;
} /* Menu transparency animation */