Smf2.1 Menu Sass Css halinde kullanılması

Başlatan cee山, 24 Ekm 2017 15:29

« önceki - sonraki »

0 Üyeler ve 2 Ziyaretçiler konuyu incelemekte.

*

  1. 1,197

  2. 120

  3. 401

Daha hızlı kullanılması amacıyla bu hale geldi.Sass ile ilgili yükleme ve daha fazla bilgi için : http://sass-lang.com/install 
K.gelsin

.dropmenu {
position: relative;
box-sizing: border-box;
.generic_icons, img {
/* This is a small fix for dropmenu icons */
margin: -3px 8px 0 0;
vertical-align: middle;
}
li{
/* Level 1 button background. */
display: inline-block;
margin: 0 2px 0 1px;
padding: 0 0 0.3em 0;
font-size: 0.9em;
line-height: 1.9em;
strong {color: #333;}
&:hover ul {
/* Reposition Level 2 submenu as visible on hover. */
display: block;
}
/* Needed for new PM notifications. */
.active .amt{background: none;color: inherit;}
a {
padding: 0 7px 0 7px;
margin: 0;
display: block;
border: 1px solid transparent;
border-radius: 4px;
&.active {
/* Level 1 active button. */
background: orange;
color: #fff;
font-weight: bold;
border: 1px solid #f49a3a;
box-shadow: 0 5px 5px rgba(255,255,255,0.2) inset;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}
}
a:hover, &:hover a, a:focus {
/* Level 1 hover effects. */
background: #597b9f;
border: 1px solid #4a6b8c;
color: #fff;
cursor: pointer;
text-decoration: none;
box-shadow: 0 4px 4px rgba(255,255,255,0.1) inset;
text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.5);
}
a.active:hover, &:hover a.active {
/* Level 1 active button. */
background: orange;
border: 1px solid #f49a3a;
color: #444;
box-shadow: 0 5px 5px rgba(255,255,255,0.2) inset;
text-shadow: none;
}
ul {
/* Levels 2 and 3 submenu wrapper. */
z-index: 90;
position: absolute;
display: none;
width: 18.2em;
padding: 0.5em;
font-weight: normal;
border: solid 1px #999;
border-left: solid 1px #bbb;
border-top: solid 1px #ccc;
border-radius: 4px;
box-shadow: 3px 3px 4px rgba(0,0,0,0.3);
background: #FFFFFF;
ul{
/* Level 3 submenu wrapper positioning. */
margin: -2em 0 0 15.3em;
}
}
li {
/* Level 2 link background. */
margin: 0;
padding: 0;
width: 17em;
font-size: 1em;
border-radius: 3px;
border: 1px solid transparent;
&:hover ul, ul {
/* Reposition as visible on hover. */
left: -14px;
}
&:hover{border:none;}
a>img {
vertical-align: middle;
}
&:hover, a:focus, a:hover{
color: #333;
text-decoration: none;
border: 1px solid #cfcfcf;
border-top: 1px solid #d4dee6;
}
/* Level 3 maintains font-size the same as Level 2. */
li {
a {
font-size: 1em;
}
}
&.subsections > a::after {
position: absolute;
padding: 5px 0;
right: 10px;
font: 83.33%/150% Arial, sans-serif;
content: '\25ba';
}
a.chosen {
font-weight: bold;
}
}
&:hover li a, li a {
/* Necessary to allow highlighting of 1st level while hovering over submenu. */
background: none;
padding: 0 9px;
color: #346;
border: none;
line-height: 2.2em;
}
&:hover ul ul, ul ul, &:hover ul ul ul, ul ul ul {
/* Hiding Level 3 submenu off hover. */
left: -9999px;
}
ul, li:hover,li:hover>a,li a:focus,li a:hover {
background: #FFFFFF; /* fallback for some browsers */
background-image: linear-gradient(to bottom, #E2E9F3 0%, #FFFFFF 70%);
}
}
ul{
a:focus,ul a:focus{
/* Note: The next declarations are for keyboard access with js disabled. */
margin-left: 9990px;
border: none;
width: 17em;
}
ul{
a:focus {
margin-left: 19950px;
}
}
li{
&:hover a:focus, a:focus{
/* Cancel those for hover and/or js access. */
margin-left: 0;
width: auto;
}
}

}
}


Benzer Konular (5)


MENU ×