Skip to content

Commit

Permalink
add support fort is-orange
Browse files Browse the repository at this point in the history
  • Loading branch information
javierluraschi committed Mar 5, 2024
1 parent 94a55d9 commit bbb7149
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
4 changes: 2 additions & 2 deletions streamfy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def table(**kwargs):
st.write(switched)

st.subheader("Tags")
tags = taginput(data=["A", "B", "C"], default=["B"], allow_new=True, open_on_focus=True, type="is-info", aria_close_label="Remove", placeholder="Choose letter")
tags = taginput(class_name="is-orange", data=["A", "B", "C"], default=["B"], allow_new=True, open_on_focus=True, type="is-info", aria_close_label="Remove", placeholder="Choose letter")
st.write(tags)

st.subheader("Message")
Expand Down Expand Up @@ -285,4 +285,4 @@ def table(**kwargs):

footer = { 'id': 1, 'first_name': 'Jesse', 'last_name': 'Simmons', 'date': '2016/10/15 13:43:27', 'gender': 'Male' }

table(data=data, footer=footer)
table(class_name="is-orange", data=data, footer=footer)
25 changes: 24 additions & 1 deletion streamfy/frontend/src/Streamfy.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
:label="args.label"
:type="args.type"
:message="args.message"
:class="'sy-' + args.component"
:class="'sy-' + args.component + ' ' + args['class-name']"
>
<b-breadcrumb
v-if="args.component == 'breadcrumb' && args.items != undefined"
Expand Down Expand Up @@ -359,4 +359,27 @@ export default {
.sy-taginput .dropdown-content {
margin-bottom: 20px;
}
.is-orange .pagination-list a,
.is-orange .taginput .is-info.taginput-container.is-focusable {
border-color: #DB8765 !important;
}
.is-orange a.pagination-link.is-current {
background: #DB8765;
border-color: #DB8765;
}
.is-orange .tag:not(body).is-info {
background: #DB8765 !important;
}
.is-orange span.icon.has-text-info {
color: #DB8765 !important;
}
.is-orange .taginput {
border-color: #DB8765;
}
</style>

0 comments on commit bbb7149

Please sign in to comment.