Bladeren bron

CSS edit for current tag badge

master
The Dod 1 jaar geleden
bovenliggende
commit
e077b8afb3
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1
    1
      mymastotag.py

+ 1
- 1
mymastotag.py Bestand weergeven

26
         for link in soup.find_all('a'):
26
         for link in soup.find_all('a'):
27
             link['target'] = '_blank'
27
             link['target'] = '_blank'
28
             if link.text.lower()==hashtag:
28
             if link.text.lower()==hashtag:
29
-                link['class'] = ['badge', 'bg-info', 'text-decoration-none']
29
+                link['class'] = ['badge', 'rounded-pill', 'text-bg-info', 'text-decoration-none']
30
             else:
30
             else:
31
                 link['class'] = ['link-info', 'text-decoration-none']
31
                 link['class'] = ['link-info', 'text-decoration-none']
32
         e['description'] = str(soup)
32
         e['description'] = str(soup)

Laden…
Annuleren
Opslaan