Browse Source

Head Style

Scarlett Schäfer 2 years ago
parent
commit
ddb2c0b4e6
2 changed files with 44 additions and 2 deletions
  1. 43 0
      source/onNewloc.qsps
  2. 1 2
      source/util/action.qsps

+ 43 - 0
source/onNewloc.qsps

@@ -1,8 +1,51 @@
 # onNewloc
+!!PROCESS:trim
+
 if statsHide = 0:
     showstat 1
 else
     showstat 0
 end
 
+$_style = '
+    
+    h1 {
+        color: blue;
+        font-family: verdana;
+        font-size: 300%;
+    }
+    p {
+        color: red;
+        font-family: courier;
+        font-size: 160%;
+    }
+
+    .actionButton{
+        color : black;  
+        font-weight: bold;  
+        font-family:Arial;  
+        background: #ffe6cc;  
+        padding: 15px;  
+        width: 80%;  
+        text-align:center;  
+        text-decoration: none;  
+        border: 4px groove green;  
+        cursor: pointer; 
+        display:block;
+        margin: 1px;
+    }
+'
+
+
+$_text  = '<head><style>'+Replace($_style,'
+','')+'</style></head>'+ $MAINTXT
+
+*CLR
+
+
+*P $_text
+
+
+
+
 -

+ 1 - 2
source/util/action.qsps

@@ -23,7 +23,6 @@ if $ARGS[0] = 'render_action':
 
     !$temp_style = 'color:red;background:black; padding:3px;width:300px;display:block;margin:0px;text-decoration: none;font-weight: bold; '
 
-    $temp_style = 'color : black;  font-weight: bold;  font-family:Arial;  background: #ffe6cc;  padding: 15px;  width: 80%;  text-align:center;  text-decoration: none;  border: 4px groove green;  cursor: pointer; display:block;margin: 1px;'
 
     if $ARGS[4] = '':
         $temp_image = ''
@@ -47,7 +46,7 @@ if $ARGS[0] = 'render_action':
         $temp_action_label = '<<$temp_action_label>><br/><font style="color:grey;font-style:italic;font-size:70%;"><<$temp_action_sublabel>></font>'
     end
 
-    $_html = '<center style="margin:0px"><a href="exec:<<$temp_action_exec>>" style="<<$temp_style>>"><<$temp_image>><p><<$temp_action_label>></p></a></center>'
+    $_html = '<a class="actionButton" href="exec:<<$temp_action_exec>>"><<$temp_image>><p><<$temp_action_label>></p></a>'
 
     if $ARGS[5] = '':
         *P $_html