kopia lustrzana https://github.com/c9/core
remove .user-select less function in favor of automatic expansion
rodzic
573f55017a
commit
c17ee02bab
|
@ -200,6 +200,14 @@ function compileLess(opts, sources, callback) {
|
|||
}
|
||||
|
||||
|
||||
function addCssPrefixes(css) {
|
||||
return css.replace(/\b(user-select|font-smoothing)\b([^;\n]+);?/g, function(_, prop, value, index, string) {
|
||||
if (prop[0] == "u" && string[index - 1] != "-") {
|
||||
return "-webkit-" + prop + value + "; -moz-" + prop + value + "; -ms-" + prop + value + "; " + _;
|
||||
}
|
||||
return _;
|
||||
});
|
||||
}
|
||||
|
||||
function toCss(tree, imports, options, callback) {
|
||||
var less = require("less");
|
||||
|
@ -211,6 +219,7 @@ function toCss(tree, imports, options, callback) {
|
|||
catch (err) {
|
||||
return callback(err);
|
||||
}
|
||||
css = addCssPrefixes(css);
|
||||
callback(null, css);
|
||||
}
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
cursor : pointer;
|
||||
position : relative;
|
||||
cursor : default;
|
||||
.user-select(none);
|
||||
user-select: none;
|
||||
background-position : 0 0;
|
||||
background-repeat : no-repeat;
|
||||
margin: @ace-status-icon-margin !important;
|
||||
|
|
|
@ -320,7 +320,7 @@
|
|||
}
|
||||
|
||||
#ui-slider-handle when(@time-slider-handle-basic = false) {
|
||||
.user-select(none);
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
#ui-slider-handle span when(@time-slider-handle-basic = false){
|
||||
|
@ -380,7 +380,7 @@
|
|||
}
|
||||
|
||||
#ui-slider-bar {
|
||||
.user-select(none);
|
||||
user-select: none;
|
||||
cursor: pointer;
|
||||
height: 35px;
|
||||
margin-left: @time-slider-bar-margin-left;
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
height : 22px;
|
||||
cursor : pointer;
|
||||
position : absolute;
|
||||
.user-select(none);
|
||||
user-select: none;
|
||||
width : 20px;
|
||||
}
|
||||
.btnquicksearchnav .lbl{
|
||||
|
|
|
@ -216,5 +216,5 @@
|
|||
/* allow selecting in doc popup but do not elsewhere */
|
||||
.panelsbar, .btnsesssioncontainer, .bar-status, .splitgrabber,
|
||||
.code_complete_text, .ace_scrollbar, .ace_tree {
|
||||
.user-select(none);
|
||||
user-select: none;
|
||||
}
|
|
@ -9,7 +9,7 @@
|
|||
background-position : 0 27px;
|
||||
background-repeat : no-repeat;
|
||||
background-image : url("@{image-path}/browser_button.png");
|
||||
.user-select(none);
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.browser-btn span{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
.btn-switcher {
|
||||
.user-select(none);
|
||||
user-select: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
cursor: default;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
.btn_console {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
.user-select(none);
|
||||
user-select: none;
|
||||
|
||||
box-sizing: border-box;
|
||||
border-radius: 3px;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
height: 31px;
|
||||
width: 18px;
|
||||
padding: 6px 4px 8px 5px;
|
||||
.user-select(none);
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.btn_console_open span{
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
position : relative;
|
||||
height : 21px;
|
||||
width : 22px;
|
||||
.user-select(none);
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.btn_icon_onlyDown.tabmenubtn {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
cursor : default;
|
||||
position : relative;
|
||||
line-height : 17px;
|
||||
.user-select(none);
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.btn.smallbtn {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
.c9-menu-bar {
|
||||
position : relative;
|
||||
overflow : visible;
|
||||
.user-select(none);
|
||||
user-select: none;
|
||||
}
|
||||
.c9-menu-bar:before{
|
||||
position: absolute;
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
text-shadow : @menu-button-text-shadow;
|
||||
|
||||
|
||||
.user-select(none);
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.c9-menu-btnOver {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
.c9-simple-btn {
|
||||
.user-select(none);
|
||||
user-select: none;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
position : relative;
|
||||
line-height : 17px;
|
||||
border:1px solid transparent;
|
||||
.user-select(none);
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.with-arrow.c9-toolbarbutton {
|
||||
|
|
|
@ -249,7 +249,7 @@ body>.session_btn.curbtn{
|
|||
white-space : nowrap;
|
||||
overflow : hidden;
|
||||
padding : @pane-button-title-padding;
|
||||
.user-select(none);
|
||||
user-select: none;
|
||||
color : @pane-button-color;
|
||||
text-shadow : @pane-button-textshadow;
|
||||
// position: relative;
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
color: @frame-title-color;
|
||||
background-color: @frame-title-background;
|
||||
background-image: linear-gradient(90deg, @frame-title-gradient-start 0%, @frame-title-gradient-stop 100%);
|
||||
.user-select(none);
|
||||
user-select: none;
|
||||
}
|
||||
.frame>.title:hover{
|
||||
background-image: linear-gradient(90deg, @frame-title-gradient-hover-start 0%, @frame-title-gradient-hover-stop 100%);
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
background-repeat : no-repeat;
|
||||
top : 5px;
|
||||
z-index : 1000;
|
||||
.user-select(none);
|
||||
user-select: none;
|
||||
}
|
||||
.panel-settings {
|
||||
background-position: @tree-settings-background;
|
||||
|
@ -60,6 +60,6 @@
|
|||
position: absolute;
|
||||
top: 0;
|
||||
width: 2px;
|
||||
.user-select(none);
|
||||
user-select: none;
|
||||
}
|
||||
|
|
@ -5,36 +5,6 @@
|
|||
// Petr Brzek & Jan Kuca
|
||||
|
||||
|
||||
// .size
|
||||
|
||||
.size(@square){
|
||||
width: @square;
|
||||
height: @square;
|
||||
}
|
||||
|
||||
.size(@width, @height){
|
||||
width: @width;
|
||||
height: @height;
|
||||
}
|
||||
|
||||
// element{ .size(10px); } // render width:10px; height:10px;
|
||||
// element{ .size(10px, 20px); } // render width:10px; height: 20px;
|
||||
|
||||
|
||||
|
||||
// .user-select
|
||||
|
||||
.user-select(@arguments:auto){
|
||||
-webkit-user-select: @arguments;
|
||||
-moz-user-select: @arguments;
|
||||
-ms-user-select: @arguments;
|
||||
user-select: @arguments;
|
||||
}
|
||||
|
||||
// element{ .user-select(text); }
|
||||
|
||||
|
||||
|
||||
.font-smoothing(@state){
|
||||
.font-smoothing(@state) when (@state = true) {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
font-size: 13px;
|
||||
text-align: center;
|
||||
border-radius: 3px 3px 0 0;
|
||||
.user-select(none);
|
||||
user-select: none;
|
||||
overflow: hidden;
|
||||
-webkit-app-region: drag;
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ define(function(require, exports, module) {
|
|||
var proc = imports.proc;
|
||||
var nodeBin = Array.isArray(options.nodeBin)
|
||||
? options.nodeBin[0]
|
||||
: options.nodeBin || "node";
|
||||
: options.nodeBin || "node";
|
||||
|
||||
var DISCONNECTED = 0;
|
||||
var CONNECTED = 1;
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
.ace_button {
|
||||
margin-left: 2px;
|
||||
cursor: pointer;
|
||||
.user-select(none);
|
||||
user-select: none;
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(100,100,100,0.23);
|
||||
padding: 2px 4px;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
color: #795A0A;
|
||||
margin: 0 5px;
|
||||
pointer-events:auto;
|
||||
.user-select(text);
|
||||
user-select: text;
|
||||
}
|
||||
.stack-message.more{
|
||||
cursor:pointer;
|
||||
|
|
|
@ -153,7 +153,7 @@
|
|||
<a:style><![CDATA[
|
||||
.btn-cancel-upload {
|
||||
position : relative;
|
||||
.user-select(none);
|
||||
user-select: none;
|
||||
color : #a4a4a4;
|
||||
font-size : 11px;
|
||||
height : 14px;
|
||||
|
|
Ładowanie…
Reference in New Issue