From ee543225e7bbef065073c91092e86f51b79e9c04 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Thu, 4 Feb 2021 15:59:45 +0100 Subject: [PATCH] cosmetic : position inner_box on larger screen --- html/js/card.js | 3 ++- html/style-classic7.css | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/html/js/card.js b/html/js/card.js index 428c38426..d5e334e9d 100644 --- a/html/js/card.js +++ b/html/js/card.js @@ -596,7 +596,8 @@ function fill_ipopcard(obj) if ( nTop > 300 ) { nTop=170; } - var str_top=fixed_position(250,nTop) + var str_top="top:"+calcy(nTop)+"px"; + var str_style=str_top+";width:45em;height:auto;position:absolute"; var popup={'id': content,'cssclass':'inner_box','style':str_style,'html':loading(),'drag':false}; diff --git a/html/style-classic7.css b/html/style-classic7.css index 5b9d1852d..daefc5af6 100644 --- a/html/style-classic7.css +++ b/html/style-classic7.css @@ -917,7 +917,7 @@ div.inner_box { overflow:hidden; z-index:3; position:absolute; - left:10%; + left : 5px; border:1px solid #00008B; -moz-box-shadow: 10px 10px 5px #888; /*! -webkit-box-shadow: 10px 10px 5px #888; */ @@ -933,6 +933,7 @@ div.inner_box { width: 85%; border-radius: 9px; /*! padding: 5px; */ + left:10%; } } div.op_detail_title { @@ -1804,13 +1805,12 @@ li.highlight a,tr.highlight a{ color: inherit; } /******************************************************************************* - * Inner_box on a smaller screen + * Inner_box on a larger screen *******************************************************************************/ @media only screen and (min-width: 1280px) { div.inner_box { - width: 95%; - left:2%; - /*! margin-bottom: 2%; */ + width: 75%; + left:5%; padding-bottom: 10px; } }