aboutsummaryrefslogtreecommitdiffstats
path: root/core/src/jquery
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-02-14 13:34:20 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-02-14 13:38:24 +0100
commit65964a537adbb5d68c014e0acf0aabd432b00f7b (patch)
tree9c3759de4395d34c058bf709d9e0fbba1f78a223 /core/src/jquery
parentea951136d1f3f87cb98065de2ec4d654dd7b960d (diff)
downloadnextcloud-server-65964a537adbb5d68c014e0acf0aabd432b00f7b.tar.gz
nextcloud-server-65964a537adbb5d68c014e0acf0aabd432b00f7b.zip
Move jquery.ocdialog.scss to bundle
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/src/jquery')
-rw-r--r--core/src/jquery/css/jquery.ocdialog.scss90
-rw-r--r--core/src/jquery/index.js1
2 files changed, 91 insertions, 0 deletions
diff --git a/core/src/jquery/css/jquery.ocdialog.scss b/core/src/jquery/css/jquery.ocdialog.scss
new file mode 100644
index 00000000000..7372f308727
--- /dev/null
+++ b/core/src/jquery/css/jquery.ocdialog.scss
@@ -0,0 +1,90 @@
+.oc-dialog {
+ background: var(--color-main-background);
+ color: var(--color-text-light);
+ border-radius: var(--border-radius-large);
+ box-shadow: 0 0 30px var(--color-box-shadow);
+ padding: 15px;
+ z-index: 10000;
+ font-size: 100%;
+ box-sizing: border-box;
+ min-width: 200px;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+ max-height: calc(100% - 20px);
+ max-width: calc(100% - 20px);
+ overflow: auto;
+}
+.oc-dialog-title {
+ background: var(--color-main-background);
+}
+.oc-dialog-buttonrow {
+ position: relative;
+ display: flex;
+ background: transparent;
+ right: 0;
+ bottom: 0;
+ padding: 0;
+ padding-top: 10px;
+ box-sizing: border-box;
+ width: 100%;
+ background-image: linear-gradient(rgba(255, 255, 255, 0.0), var(--color-main-background));
+
+ &.twobuttons {
+ justify-content: space-between;
+ }
+
+ &.onebutton,
+ &.twobuttons.aside {
+ justify-content: flex-end;
+ }
+
+ button {
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+}
+
+.oc-dialog-close {
+ position: absolute;
+ top: 0;
+ right: 0;
+ padding: 25px;
+ background: var(--icon-close-000) no-repeat center;
+ opacity: .5;
+
+ &:hover,
+ &:focus,
+ &:active {
+ opacity: 1;
+ }
+}
+
+.oc-dialog-dim {
+ background-color: #000;
+ opacity: .2;
+ z-index: 9999;
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+}
+
+.oc-dialog-content {
+ width: 100%;
+}
+
+.oc-dialog.password-confirmation {
+ .oc-dialog-content {
+ width: auto;
+
+ input[type=password] {
+ width: 100%;
+ }
+ label {
+ display: none;
+ }
+ }
+}
diff --git a/core/src/jquery/index.js b/core/src/jquery/index.js
index cb7c6e705ed..71659137b3e 100644
--- a/core/src/jquery/index.js
+++ b/core/src/jquery/index.js
@@ -32,3 +32,4 @@ import './tipsy'
import './ui-fixes'
import './css/jquery-ui-fixes.scss'
+import './css/jquery.ocdialog.scss'