1
0
قرینه از https://github.com/matomo-org/matomo.git synced 2025-08-22 06:57:53 +00:00
Files
Stefan Giehl 9cc5e8b1da Make feature gates individually dismissible per user (#21587)
* Make feature gates individually dismissable per user

* apply review feedback

* updates expected UI test files

* Hide dismiss notification for anon user

* Add UI test for dismissing plugin promo

* Remove unused imports

* Fix broken test

* Fix order of element selection for UI test

* Extract promo widget dismissible to own unit so can be tested properly

* Fix UI tests

* Fix UI tests

* Fix UI tests

* Remove pre-cleanup

---------

Co-authored-by: caddoo <matthew.caddoo@gmail.com>
2023-11-23 09:25:20 +01:00

81 خطوط
1.2 KiB
Plaintext

.pluginPromo {
background-color: white;
font-size: 16px;
.card {
padding: 15px;
.card-content {
.card-title {
margin-bottom: 30px;
font-family: @theme-fontFamily-base;
font-weight: bold;
}
}
}
.promo-content {
ul {
list-style: none;
padding: 0;
li {
padding-left: 20px;
margin-bottom: 16px;
margin-left: 10px;
}
}
.promo-icon {
display: inline-block;
margin: 2px 10px 10px -30px;
font-size: 20px;
float: left;
}
.icon-ok {
color: @color-green-piwik;
}
}
.promo-actions {
margin-top: 30px;
width: 100%;
a {
margin-right: 20px;
color: green;
&:last-child {
margin-right: 0;
}
@media only screen and (max-width: 660px) {
display: block;
text-align: center;
width: 100%;
margin-bottom: 20px;
&:last-child {
margin-bottom: 0;
}
}
}
a.learn-more {
color: @color-green-piwik;
text-decoration: none;
}
}
.promo-dismiss {
padding-top: 16px;
.font-default(12px; 21px);
color: @color-silver-l40;
> a {
color: @color-silver-l40;
}
}
}