CSS top-left quarter circle menu - css-transforms

I've slowly been trying to make a top-left quarter-circle menu using CSS transforms, here is my HTML:
<header>
<ul>
<li>Menu 1</li>
<li>Menu 2</li>
<li>Menu 3</li>
<li>Menu 4</li>
<li>Menu 5</li>
</ul>
</header>
Seems that there are at least three or more things that have to be simultaneously done and I've only got the rough of it. My goal is to make the menus match the area of the black header element as closely as possible.
https://jsfiddle.net/8axqpen4/

Related

How can I overlay the List plugin in RTE

By default AEM add some class as below when I use the ordered list in the RTE.
<ul style="list-style-position: inside;">
<li>Item 1</li>
<li>Item 2</li>
</ul>
I want to change to
<ul class="some class">
<li><font style='some font'>Item 1 </font> </li>
<li><font style='some font'>Item 2 </font> </li>
</ul>
So, for this I looked at the existing implementation here :
/libs/clientlibs/granite/richtext/core/js/plugins/ListPlugin.js/
But I do not understand how AEM is applying default class and where I need to make change.
This happens if you're working on AEM 6.3.
Check on your AEM instance the following lib:
/libs/clientlibs/granite/richtext/core/js/ListUtils.js
check for the following code:
com.addInlineStyles(listDom, {'list-style-position': 'inside'});

Dropdown Sidebar Menu Items in Laravel Backpack

In the Laravel Backpack docs they show an image that appears to have dropdown menus for the sidebar navigation menu, but I can't find anywhere that says how to use them. Is there a built in way or do I have to write my own styles?
In resources/views/vendor/backpack/base/inc/sidebar.blade.php you can add your own menu-items. Using .treeview and .treeview-menu you can make those items expandable:
See also the source code of that image.
<li class="treeview">
<i class="fa fa-key"></i> <span>Roles & Permissions</span> <i class="fa fa-angle-left pull-right"></i>
<ul class="treeview-menu">
<li>
<span>Roles</span>
</li>
<li>
<span>Permissions</span>
</li>
</ul>
</li>
As Oscar Torres pointed out, the new demo source for a nested menu lives here.
Backpack now uses Bootstrap's nav-dropdown class(es) to achieve these results:
<li class="nav-item nav-dropdown">
<a class="nav-link nav-dropdown-toggle" href="#"><i class="nav-icon la la-group"></i> Authentication</a>
<ul class="nav-dropdown-items">
<li class="nav-item"><a class="nav-link" href="{{ backpack_url('user') }}"><i class="nav-icon la la-user"></i> <span>Users</span></a></li>
<li class="nav-item"><a class="nav-link" href="{{ backpack_url('role') }}"><i class="nav-icon la la-group"></i> <span>Roles</span></a></li>
<li class="nav-item"><a class="nav-link" href="{{ backpack_url('permission') }}"><i class="nav-icon la la-key"></i> <span>Permissions</span></a></li>
</ul>
</li>

bxslider change 2 sliders at one click

I am using Bxslider on a tabbed gallery with thumbnails
and it works great. the arrows and the tabs are working perfectly.
this is the JS I am using:
jQuery('#learni-features .bxslider').bxSlider({
mode: 'fade',
useCSS: false,
moveSlides: 1,
pagerCustom: '.tabs-links'
});
and this is the HTML:
this is for the tabs:
<ul class="tabs-links">
<li class="active">Curriculum <br>Control</li>
<li>Interactive <br>Classes</li>
<li>Social <br>Layer</li>
<li>Parent<br> App</li>
<li>Teacher <br>Community</li>
</ul>
and this is for the gallery:
<ul class="bxslider clearfix">
<li>
<img src="uploads/curriculum-screen.png" alt="">
</li>
<li>
<img src="uploads/interactive-screen.png" alt="">
</li>
<li>
<img src="uploads/social-screen.png" alt="">
</li>
<li>
<img src="uploads/parent-screen.png" alt="">
</li>
<li>
<img src="uploads/teacher-community-screen.png" alt="">
</li>
</ul>
I have another floating div with text:
<div class="info">
<ul class="slider2">
<li>
<h3>All Your Learning Tools in One Place</h3>
<p>Access course books, Learnies, assignments and learning assets from one place. Review your past lesson plans and easily answer your students’ questions. Create and begin your new class sessions!</p>
</li>
<li>
<h3>Access course books, Learnies</h3>
<p>Access course books, Learnies, assignments and learning assets from one place. Review your past lesson plans and easily answer your students’ questions. Create and begin your new class sessions!</p>
</li>
<li>
<h3>Create and begin your new class sessions</h3>
<p>Access course books, Learnies, assignments and learning assets from one place. Review your past lesson plans and easily answer your students’ questions. Create and begin your new class sessions!</p>
</li>
</ul>
</div>
this text needs to be also dynamic so when I click either on the tabs or the arrows it will change the text in that box too which basically belongs to each slide (information box). the thing is that this box is outside the "loop" of the slider.
is there a way I can trigger 2 sliders? the main gallery with the images and at the same time the text in the box.
Here is a fiddle I created
Notice the slider is working but there is another div at the bottom with a class of "info" and I want that div to be controlled from the the same main slider and change the text there..
THe button "Schedule a Demo" by the way is a stand alone button and stays there fixed.
any help will be appreciated
Thanks!
Assign your bxSlider to a variable:
var slider = $('#learni-features .bxslider').bxSlider({
mode: 'fade',
useCSS: false,
moveSlides: 1,
pagerCustom: '.tabs-links'
});
Then you can use onSlideNext and onSlidePrev as:
slider.onSlideNext(new function($slideElement, $oldIndex, $newIndex) {
//Your code here.
});
You can find out more information in the bxSlider documents founder here.

GWT adding dynamic menu item to a custom built menu

I have built a menu using the regular html in GWT as show below.
<g:HTMLPanel>
<div id="navigation">
<div id="menuLeft" class="menu">
<ul>
<li>
<g:Anchor ui:field="homeLink" styleName="active"><i class="fa fa-home"></i> Home</g:Anchor>
</li>
<li class="active">
<i class="fa fa-suitcase"></i> Businesses
<ul ui:field="businessesMenu">
<li>
<g:Anchor ui:field="enrollBusiness">Enroll Business </g:Anchor>
</li>
</ul>
</li>
</ul>
.....
as it is rendering the very nicely using css provided. All is well till this point, now comes the requirement; to this I have to add dynamic menu item based on some business logic, which means I have to add more s to the existing menu .
I'm able to build/add dynamic item but not able to add an event handler.
Any help appreciated.
IF you are using Dom to add the dynamic menu, you can refer this for adding click handlers.
you can refer this to add handlers.

Background image in LI not showing up

I'm wanting to put a background image from a class as a list item:
<ul>
<li> Stuff </li>
<li> More Stuff </li>
<li class= "horizdotted" </li>
</ul>
Here's the CSS
.horizdotted {
background-image: url("images/horizdotted.png");
background-repeat:no-repeat;}
This doesn't work in any browser...it appears I have to have at least some info (other than a background image) in the LI. So, I made a png of a white pixel and tried another way:
<ul>
<li> Stuff </li>
<li> More Stuff </li>
<li class= "horizdotted"><img src="images/pixel.png" alt="teeny pixel" /> </li>
</ul>
Same CSS. This worked in Chrome and Firefox, but not in IE. I can't, for the LIFE of me, get it to work in IE. Please help if you can!! Here's an image in Chrome of the second way (with the teeny pixel).
[Stuff, more stuff, dotted line in unordered list] http://www.flickr.com/photos/77703125#N07/8321020892/in/photostream/
set width and height in css
.horizdotted {
background-image: url("images/horizdotted.png");
background-repeat:no-repeat;
width:50px;
height:50px;
}
set this property according to your image size, that you want.
jsFiddle for IE
You need to add content into your li so that it has something to show. Also, you have a syntax error for li in your Question. It is missing a closing bracket > symbol. You also have a blank space after the equal sign for class name too.
HTML:
<ul>
<li> Stuff </li>
<li> More Stuff </li>
<li class="horizdotted">Some stuff to view background.</li>
</ul>
CSS:
.horizdotted {
background-image:url(http://placehold.it/500x17/00ff00);
background-repeat: no-repeat;
}
jsFiddle for IE: No CSS
Also, since it's just a dashed line you want to show, then no CSS is necessary:
HTML:
<ul>
<li> Stuff </li>
<li> More Stuff </li>
<li>-----------------</li>
</ul>