Skip to content

Commit

Permalink
Better scoped the widget styles. Made more use of existing CSS within…
Browse files Browse the repository at this point in the history
… Matomo instead of using custom styles.
  • Loading branch information
KZeni committed Dec 16, 2019
1 parent 3fdd98d commit ac4353c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 0.2.1

- Better scoped the widget styles.
- Made more use of existing CSS within Matomo instead of using custom styles.

## 0.2.0

- Formatted the lead output.
Expand Down
2 changes: 1 addition & 1 deletion Widgets/GetSharpSpringInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function render(){
$leadCount = 0;
foreach($leads->result as $lead){
foreach($lead as $lead_details){
$output.= '<a href="https://marketingautomation.services/lead/'.$lead_details->id.'" target="_blank" class="sharpspring-lead">';
$output.= '<a href="https://marketingautomation.services/lead/'.$lead_details->id.'" target="_blank" class="sharpspring-lead alert alert-info">';
$output.= '<strong>Name</strong>';
$output.= '<span>'.$lead_details->firstName.' '.$lead_details->lastName.'</span>';
$output.= '<strong>Company Name</strong>';
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "SharpSpringWidgetByAmperage",
"version": "0.2.0",
"version": "0.2.1",
"description": "Show SharpSpring info as a widget.",
"theme": false,
"keywords": [
Expand Down
17 changes: 10 additions & 7 deletions stylesheets/sharpspring.less
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
.widget-body { padding:10px 15px; font-size:1.1em; overflow:auto; }
.sharpspring-lead { margin:0 -15px; padding:1em 15px; display:block;
strong,span { display:block; }
}
.sharpspring-lead:after { content:''; display:block; clear:both; }
.sharpspring-lead:hover,.sharpspring-lead:focus { text-decoration:none!important; background:#eee; }
.sharpspring-lead:active { text-decoration:none!important; background:#ddd; }
#widgetSharpSpringWidgetByAmperagegetSharpSpringInfo {
.widget-body { padding:10px 15px; font-size:1.1em; overflow:auto; }
.sharpspring-lead { margin:0 -15px; padding:1em 15px; display:block;
strong,span { display:block; }
}
.sharpspring-lead:before { display:none; }
.sharpspring-lead:after { content:''; display:block; clear:both; }
.sharpspring-lead:hover,.sharpspring-lead:focus { text-decoration:none!important; filter:brightness(1.1); }
.sharpspring-lead:active { text-decoration:none!important; filter:invert(20%); }
}

0 comments on commit ac4353c

Please sign in to comment.