Skip to content

Commit

Permalink
docs: create docs directory for github page
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinRoy committed Mar 22, 2021
1 parent f8abee2 commit 920cbec
Show file tree
Hide file tree
Showing 10 changed files with 11,280 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
demo
docs
marking-menu.js
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,4 @@ coverage
.nyc_output

# Dist
marking-menu*
demo/vendors
/marking-menu*
2 changes: 1 addition & 1 deletion build-config/copy-demo-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { promisify } = require('util');

const copyFile = promisify(fs.copyFile);

const TARGET_DIR = '../demo/vendors';
const TARGET_DIR = '../docs/vendors';
const FILES_TO_COPY = [
'../marking-menu.js',
'../marking-menu.js.map',
Expand Down
File renamed without changes.
7 changes: 1 addition & 6 deletions demo/script.js → docs/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@ const items = [
'Item Right',
{
name: 'Others...',
children: [
'Sub Right',
'Sub Down',
'Sub Left',
'Sub Top'
]
children: ['Sub Right', 'Sub Down', 'Sub Left', 'Sub Top']
},
'Item Left',
'Item Up'
Expand Down
File renamed without changes.
104 changes: 104 additions & 0 deletions docs/vendors/marking-menu.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
.marking-menu {
position: absolute;
pointer-events: none; }
.marking-menu * {
pointer-events: none; }

.marking-menu-item .marking-menu-label {
position: absolute;
border-radius: 8px;
background-color: #f2f2f2;
padding: 4px;
width: 100px;
height: 20px;
overflow: hidden;
vertical-align: middle;
text-align: center;
text-overflow: ellipsis;
line-height: 20px;
color: #333333;
font-size: 20px; }

.marking-menu-item.active .marking-menu-label {
background-color: #d9d9d9;
color: #191919;
font-weight: bolder; }

.marking-menu-item.active .marking-menu-line {
background-color: #d9d9d9; }

.marking-menu-item .marking-menu-line {
position: absolute;
top: -2px;
background-color: #f2f2f2;
width: 92px;
height: 4px;
transform-origin: center left; }

.marking-menu-item[data-item-angle='0'] .marking-menu-label {
bottom: -14px;
left: 80px; }

.marking-menu-item[data-item-angle='0'] .marking-menu-line {
transform: rotate(0deg); }

.marking-menu-item[data-item-angle='45'] .marking-menu-label {
bottom: -84.56854px;
left: 56.56854px; }

.marking-menu-item[data-item-angle='45'] .marking-menu-line {
transform: rotate(45deg); }

.marking-menu-item[data-item-angle='90'] .marking-menu-label {
bottom: -108px;
left: -54px; }

.marking-menu-item[data-item-angle='90'] .marking-menu-line {
transform: rotate(90deg); }

.marking-menu-item[data-item-angle='135'] .marking-menu-label {
bottom: -84.56854px;
left: -164.56854px; }

.marking-menu-item[data-item-angle='135'] .marking-menu-line {
transform: rotate(135deg); }

.marking-menu-item[data-item-angle='180'] .marking-menu-label {
bottom: -14px;
left: -188px; }

.marking-menu-item[data-item-angle='180'] .marking-menu-line {
transform: rotate(180deg); }

.marking-menu-item[data-item-angle='225'] .marking-menu-label {
bottom: 56.56854px;
left: -164.56854px; }

.marking-menu-item[data-item-angle='225'] .marking-menu-line {
transform: rotate(225deg); }

.marking-menu-item[data-item-angle='270'] .marking-menu-label {
bottom: 80px;
left: -54px; }

.marking-menu-item[data-item-angle='270'] .marking-menu-line {
transform: rotate(270deg); }

.marking-menu-item[data-item-angle='315'] .marking-menu-label {
bottom: 56.56854px;
left: 56.56854px; }

.marking-menu-item[data-item-angle='315'] .marking-menu-line {
transform: rotate(315deg); }

.marking-menu-item[data-item-angle='45'] .marking-menu-label {
border-top-left-radius: 0; }

.marking-menu-item[data-item-angle='135'] .marking-menu-label {
border-top-right-radius: 0; }

.marking-menu-item[data-item-angle='225'] .marking-menu-label {
border-bottom-right-radius: 0; }

.marking-menu-item[data-item-angle='315'] .marking-menu-label {
border-bottom-left-radius: 0; }

0 comments on commit 920cbec

Please sign in to comment.