/**
 * 通用的
 */

// 字体
/*
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  src: local('Open Sans Light'), local('OpenSans-Light'), url('../../fonts/open-sans2/DXI1ORHCpsQm3Vp6mXoaTXhCUOGz7vYGh680lGh-uXM.woff') format('woff');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Open Sans'), local('OpenSans'), url('../../fonts/open-sans2/cJZKeOuBrn4kERxqtaUH3T8E0i7KZn-EPnyo3HZu7kw.woff') format('woff');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: local('Open Sans Bold'), local('OpenSans-Bold'), url('../../fonts/open-sans2/k3k702ZOKiLJc3WVjuplzHhCUOGz7vYGh680lGh-uXM.woff') format('woff');
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 400;
  src: local('Open Sans Italic'), local('OpenSans-Italic'), url('../../fonts/open-sans2/xjAJXh38I15wypJXxuGMBobN6UDyHWBl620a-IRfuBk.woff') format('woff');
}
*/

/* leanote */
/*
@font-face {
    font-family: 'leanoteregular';
    src: url('../../fonts/leanote/leanote-regular-webfont.eot');
    src: url('../../fonts/leanote/leanote-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('../../fonts/leanote/leanote-regular-webfont.woff') format('woff'),
         url('../../fonts/leanote/leanote-regular-webfont.ttf') format('truetype'),
         url('../../fonts/leanote/leanote-regular-webfont.svg#leanoteregular') format('svg');
    font-weight: normal;
    font-style: normal;
}
*/

@font-face {
  font-family: 'leanote';
  src:url('../../fonts/leanote-font2/leanote.eot?-vcf23i');
  src:url('../../fonts/leanote-font2/leanote.eot?#iefix-vcf23i') format('embedded-opentype'),
    url('../../fonts/leanote-font2/leanote.ttf?-vcf23i') format('truetype'),
    url('../../fonts/leanote-font2/leanote.woff?-vcf23i') format('woff'),
    url('../../fonts/leanote-font2/leanote.svg?-vcf23i#leanote') format('svg');
  font-weight: normal;
  font-style: normal;
}


.close:focus {
  outline: none;
}

.invisible {
  visibility: hidden;
}


.btn {
  border-radius: 2px;
}
.alert {
  margin-bottom: 10px;
}


.btn * {
    cursor: pointer !important; // 下载所有, 被dropdown
}



//-----------------
// 下拉菜单
.dropdown-submenu {
    position: relative;
}
.dropdown-submenu > ul.dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: -3px !important;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    padding-top: 10px !important;
}
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}
// 箭头
.dropdown-submenu:after {
    display: block;
    content: " ";
    position: absolute;
    right: 0;
    top: 10px;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #666;
}

.dropdown-submenu:hover > a:after {
    border-left-color: #fff;
}
.dropdown-submenu.pull-left {
    float: none;
}
.dropdown-submenu.pull-left > .dropdown-menu {
    left: -100%;
    margin-left: 10px;
    -webkit-border-radius: 6px 0 6px 6px;
    -moz-border-radius: 6px 0 6px 6px;
    border-radius: 6px 0 6px 6px;
}

// 动画
.open > .dropdown-menu, .dropdown-submenu:hover > .dropdown-menu {
  visibility: visible;

  -webkit-animation: pulldown .2s;
  animation: pulldown .2s;
  /*
  transform: scale(1, 1); 
  -webkit-transform: scale(1, 1);
  -moz-transform: scale(1, 1);
  -o-transform: scale(1, 1);
  */
}
.dropdown-menu {
  visibility: hidden;
  display: block;
  
  /*
  -webkit-transform: scale(0, 0);
  -webkit-transform-origin: top;
  -webkit-animation-fill-mode: forwards;  
  -webkit-transition: all 0.2s cubic-bezier(0.34, 1.21, 0.4, 1);
  
  -o-transform: scale(0, 0);
  -o-transform-origin: top;
  -o-animation-fill-mode: forwards;  
  -o-transition: all 0.2s cubic-bezier(0.34, 1.21, 0.4, 1);
  
  -moz-transform: scale(0, 0);
  -moz-transform-origin: top;
  -moz-animation-fill-mode: forwards;  
  -moz-transition: all 0.2s cubic-bezier(0.34, 1.21, 0.4, 1);
  
  transform: scale(0, 0);
  transform-origin: top;
  animation-fill-mode: forwards; 
  transition: all 0.2s cubic-bezier(0.34, 1.21, 0.4, 1);
  */
}

.dropdown-list {
    width: 530px;
    border-radius: 3px;
  ul {
    margin: 0;
    padding: 0;
    li {
        float: left;
        width: 120px;
        margin-left: 10px;
        margin-bottom: 10px;
        border: 1px dashed #ccc;
    }
  }
}

.dropdown-menu .divider {
  margin: 3px 0;
}


.dropdown-menu {
  border-radius: 3px;
  margin:0;
  // border: 1px solid @hColor;
  border: 1px solid #e6eaed;
  /*overflow-x: hidden; */
  /*overflow-y: scroll;*/
  box-shadow: rgba(0, 0, 0, 0.172549) 0px 6px 12px 0px;
  
  &:before {
    content: "";
    width: 20px;
    height: 12px;
    position: absolute;
    top: -12px;
    right: 8px;
    background-image: url("../../images/triangle_2x.png");
    background-size: 20px 12px;
  }
}

.dropdown-submenu .dropdown-menu:before {
  background: none;
}
#searchNotebookForAddDropdownList, #searchNotebookForAddShareDropdownList {
  left: -200px;
  &:before {
    left: 190px;
    right: inherit;
  }
}

.dropdown-menu li {
  list-style: none;
  padding-left: 10px;
  width: 100%;
  height: 30px; // 父设置了line-height, 子下拉也受影响, "新建笔记"
  line-height: 30px;
}
.dropdown-menu li > a {
  color: @aBlackColor;
  display: block;
  padding-right: 20px;
}
.dropdown-menu > li > a {
  padding: 3px 20px 3px 0;
}


.noteSplit {
  position: absolute;
  top: 0;
  width: 5px;
  height: 100%;
  overflow: hidden;
  z-index: 3333;
  cursor: col-resize;
}

// 原生的a 可能没用
a.raw {
  color: #428bca;
}
a.raw:hover {
  color: #2a6496;
}



// context-menu
// 防止换行
.cm-item {
  position: relative;
  .cm-text {
    position: absolute;
    left: 23px;
    right: 10px;
    white-space: nowrap;text-overflow:ellipsis;
    overflow: hidden;
    .c-text {
      display: initial;
    }
  }
}
.b-m-mpanel {
  border-radius: 3px;
}

// modal

.modal-content {
  background-color: #f8f8f8;
}
.modal-body {
  background-color: #ffffff;
  padding-bottom: 30px;
}
.modal-footer {
  margin-top: 0;
}

// 不让选择, 双击
#editorTool,
#newNoteWrap,
#myBlog,
.lea-blog,
#myProfile,
#toggleEditorMode,
.folderHeader
 {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}