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