mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Disable user selection by default
This commit is contained in:
parent
a03c7df599
commit
040593ab3b
8 changed files with 29 additions and 4 deletions
|
@ -92,6 +92,10 @@
|
||||||
box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 6px;
|
box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.modal-content * {
|
||||||
|
user-select: text;
|
||||||
|
}
|
||||||
|
|
||||||
.modal-content .close {
|
.modal-content .close {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 19px;
|
top: 19px;
|
||||||
|
|
|
@ -36,7 +36,6 @@
|
||||||
left: 0;
|
left: 0;
|
||||||
color: var(--brown);
|
color: var(--brown);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
user-select: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.image-uploader .image-upload:hover {
|
.image-uploader .image-upload:hover {
|
||||||
|
|
|
@ -233,7 +233,6 @@
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
hyphens: auto;
|
hyphens: auto;
|
||||||
user-select: none;
|
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -289,6 +288,11 @@
|
||||||
font-weight: 200;
|
font-weight: 200;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.entry-preview-content *,
|
||||||
|
.content-preview-content * {
|
||||||
|
user-select: all;
|
||||||
|
}
|
||||||
|
|
||||||
.entry-preview-content a,
|
.entry-preview-content a,
|
||||||
.content-preview-content a {
|
.content-preview-content a {
|
||||||
color: var(--blue);
|
color: var(--blue);
|
||||||
|
@ -468,7 +472,6 @@ body.zen .entry-preview {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
background: var(--darkgrey);
|
background: var(--darkgrey);
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
user-select: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#entry-tags .tag:hover {
|
#entry-tags .tag:hover {
|
||||||
|
|
|
@ -9,6 +9,10 @@
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.error-content {
|
||||||
|
user-select: text;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 630px) {
|
@media (max-width: 630px) {
|
||||||
.error-content {
|
.error-content {
|
||||||
max-width: 264px;
|
max-width: 264px;
|
||||||
|
|
|
@ -296,3 +296,8 @@
|
||||||
.view-content {
|
.view-content {
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.view-content p,
|
||||||
|
.view-content p * {
|
||||||
|
user-select: text;
|
||||||
|
}
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
letter-spacing: 1px;
|
letter-spacing: 1px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
border-radius: var(--border-radius);
|
border-radius: var(--border-radius);
|
||||||
user-select: none;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
background-image: none; /* Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214 */
|
background-image: none; /* Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214 */
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
/* Forms
|
/* Forms
|
||||||
/* ---------------------------------------------------------- */
|
/* ---------------------------------------------------------- */
|
||||||
|
|
||||||
|
form * {
|
||||||
|
user-select: text;
|
||||||
|
}
|
||||||
|
|
||||||
form label {
|
form label {
|
||||||
display: block;
|
display: block;
|
||||||
color: var(--darkgrey);
|
color: var(--darkgrey);
|
||||||
|
@ -29,6 +33,10 @@ legend {
|
||||||
color: var(--brown);
|
color: var(--brown);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input {
|
||||||
|
user-select: text;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Form Groups
|
/* Form Groups
|
||||||
/* ---------------------------------------------------------- */
|
/* ---------------------------------------------------------- */
|
||||||
|
@ -106,6 +114,7 @@ select {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
color: var(--darkgrey);
|
color: var(--darkgrey);
|
||||||
transition: border-color 0.15s linear;
|
transition: border-color 0.15s linear;
|
||||||
|
user-select: text;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gh-input.error,
|
.gh-input.error,
|
||||||
|
@ -129,6 +138,7 @@ textarea {
|
||||||
min-height: 10rem;
|
min-height: 10rem;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
resize: vertical;
|
resize: vertical;
|
||||||
|
user-select: text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
|
|
||||||
*, *:before, *:after {
|
*, *:before, *:after {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
|
|
Loading…
Add table
Reference in a new issue