Просмотр исходного кода

Merge branch 'master' of https://github.com/boonex/dolphin

AntonLV 13 лет назад
Родитель
Сommit
1e5b079628

+ 1 - 0
inc/classes/BxDolTemplate.php

@@ -299,6 +299,7 @@ class BxDolTemplate extends BxDol implements iBxDolSingleton {
             'general.css',
             'general.css',
             'icons.css',
             'icons.css',
             'colors.css',
             'colors.css',
+            'media-desktop.css',
             'media-tablet.css',
             'media-tablet.css',
             'media-phone.css',
             'media-phone.css',
             'media-print.css',
             'media-print.css',

+ 3 - 3
modules/boonex/notes/template/css/main.css

@@ -17,7 +17,7 @@
 
 
 /* enity view */
 /* enity view */
 
 
-.bx-notes-entity-content * {
-    max-width:100%;
-    overflow:hidden;
+.bx-notes-entity-content > p {
+    max-width:95% !important;
+    overflow:scroll !important;
 }
 }

+ 1 - 1
modules/boonex/notes/template/entry-text.html

@@ -1,5 +1,5 @@
 
 
-<div class="bx-notes-entity-content">
+<div class="bx-notes-entity-content bx-def-constraint-list bx-def-constraint-pre bx-def-constraint-object bx-def-constraint-iframe bx-def-constraint-img">
 
 
     <h1>__title__</h1>
     <h1>__title__</h1>
 
 

+ 31 - 0
template/css/media-desktop.css

@@ -0,0 +1,31 @@
+@media (min-width:1024px) {
+
+
+.bx-def-media-desktop-hide {
+    display:none;
+}
+.bx-def-media-desktop-show-block {
+    display:block;
+}
+
+
+.bx-def-constraint-all *,
+.bx-def-constraint-list ol, .bx-def-constraint-list ul,
+.bx-def-constraint-pre pre,
+.bx-def-constraint-object object,
+.bx-def-constraint-iframe iframe,
+.bx-def-constraint-img img {
+    -moz-box-sizing: border-box;
+    -ms-box-sizing: border-box;
+    -webkit-box-sizing: border-box;
+    box-sizing: border-box;
+
+    max-width:900px !important;
+    overflow:hidden !important;
+}
+.bx-def-constraint-pre pre {
+    overflow:scroll !important;
+}
+
+
+} /* @media end */

+ 20 - 0
template/css/media-phone.css

@@ -8,6 +8,26 @@
     display:block;
     display:block;
 }
 }
 
 
+
+.bx-def-constraint-all *,
+.bx-def-constraint-list ol, .bx-def-constraint-list ul,
+.bx-def-constraint-pre pre,
+.bx-def-constraint-object object,
+.bx-def-constraint-iframe iframe,
+.bx-def-constraint-img img {
+    -moz-box-sizing: border-box;
+    -ms-box-sizing: border-box;
+    -webkit-box-sizing: border-box;
+    box-sizing: border-box;
+
+    max-width:300px !important;
+    overflow:hidden !important;
+}
+.bx-def-constraint-pre pre {
+    overflow:scroll !important;
+}
+
+
 /* default.css */ 
 /* default.css */ 
 
 
 .bx-def-page-width {
 .bx-def-page-width {

+ 21 - 1
template/css/media-tablet.css

@@ -8,7 +8,27 @@
     display:block;
     display:block;
 }
 }
 
 
-/* default.css */ 
+
+.bx-def-constraint-all *,
+.bx-def-constraint-list ol, .bx-def-constraint-list ul,
+.bx-def-constraint-pre pre,
+.bx-def-constraint-object object,
+.bx-def-constraint-iframe iframe,
+.bx-def-constraint-img img {
+    -moz-box-sizing: border-box;
+    -ms-box-sizing: border-box;
+    -webkit-box-sizing: border-box;
+    box-sizing: border-box;
+
+    max-width:500px !important;
+    overflow:hidden !important;
+}
+.bx-def-constraint-pre pre {
+    overflow:scroll !important;
+}
+
+
+/* default.css */
 
 
 .bx-def-page-width {
 .bx-def-page-width {
     width:auto;
     width:auto;