Ваадин не может изменить цвет кнопки - PullRequest
0 голосов
/ 01 января 2019

Я пытался изменить цвет моих кнопок в style.css и в файле mytheme.scss, но когда я меняю цвет фона в .mytheme .v-button, ничего не происходит.Я использую тему Вало.Я что-то не так делаю?

Это код из Style.css

.mytheme .v-button {
    position: relative;
    text-align: center;
    white-space: nowrap;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    cursor: pointer;
    height: 37px;
    padding: 0 16px;
    color: #191919;
    font-weight: 400;


    border-radius: 4px;
    border: 1px solid #c5c5c5;
    border-top-color: #c5c5c5;
    border-bottom-color: #bcbcbc;
    background-color: #000000;
    background-image: -webkit-linear-gradient(top, #fafafa 2%, #efefef 98%);
    background-image: linear-gradient(to bottom,#fafafa 2%, #efefef 98%);
    -webkit-box-shadow: inset 0 1px 0 white, inset 0 -1px 0 #e7e7e7, 0 2px 3px rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 0 white, inset 0 -1px 0 #e7e7e7, 0 2px 3px rgba(0, 0, 0, 0.05);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

РЕДАКТИРОВАТЬ:

У меня теперь проблема в том, что мое вертикальное расположение не будет в центре:

public MainMenuView() {
    vLayout.addComponent(buttons);
    vLayout.setSizeFull();
    vLayout.setComponentAlignment(buttons, Alignment.MIDDLE_CENTER);
    this.setCompositionRoot(vLayout);

    addMerchant.setStyleName("mystyle");
    showMerchants.setStyleName("mystyle");
    merchantSearch.setStyleName("mystyle");
    lHeader.addStyleName("mylabelstyle");
    addMerchant.addClickListener(e -> addMerchant());
    showMerchants.addClickListener(e -> showMerchants());
    merchantSearch.addClickListener(e -> merchantSearch());

}
...