dolibarr/htdocs/theme/md/dropdown.inc.php

799 lines
17 KiB
PHP
Raw Permalink Normal View History

2019-05-21 10:36:18 +00:00
<?php
2025-02-19 11:25:06 +00:00
/* Copyright (C) 2025 MDW <mdeweerd@users.noreply.github.com>
*/
2021-02-26 12:31:09 +00:00
if (!defined('ISLOADEDBYSTEELSHEET')) {
die('Must be call by steelsheet');
}
2025-06-05 14:12:20 +00:00
include_once DOL_DOCUMENT_ROOT."/core/lib/functions2.lib.php";
// When no photo, we show the login name, so we need an offset to output picto at a fixed position.
$atoploginusername = empty($user->photo) ? 52 : 0;
2025-02-19 11:25:06 +00:00
/**
* @var string $colorbackhmenu1
* @var string $colorbacklinepair1
* @var string $colortextbackhmenu
* @var string $colortextlink
* @var int<0,1> $disableimages
* @var string $left
* @var string $right
*/
'
@phan-var-force string $colorbackhmenu1
@phan-var-force string $colorbacklinepair1
@phan-var-force string $colortextbackhmenu
@phan-var-force string $colortextlink
@phan-var-force int<0,1> $disableimages
@phan-var-force string $left
@phan-var-force string $right
';
2025-04-15 13:25:55 +00:00
$borderradius = getDolGlobalString('THEME_ELDY_USEBORDERONTABLE') ? getDolGlobalInt('THEME_ELDY_BORDER_RADIUS', 6) : 0;
2025-06-05 14:12:20 +00:00
$WIDTHMENUDROPDOWN = 370;
?>
2025-01-13 11:31:08 +00:00
/* IDE Hack <style type="text/css"> */
2019-05-21 10:36:18 +00:00
/*
* Dropdown of user popup
2019-05-21 10:36:18 +00:00
*/
2020-03-11 10:00:57 +00:00
.bookmark-footer a.top-menu-dropdown-link {
2021-02-26 12:31:09 +00:00
white-space: normal;
2022-01-23 01:06:47 +00:00
word-break: break-word;
2020-03-11 10:00:57 +00:00
}
2019-05-21 10:36:18 +00:00
2020-02-29 13:17:06 +00:00
button.dropdown-item.global-search-item {
2021-02-26 12:31:09 +00:00
outline: none;
2020-02-29 13:17:06 +00:00
}
.open>.dropdown-search, .open>.dropdown-bookmark, .open>.dropdown-menu, .dropdown dd ul.open {
2021-02-26 12:31:09 +00:00
display: block;
2020-02-29 13:17:06 +00:00
}
2026-05-17 23:09:26 +00:00
#topmenu-tool a,
2024-10-13 14:38:33 +00:00
#topmenu-global-search-dropdown a.login-dropdown-a,
#topmenu-quickadd-dropdown a.login-dropdown-a,
#topmenu-bookmark-dropdown a.login-dropdown-a,
2026-06-19 12:57:16 +00:00
#topmenu-ai-dropdown a.login-dropdown-a,
2024-10-13 14:38:33 +00:00
#topmenu-uploadfile-dropdown a.login-dropdown-a {
2024-06-19 00:09:59 +00:00
color: var(--colortextbackhmenu);
2019-05-21 10:36:18 +00:00
}
2023-04-06 19:27:06 +00:00
2024-10-13 14:38:33 +00:00
div.login_block_tools > div {
2023-10-01 18:15:01 +00:00
position: fixed;
<?php echo $right; ?>: <?php print !getDolGlobalString('MAIN_OPTIMIZEFORTEXTBROWSER') ? (55 + $atoploginusername) : 85; ?>px;
2023-10-01 18:15:01 +00:00
top: 0px;
}
2024-10-13 14:38:33 +00:00
2023-10-01 18:15:01 +00:00
div#topmenu-login-dropdown {
2021-02-26 12:31:09 +00:00
position: fixed;
2024-11-29 13:44:11 +00:00
<?php echo $right; ?>: 10px;
2021-02-26 12:31:09 +00:00
top: 0px;
}
2024-10-13 14:38:33 +00:00
2020-02-21 16:18:01 +00:00
#topmenu-login-dropdown .dropdown-toggle:after {
display: none;
}
2023-10-01 18:15:01 +00:00
#topmenu-global-search-dropdown .dropdown-menu, #topmenu-quickadd-dropdown .dropdown-menu, #topmenu-bookmark-dropdown .dropdown-menu, #topmenu-login-dropdown .dropdown-menu {
2025-06-05 14:12:20 +00:00
min-width: <?php echo $WIDTHMENUDROPDOWN; ?>px;
max-width: <?php echo $WIDTHMENUDROPDOWN; ?>px;
width: <?php echo $WIDTHMENUDROPDOWN; ?>px;
2020-03-03 15:09:33 +00:00
}
button.dropdown-item.global-search-item {
2021-02-26 12:31:09 +00:00
outline: none;
}
.open>.dropdown-search, .open>.dropdown-quickadd, .open>.dropdown-bookmark, .open>.dropdown-menu{
display: block !important;
}
.dropdown-search {
2021-02-26 12:31:09 +00:00
border-color: #eee;
position: absolute;
top: 100%;
left: 0;
z-index: 1000;
display: none;
float: left;
min-width: 160px;
margin: 2px 0 0;
font-size: 14px;
text-align: left;
list-style: none;
background-color: #fff;
-webkit-background-clip: padding-box;
background-clip: padding-box;
border: 1px solid #ccc;
border: 1px solid rgba(0,0,0,.15);
border-radius: 4px;
box-shadow: 0 6px 12px rgba(0,0,0,.175);
}
.dropdown-bookmark {
2021-02-26 12:31:09 +00:00
border-color: #eee;
position: absolute;
top: 100%;
left: 0;
z-index: 1000;
display: none;
float: left;
min-width: 160px;
margin: 2px 0 0;
font-size: 14px;
text-align: left;
list-style: none;
background-color: #fff;
-webkit-background-clip: padding-box;
background-clip: padding-box;
border: 1px solid #ccc;
border: 1px solid rgba(0,0,0,.15);
border-radius: 4px;
box-shadow: 0 6px 12px rgba(0,0,0,.175);
}
.dropdown-menu {
2021-02-26 12:31:09 +00:00
border-color: #eee;
position: absolute;
top: 100%;
left: 0;
z-index: 1000;
display: none;
float: left;
min-width: 160px;
margin: 2px 0 0;
font-size: 14px;
text-align: left;
list-style: none;
background-color: #fff;
-webkit-background-clip: padding-box;
background-clip: padding-box;
border: 1px solid #ccc;
2025-03-20 23:32:03 +00:00
border: 1px solid rgba(128, 128, 128, .15);
2026-06-19 12:57:16 +00:00
border-radius: 10px;
2021-02-26 12:31:09 +00:00
box-shadow: 0 6px 12px rgba(0,0,0,.175);
}
2026-04-24 12:15:34 +00:00
.ai_dropdown{
margin-top: 14px !important;
margin-left: -2px !important;
}
2022-05-07 17:47:51 +00:00
/* CSS to hide the arrow to show open/close */
2026-06-19 12:57:16 +00:00
div#topmenu-global-search-dropdown, div#topmenu-quickadd-dropdown, div#topmenu-bookmark-dropdown, div#topmenu-ai-dropdown {
2022-05-07 17:47:51 +00:00
padding-right: 2px;
}
2023-04-06 19:27:06 +00:00
div#topmenu-global-search-dropdown a::after, div#topmenu-quickadd-dropdown a::after, div#topmenu-bookmark-dropdown a::after {
2022-05-07 17:47:51 +00:00
display: none;
}
.dropdown-toggle{
2021-02-26 12:31:09 +00:00
text-decoration: none !important;
}
.dropdown-toggle::after {
2021-02-26 12:31:09 +00:00
/* font part */
font-family: "<?php echo getDolGlobalString('MAIN_FONTAWESOME_FAMILY', 'Font Awesome 5 Free'); ?>";
2021-02-26 12:31:09 +00:00
font-size: 0.7em;
2024-08-30 14:47:35 +00:00
line-height: 1.7em;
2021-02-26 12:31:09 +00:00
font-weight: 900;
font-style: normal;
font-variant: normal;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
text-align:center;
text-decoration:none;
margin: auto 3px;
display: inline-block;
content: "\f078";
-webkit-transition: -webkit-transform .2s ease-in-out;
-ms-transition: -ms-transform .2s ease-in-out;
transition: transform .2s ease-in-out;
}
.open>.dropdown-toggle::after {
2021-02-26 12:31:09 +00:00
transform: rotate(180deg);
}
/*
2023-04-06 19:27:06 +00:00
* MENU Dropdown
*/
.login_block.usedropdown .logout-btn{
2021-02-26 12:31:09 +00:00
/* display: none; */
}
.tmenu .open.dropdown, .tmenu .open.dropdown {
2021-02-26 12:31:09 +00:00
background: rgba(0, 0, 0, 0.1);
}
.tmenu .dropdown-menu, .login_block .dropdown-menu {
2021-02-26 12:31:09 +00:00
position: absolute;
right: 0;
<?php echo $left; ?>: auto;
line-height:1.3em;
}
.tmenu .dropdown-menu, .login_block .dropdown-menu .user-body {
2021-02-26 12:31:09 +00:00
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
}
.user-body {
2021-02-26 12:31:09 +00:00
color: #333;
}
.side-nav-vert .user-menu .dropdown-menu {
2021-02-26 12:31:09 +00:00
border-top-right-radius: 0;
border-top-left-radius: 0;
padding: 1px 0 0 0;
border-top-width: 0;
width: 300px;
}
.side-nav-vert .user-menu .dropdown-menu {
2021-02-26 12:31:09 +00:00
margin-top: 0;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.side-nav-vert .user-menu .dropdown-menu > .user-header {
2021-02-26 12:31:09 +00:00
min-height: 100px;
padding: 10px;
text-align: center;
white-space: normal;
}
#topmenu-global-search-dropdown .dropdown-menu{
2021-02-26 12:31:09 +00:00
width: 300px;
max-width: 100%;
}
2024-10-13 14:38:33 +00:00
div#topmenu-global-search-dropdown,
div#topmenu-quickadd-dropdown,
div#topmenu-bookmark-dropdown,
div#topmenu-uploadfile-dropdown,
div#topmenu-login-dropdown {
2024-02-29 01:46:01 +00:00
<?php if ($disableimages) { ?>
line-height: 35px;
<?php } else { ?>
2026-01-02 03:19:06 +00:00
line-height: 49px;
2024-02-29 01:46:01 +00:00
<?php } ?>
}
a.top-menu-dropdown-link {
2021-02-26 12:31:09 +00:00
padding: 8px;
}
.dropdown-user-image {
2021-02-26 12:31:09 +00:00
border-radius: 50%;
vertical-align: middle;
z-index: 5;
height: 90px;
width: 90px;
border: 3px solid;
border-color: transparent;
border-color: rgba(255, 255, 255, 0.2);
max-width: 100%;
max-height :100%;
}
.dropdown-menu > .user-header{
2025-06-05 14:02:31 +00:00
/*background: var(--colorbackhmenu1);
color: var(--colortextbackhmenu);*/
background: #f9f9f9;
color: #000;
}
.dropdown-menu .dropdown-header{
2021-02-26 12:31:09 +00:00
padding: 8px 10px 10px 10px;
}
.dropdown-menu > .user-footer {
2021-02-26 12:31:09 +00:00
background-color: #f9f9f9;
2026-03-07 14:50:31 +00:00
padding: 20px;
}
.user-footer:after {
2021-02-26 12:31:09 +00:00
clear: both;
}
.dropdown-menu > .bookmark-footer{
2021-02-26 12:31:09 +00:00
border-top: 1px solid #f0f0f0;
background-color: #f9f9f9;
padding: 10px;
2022-05-02 19:11:45 +00:00
text-align: start;
}
2025-11-26 13:16:06 +00:00
.dropdown-menu > .user-body {
2026-03-07 14:50:31 +00:00
padding: 20px;
2025-11-26 13:16:06 +00:00
}
.dropdown-menu > .user-body, .dropdown-body{
2021-02-26 12:31:09 +00:00
border-bottom: 1px solid #f4f4f4;
border-top: 1px solid #f0f0f0;
2021-02-26 12:31:09 +00:00
white-space: normal;
}
2025-11-21 18:11:32 +00:00
#top-bookmark-search-nothing-found {
padding: 15px;
display: block;
}
.dropdown-menu > .bookmark-body, .dropdown-body{
2021-02-26 12:31:09 +00:00
overflow-y: auto;
max-height: 60vh ; /* fallback for browsers without support for calc() */
max-height: calc(90vh - 110px) ;
white-space: normal;
}
#topmenu-quickadd-dropdown .dropdown-menu > .bookmark-body, #topmenu-quickadd-dropdown .dropdown-body,
#topmenu-bookmark-dropdown .dropdown-menu > .bookmark-body, #topmenu-bookmark-dropdown .dropdown-body {
2021-02-26 12:31:09 +00:00
max-height: 60vh ; /* fallback for browsers without support for calc() */
max-height: calc(90vh - 200px) ;
}
2019-05-21 10:36:18 +00:00
.dropdown-body::-webkit-scrollbar {
2021-02-26 12:31:09 +00:00
width: 8px;
}
.dropdown-body::-webkit-scrollbar-thumb {
2021-02-26 12:31:09 +00:00
-webkit-border-radius: 0;
border-radius: 0;
/* background: rgb(<?php echo $colorbackhmenu1 ?>); */
background: #aaa;
}
.dropdown-body::-webkit-scrollbar-track {
2021-02-26 12:31:09 +00:00
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
-webkit-border-radius: 0;
border-radius: 0;
}
2026-05-17 23:00:27 +00:00
#topmenu-tool,
2024-10-13 14:38:33 +00:00
#topmenu-login-dropdown,
#topmenu-quickadd-dropdown,
#topmenu-bookmark-dropdown,
#topmenu-global-search-dropdown,
2026-06-19 12:57:16 +00:00
#topmenu-ai-dropdown,
2024-10-13 14:38:33 +00:00
#topmenu-uploadfile-dropdown {
2021-02-26 12:31:09 +00:00
padding: 0 5px 0 5px;
}
#topmenu-login-dropdown a:hover{
2021-02-26 12:31:09 +00:00
text-decoration: none;
}
#topmenuloginmoreinfo-btn, #topmenulogincompanyinfo-btn {
2021-02-26 12:31:09 +00:00
display: block;
2022-05-02 19:11:45 +00:00
text-align: start;
2021-02-26 12:31:09 +00:00
color:#666;
cursor: pointer;
}
#topmenuloginmoreinfo, #topmenulogincompanyinfo {
2021-02-26 12:31:09 +00:00
display: none;
clear: both;
font-size: 0.95em;
}
2022-05-02 19:11:45 +00:00
a.dropdown-item {
text-align: start;
}
2024-09-28 15:05:44 +00:00
.dropdown-item.bookmark-item {
2025-11-21 18:11:32 +00:00
padding-top: 10px;
padding-bottom: 10px;
2024-09-28 15:05:44 +00:00
padding-left: 14px;
padding-right: 14px;
}
.dropdown-item.bookmark-item:before {
width: 20px;
padding-left: 2px;
}
2022-05-02 19:11:45 +00:00
.button-top-menu-dropdown {
2021-02-26 12:31:09 +00:00
display: inline-block;
padding: 6px 12px;
margin-bottom: 0;
font-size: 14px;
font-weight: 400;
line-height: 1.42857143;
text-align: center;
white-space: nowrap;
vertical-align: middle;
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-image: none;
border: 1px solid transparent;
2025-04-15 13:25:55 +00:00
border-radius: <?php echo $borderradius; ?>px;
}
.user-footer .button-top-menu-dropdown {
2021-02-26 12:31:09 +00:00
color: #666666;
box-shadow: none;
border-width: 1px;
background-color: #f4f4f4;
border-color: #ddd;
}
.dropdown-menu a.top-menu-dropdown-link {
2021-02-26 12:31:09 +00:00
color: rgb(<?php print $colortextlink; ?>) !important;
box-shadow: none;
display: block;
margin: 5px 0px;
}
.dropdown-item {
2021-02-26 12:31:09 +00:00
display: block !important;
box-sizing: border-box;
width: 100%;
2021-12-12 22:47:40 +00:00
padding: .3em 1.5em .4em 1em;
2021-02-26 12:31:09 +00:00
clear: both;
font-weight: 400;
color: #212529 !important;
text-align: inherit;
background-color: transparent;
border: 0;
box-shadow: none;
}
.dropdown-item::before {
2021-02-26 12:31:09 +00:00
/* font part */
font-family: "<?php echo getDolGlobalString('MAIN_FONTAWESOME_FAMILY', 'Font Awesome 5 Free'); ?>";
2021-02-26 12:31:09 +00:00
font-weight: 900;
font-style: normal;
font-variant: normal;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
text-align:center;
text-decoration:none;
2021-12-22 19:57:14 +00:00
margin-<?php echo $right; ?>: 5px;
2021-02-26 12:31:09 +00:00
display: inline-block;
content: "\f0da";
color: rgba(0,0,0,0.3);
}
2021-11-23 10:10:16 +00:00
.multicompany-item::before {
content: none !important;
}
2021-12-12 22:47:40 +00:00
.dropdown-item.bookmark-item-external::before {
content: "\f35d";
}
2023-04-06 19:27:06 +00:00
.dropdown-item.active, .dropdown-item:hover, .dropdown-item:hover::before, .dropdown-item:hover span::before, .dropdown-item:focus, .dropdown-item:focus span::before {
2021-02-26 12:31:09 +00:00
color: #<?php echo $colortextbackhmenu; ?> !important;
text-decoration: none;
background: rgb(<?php echo $colorbackhmenu1 ?>);
}
2024-10-17 19:01:20 +00:00
/*
* SELECT FIELDS
*/
li.liinputsearch {
position: sticky;
display: block;
top: 0;
z-index: 1;
2024-10-17 19:01:20 +00:00
}
/*
2023-04-06 19:27:06 +00:00
* SEARCH
*/
2024-10-13 14:38:33 +00:00
#topmenu-global-search-dropdown .dropdown-menu {
width: 310px !important;
}
.dropdown-search-input {
2021-02-26 12:31:09 +00:00
width: 100%;
padding: 10px 35px 10px 20px;
2021-02-26 12:31:09 +00:00
background-color: transparent;
font-size: 14px;
line-height: 16px;
box-sizing: border-box;
2021-02-26 12:31:09 +00:00
color: #575756;
background-color: transparent;
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-size: 16px 16px;
background-position: 95% center;
2025-04-15 13:25:55 +00:00
border-radius: <?php print $borderradius; ?>px;
2021-02-26 12:31:09 +00:00
border: 1px solid #c4c4c2 !important;
transition: all 250ms ease-in-out;
backface-visibility: hidden;
transform-style: preserve-3d;
}
2023-04-06 19:27:06 +00:00
/*
* QUICK ADD
*/
#topmenu-quickadd-dropdown .dropdown-menu {
2024-10-13 14:38:33 +00:00
width: 310px;
2023-04-06 19:27:06 +00:00
color: #444;
}
.quickadd-body.dropdown-body {
padding: unset;
2025-05-06 19:43:52 +00:00
padding-top: 10px;
padding-bottom: 10px;
2023-04-06 19:27:06 +00:00
}
.quickadd-item {
2024-09-28 15:05:44 +00:00
font-size: 1.1em;
padding-top: 8px;
padding-bottom: 8px;
2023-04-06 19:27:06 +00:00
}
.quickadd-item:before {
content: none;
}
.quickadd-header {
color: #444 !important;
}
div.quickadd {
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-align-content: center;
-ms-flex-line-pack: center;
align-content: center;
-webkit-align-items: flex-start;
-ms-flex-align: start;
align-items: flex-start;
}
div.quickadd a {
color: #444;
}
div.quickadd a:hover, div.quickadd a:active {
color: #000000;
}
div.quickaddblock {
width: 95px;
height: 80px;
}
div.quickaddblock:hover,
div.quickaddblock:active,
div.quickaddblock:focus {
background: <?php print $colorbacklinepair1; ?>;
}
2020-03-03 15:09:33 +00:00
/* for the dropdown on action buttons */
.dropdown-holder {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
2025-04-22 17:17:30 +00:00
z-index: 5;
width: 300px;
right:0;
bottom: 0;
transform: translateY(100%);
text-align: <?php echo $left; ?>;
2026-06-29 22:36:56 +00:00
background: #fff;
/* border: 1px solid #bbb; */
border-radius: 6px;
box-shadow: 0 1px 10px rgb(0, 0, 0, 0.3);
}
/* dropdown --up variant */
.dropdown-holder.--up .dropdown-content{
bottom: auto;
top: 0;
transform: translateY(-100%);
}
/* dropdown --left variant */
.dropdown-holder.--left .dropdown-content{
right: auto;
left: 12px;
}
.dropdown-content a {
margin-right: auto !important;
margin-left: auto !important;
}
.dropdown-content .butAction {
background: none;
color: #000 !important;
}
.dropdown-content a:is(.butAction,.butActionDelete,.butActionRefused) {
2023-09-19 19:05:02 +00:00
display: flex;
border-radius: 0;
2023-09-19 19:05:02 +00:00
}
.dropdown-content .butAction:hover {
box-shadow: none;
background-color: var(--butactionbg);
color: var(--textbutaction) !important;
text-decoration: none;
}
.dropdown-content .butActionDelete{
background-color: transparent !important;
color: #633 !important;
}
.dropdown-content .butActionDelete:hover {
box-shadow: none;
background-color: var(--butactiondeletebg) !important;
color: #633 !important;
text-decoration: none;
}
.dropdown-content .butActionRefused {
2023-09-21 23:21:32 +00:00
margin-left: 0;
margin-right: 0;
border: none;
}
.dropdown-holder.open .dropdown-content {
display: block;
}
2024-08-30 15:04:24 +00:00
/** dropdown arrow used to clearly identify parent button of dropdown*/
.dropdown-holder.open .dropdown-content::before {
--triangleBorderSize : 5px;
position: absolute;
content: "";
top: calc(var(--triangleBorderSize) * -1);
right: 12px;
width: 0px;
height: 0px;
border-style: solid;
border-width: 0 var(--triangleBorderSize) var(--triangleBorderSize) var(--triangleBorderSize);
border-color: transparent transparent #ffff transparent;
transform: rotate(0deg);
}
/* dropdown --up variant*/
.dropdown-holder.--up.open .dropdown-content::before{
top: auto;
bottom: calc(var(--triangleBorderSize) * -1);
border-width: 0 var(--triangleBorderSize) var(--triangleBorderSize) var(--triangleBorderSize);
transform: rotate(180deg);
}
/* dropdown --left variant*/
.dropdown-holder.--left.open .dropdown-content::before{
right: auto;
left: 12px;
}
2020-03-03 15:09:33 +00:00
/* smartphone */
@media only screen and (max-width: 767px)
{
2024-10-13 14:38:33 +00:00
div.login_block {
top: unset;
2025-05-12 11:01:47 +00:00
border-right: 1px solid rgba(0, 0, 0, 0.3)
}
2024-10-13 14:38:33 +00:00
.userimg.atoplogin img.userphoto, .userimgatoplogin img.userphoto {
width: 16px;
height: 16px;
}
div#topmenu-login-dropdown {
height: 20px;
line-height: 20px;
}
2024-10-13 14:38:33 +00:00
2023-10-01 18:15:01 +00:00
#topmenu-login-dropdown .dropdown-menu {
min-width: 220px;
max-width: 360px;
}
2024-10-13 14:38:33 +00:00
div.login_block a .atoploginusername {
color: var(--colortextbackvmenu);
}
2025-03-27 13:18:52 +00:00
.dropdown-menu:not(.ai_dropdown) {
border: none;
box-shadow: none;
}
2024-10-13 14:38:33 +00:00
#topmenu-global-search-dropdown a.login-dropdown-a,
2023-02-23 17:42:15 +00:00
#topmenu-quickadd-dropdown a.login-dropdown-a,
2023-10-01 18:15:01 +00:00
#topmenu-bookmark-dropdown a.login-dropdown-a,
2024-10-13 14:38:33 +00:00
#topmenu-login-dropdown a.login-dropdown-a,
#topmenu-uploadfile-dropdown a.login-dropdown-a {
color: var(--colortextbackvmenu);
2020-03-03 15:09:33 +00:00
}
2024-10-13 14:38:33 +00:00
#topmenu-global-search-dropdown .dropdown-menu,
2023-02-23 17:42:15 +00:00
#topmenu-quickadd-dropdown .dropdown-menu,
2023-10-01 18:15:01 +00:00
#topmenu-bookmark-dropdown .dropdown-menu,
2024-10-13 14:38:33 +00:00
#topmenu-login-dropdown .dropdown-menu,
#topmenu-uploadfile-dropdown .dropdown-menu {
width: 100%;
min-width: unset;
2020-03-03 15:09:33 +00:00
}
2024-10-13 14:38:33 +00:00
div.login_block_tools > div {
position: unset;
}
2023-04-06 19:27:06 +00:00
div#topmenu-global-search-dropdown,
2023-02-23 17:42:15 +00:00
div#topmenu-quickadd-dropdown,
2023-10-01 18:15:01 +00:00
div#topmenu-bookmark-dropdown,
2024-10-13 14:38:33 +00:00
div#topmenu-uploadfile-dropdown,
2023-10-01 18:15:01 +00:00
div#topmenu-login-dropdown {
2020-03-03 15:09:33 +00:00
position: unset;
}
2023-02-23 17:42:15 +00:00
div#topmenu-global-search-dropdown,
div#topmenu-quickadd-dropdown,
2024-10-13 14:38:33 +00:00
div#topmenu-bookmark-dropdown,
div#topmenu-uploadfile-dropdown {
2021-02-26 12:31:09 +00:00
line-height: unset;
2020-03-03 15:09:33 +00:00
}
2024-10-13 14:38:33 +00:00
div.login_block_other {
padding-top: 2px;
}
2020-03-03 15:09:33 +00:00
ul.tmenu {
2021-02-26 12:31:09 +00:00
margin-right: 2px;
2020-03-03 15:09:33 +00:00
}
}
2020-12-17 20:11:44 +00:00
@media only screen and (max-width: 320px)
{
.dropdown dd ul {
max-width: 270px; /* must always be 50 slower than width */
}
}
@media only screen and (max-width: 300px)
{
.dropdown dd ul {
max-width: 250px;
}
}
@media only screen and (max-width: 280px)
{
.dropdown dd ul {
max-width: 230px;
}
}
2020-03-03 15:09:33 +00:00
.dropdown-search-input::placeholder {
2022-03-18 13:30:50 +00:00
color: color(#575756);
2021-02-26 12:31:09 +00:00
letter-spacing: 1.5px;
}
.hidden-search-result{
2021-02-26 12:31:09 +00:00
display: none !important;
}