-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added two themes + minified versions - Fixed bug, where you could hover over the place where a submenu would be and it would be displayed
- Loading branch information
1 parent
b5ce944
commit 734851a
Showing
6 changed files
with
214 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
.cm_container{ | ||
position: fixed; | ||
opacity: 0; | ||
transform: scale(0); | ||
transition: transform 0.1s; | ||
transform-origin: top left; | ||
padding: 0; | ||
} | ||
|
||
.cm_container.display{ | ||
opacity: 1; | ||
transform: scale(1); | ||
} | ||
|
||
.cm_container, .cm_container *{ | ||
box-sizing: border-box; | ||
} | ||
|
||
.cm_container *{ | ||
position: relative; | ||
} | ||
|
||
.cm_container ul{ | ||
list-style-type: none; | ||
padding: 0; | ||
margin: 0; | ||
background-color: #2d2d2d; | ||
box-shadow: 0 0 5px #000000; | ||
border-radius: 1px; | ||
} | ||
|
||
.cm_container li{ | ||
padding: 5px 10px; | ||
padding-right: 1.7em; | ||
cursor: pointer; | ||
white-space: nowrap; | ||
color: #ccc; | ||
} | ||
|
||
.cm_container li:hover{ | ||
background-color: #242424; | ||
} | ||
|
||
.cm_container li .cm_icon_span{ | ||
width: 1.5em; | ||
height: 1.2em; | ||
vertical-align: bottom; | ||
display: inline-block; | ||
margin-right: 5px; | ||
padding-right: 5px; | ||
text-align: center; | ||
} | ||
|
||
.cm_container li .cm_sub_span{ | ||
width: 1em; | ||
display: inline-block; | ||
text-align: center; | ||
position: absolute; | ||
top: 50%; | ||
right: 0.5em; | ||
transform: translateY(-50%); | ||
} | ||
|
||
.cm_container li > ul{ | ||
position: absolute; | ||
top: 0; | ||
left: 100%; | ||
opacity: 0; | ||
transition: opacity 0.2s; | ||
visibility: hidden; | ||
} | ||
|
||
.cm_container li:hover > ul{ | ||
opacity: 1; | ||
visibility: visible; | ||
} | ||
|
||
.cm_container li.cm_divider{ | ||
border-bottom: 1px solid #aaa; | ||
margin: 5px; | ||
padding: 0; | ||
cursor: default; | ||
} | ||
|
||
.cm_container li.cm_divider:hover{ | ||
background-color: inherit; | ||
} | ||
|
||
.cm_container.cm_border_right > ul ul{ | ||
left: -100%; | ||
} | ||
|
||
.cm_container.cm_border_bottom > ul ul{ | ||
top: unset; | ||
bottom: 0; | ||
} | ||
|
||
.cm_container li[disabled=""]{ | ||
color: #777; | ||
cursor: default; | ||
} | ||
|
||
.cm_container li[disabled=""]:hover{ | ||
background-color: inherit; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
.cm_container{ | ||
position: fixed; | ||
opacity: 0; | ||
transform: scale(0); | ||
transition: transform 0.1s; | ||
transform-origin: top left; | ||
padding: 0; | ||
} | ||
|
||
.cm_container.display{ | ||
opacity: 1; | ||
transform: scale(1); | ||
} | ||
|
||
.cm_container, .cm_container *{ | ||
box-sizing: border-box; | ||
} | ||
|
||
.cm_container *{ | ||
position: relative; | ||
} | ||
|
||
.cm_container ul{ | ||
list-style-type: none; | ||
padding: 0; | ||
margin: 0; | ||
background-color: #dbdbdb; | ||
box-shadow: 0 0 5px #626262; | ||
border-radius: 1px; | ||
} | ||
|
||
.cm_container li{ | ||
padding: 5px 10px; | ||
padding-right: 1.7em; | ||
cursor: pointer; | ||
white-space: nowrap; | ||
} | ||
|
||
.cm_container li:hover{ | ||
background-color: #b0b0b0; | ||
} | ||
|
||
.cm_container li .cm_icon_span{ | ||
width: 1.5em; | ||
height: 1.2em; | ||
vertical-align: bottom; | ||
display: inline-block; | ||
margin-right: 5px; | ||
padding-right: 5px; | ||
text-align: center; | ||
} | ||
|
||
.cm_container li .cm_sub_span{ | ||
width: 1em; | ||
display: inline-block; | ||
text-align: center; | ||
position: absolute; | ||
top: 50%; | ||
right: 0.5em; | ||
transform: translateY(-50%); | ||
} | ||
|
||
.cm_container li > ul{ | ||
position: absolute; | ||
top: 0; | ||
left: 100%; | ||
opacity: 0; | ||
transition: opacity 0.2s; | ||
visibility: hidden; | ||
} | ||
|
||
.cm_container li:hover > ul{ | ||
opacity: 1; | ||
visibility: visible; | ||
} | ||
|
||
.cm_container li.cm_divider{ | ||
border-bottom: 1px solid #aaa; | ||
margin: 5px; | ||
padding: 0; | ||
cursor: default; | ||
} | ||
|
||
.cm_container li.cm_divider:hover{ | ||
background-color: inherit; | ||
} | ||
|
||
.cm_container.cm_border_right > ul ul{ | ||
left: -100%; | ||
} | ||
|
||
.cm_container.cm_border_bottom > ul ul{ | ||
top: unset; | ||
bottom: 0; | ||
} | ||
|
||
.cm_container li[disabled=""]{ | ||
color: #777; | ||
cursor: default; | ||
} | ||
|
||
.cm_container li[disabled=""]:hover{ | ||
background-color: inherit; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.