mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 13:02:15 +09:00
Fix member menu width
This commit is contained in:
parent
cabcdbdb66
commit
8aaae59b80
2 changed files with 18 additions and 12 deletions
|
|
@ -1,15 +1,20 @@
|
||||||
$(function() {
|
$(function() {
|
||||||
if($('.layout_menu>ul>li:first-child').width() > 50) {
|
|
||||||
$('.layout_menu>ul>li:first-child .layout_dropdown-content, .layout_menu>ul>li:first-child .layout_dropdown-content a').css('width', $('.layout_menu>ul>li:first-child').width()).css('min-width', $('.layout_menu>ul>li:first-child').width());
|
|
||||||
}
|
|
||||||
$( window ).resize(function() {
|
|
||||||
if($('.layout_menu>ul>li:first-child').width() > 50) {
|
|
||||||
$('.layout_menu>ul>li:first-child .layout_dropdown-content, .layout_menu>ul>li:first-child .layout_dropdown-content a').css('width', $('.layout_menu>ul>li:first-child').width()).css('min-width', $('.layout_menu>ul>li:first-child').width());
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
var menu_width = function() {
|
||||||
|
if($('.layout_menu>ul>li:first-child').width() > 50) {
|
||||||
|
$('.layout_menu>ul>li:first-child .layout_dropdown-content, .layout_menu>ul>li:first-child .layout_dropdown-content a').css('width', $('.layout_menu>ul>li:first-child').width()).css('min-width', $('.layout_menu>ul>li:first-child').width());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$( window ).resize(function() {
|
||||||
|
if($('.layout_menu>ul>li:first-child').width() > 50) {
|
||||||
|
menu_width();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
menu_width();
|
||||||
|
|
||||||
var toggles = document.querySelectorAll(".layout_mobile_menu");
|
var toggles = document.querySelectorAll(".layout_mobile_menu");
|
||||||
|
|
||||||
for (var i = toggles.length - 1; i >= 0; i--) {
|
for (var i = toggles.length - 1; i >= 0; i--) {
|
||||||
|
|
@ -27,6 +32,7 @@ $( window ).resize(function() {
|
||||||
obj.classList.remove("is-active");
|
obj.classList.remove("is-active");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
$('.layout_menu>ul>li:first-child .layout_dropdown-content, .layout_menu>ul>li:first-child .layout_dropdown-content a').css('width', '').css('min-width', '');
|
||||||
var targetMenu = $(obj).attr('data-target');
|
var targetMenu = $(obj).attr('data-target');
|
||||||
$('#' + targetMenu).slideDown('300');
|
$('#' + targetMenu).slideDown('300');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -217,8 +217,8 @@ body {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 14px 16px;
|
padding: 14px 16px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.layout_menu li.active>a {
|
.layout_menu li.active>a {
|
||||||
|
|
@ -447,7 +447,7 @@ body {
|
||||||
position: relative;
|
position: relative;
|
||||||
background-color: lighten($grey, 35%);
|
background-color: lighten($grey, 35%);
|
||||||
color: layoutGrayContrast(lighten($grey, 35%), 0.710);
|
color: layoutGrayContrast(lighten($grey, 35%), 0.710);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-width: 100%;
|
min-width: 100%;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue