Skip to main content
ElkArte 2.0 Beta 1 Started by Spuds · · Read 465 times 0 Members and 2 Guests are viewing this topic.

Re: ElkArte 2.0 Beta 1

Reply #15

Quote from: ahrasis – If I am right, just edit or add your css at the bottom of your custom_dark.css to overwrite default.
100% correct  :smiley:

The gold theme has that fixed menu feature ... to add it to the dark theme edit your custom_dark.css file.  It will be located in themes/default/css/_dark  In that file after the body {} section add (mostly taken from the custom_gold.css).

Code: [Copy]
/* ========================================
   NAVIGATION - FIXED POSITIONING
   ======================================== */

/* Menu nav sticky positioning */
#menu_nav.sticky {
position: fixed;
top: 0;
right: 0;
left: 0;
z-index: 100;
border-top-color: var(--top_section_top_border);
border-bottom-color: var(--top_section_bottom_border);
background-image: linear-gradient(to bottom, var(--top_section), var(--top_section_compliment));
box-shadow: 0 1px 4px var(--opacity30), 0 1px 0 var(--top_section_bottom_border) inset;
}

That should provide what you want.

Re: ElkArte 2.0 Beta 1

Reply #16

By the way, select code, jump the page up, not staying in its place.  :wink:

Re: ElkArte 2.0 Beta 1

Reply #17

I noticed the select jump, also, on my site, so it's not just here.

Re: ElkArte 2.0 Beta 1

Reply #18

Fixed


Re: ElkArte 2.0 Beta 1

Reply #20

At the end of the JS function elkSelectText in script.js ... add return false;

While fixing that, is select even a useful thing now, how about just copy to clipboard instead?

Re: ElkArte 2.0 Beta 1

Reply #21

No need for me to fix, if you do that! :)
That would be so much better.

Re: ElkArte 2.0 Beta 1

Reply #22

Test implemented here (be sure to flush your browser cache for the site)

It will show [Copy] on the code block.  IF your site is not httpS then it will fallback to the old [Select] style as copy to clipboard is not available on insecure sites.

Re: ElkArte 2.0 Beta 1

Reply #23

@Spuds
Tested and works. Great idea.  :cool:
Can you post the changes? Or better yet, if lots of edits, make an addon package?