瀏覽代碼

Change semi-transparent buttons

Visman 5 年之前
父節點
當前提交
bf827a1188

+ 1 - 0
app/Models/Pages/Admin/Forums.php

@@ -487,6 +487,7 @@ class Forums extends Admin
                 'type'      => 'submit',
                 'value'     => __('Revert to default'),
 //                'accesskey' => 'r',
+                'class'     => 'f-opacity',
             ];
         }
 

+ 1 - 1
app/Models/Pages/PostFormTrait.php

@@ -47,7 +47,7 @@ trait PostFormTrait
                     'type'      => 'submit',
                     'value'     => __('Preview'),
 //                    'accesskey' => 'p',
-                    'class'     => 'f-minor',
+                    'class'     => 'f-opacity',
                 ],
             ],
         ];

+ 1 - 1
app/Models/Pages/Report.php

@@ -146,7 +146,7 @@ class Report extends Page
                     'type'      => 'btn',
                     'value'     => __('Go back'),
                     'link'      => 'javascript:history.go(-1)',
-                    'class'     => 'f-minor',
+                    'class'     => 'f-opacity',
                 ],
             ],
         ];

+ 1 - 1
app/templates/forum.forkbb.php

@@ -167,7 +167,7 @@
         @if ($p->model->canCreateTopic || $p->model->canMarkRead)
         <div class="f-actions-links">
             @if ($p->model->canMarkRead)
-          <a class="f-btn f-btn-markread" title="{!! __('Mark forum read') !!}" href="{!! $p->model->linkMarkRead !!}">{!! __('All is read') !!}</a>
+          <a class="f-btn f-btn-markread f-opacity" title="{!! __('Mark forum read') !!}" href="{!! $p->model->linkMarkRead !!}">{!! __('All is read') !!}</a>
             @endif
             @if ($p->model->canCreateTopic)
           <a class="f-btn f-btn-create-topic" href="{!! $p->model->linkCreateTopic !!}">{!! __('Post topic') !!}</a>

+ 1 - 1
app/templates/index.forkbb.php

@@ -21,7 +21,7 @@
     <div class="f-nav-links">
       <div class="f-nlinks">
         <div class="f-actions-links">
-          <a class="f-btn f-btn-markread" title="{!! __('Mark all as read') !!}" href="{!! $p->linkMarkRead !!}">{!! __('All is read') !!}</a>
+          <a class="f-btn f-btn-markread f-opacity" title="{!! __('Mark all as read') !!}" href="{!! $p->linkMarkRead !!}">{!! __('All is read') !!}</a>
         </div>
       </div>
     </div>

+ 3 - 12
public/style/ForkBB/style.css

@@ -232,7 +232,7 @@ body,
   text-align: center;
 }
 
-#fork .f-btn.f-minor {
+#fork .f-btn.f-opacity {
   opacity: 0.5;
 }
 
@@ -248,8 +248,8 @@ body,
   background-color: #814A00;
 }
 
-#fork .f-btn.f-minor:hover,
-#fork .f-btn.f-minor:focus {
+#fork .f-btn.f-opacity:hover,
+#fork .f-btn.f-opacity:focus {
   opacity: 1;
 }
 
@@ -1263,15 +1263,6 @@ body,
   content: " ]";
 }
 
-#fork .f-btn-markread {
-  opacity: 0.5;
-}
-
-#fork .f-btn-markread:focus,
-#fork .f-btn-markread:hover {
-  opacity: 1;
-}
-
 /*
 .icon-document:before {
   content: "\e900";