Replace blue button and label classes with primary (#19763)

* make blue really blue

* replace blue button and label classes with primary

* add --color-blue-dark

* add light color variants, tweak a few colors

* fix colors

* add comment

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
silverwind 2022-05-20 00:08:08 +02:00 committed by GitHub
parent ce52514762
commit 9da3d78e74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
61 changed files with 132 additions and 123 deletions

View file

@ -16,7 +16,7 @@ export function initCompReactionSelector(parent) {
if ($(this).hasClass('disabled')) return;
const actionURL = $(this).hasClass('item') ? $(this).closest('.select-reaction').data('action-url') : $(this).data('action-url');
const url = `${actionURL}/${$(this).hasClass('blue') ? 'unreact' : 'react'}`;
const url = `${actionURL}/${$(this).hasClass('primary') ? 'unreact' : 'react'}`;
$.ajax({
type: 'POST',
url,

View file

@ -84,8 +84,6 @@ export function initRepoTopicBar() {
transition: 'horizontal flip',
duration: 200,
variation: false,
blue: true,
basic: true,
},
className: {
label: 'ui small label'