akveo / akveo/nebular

How to allign input fields in centre in a card body

未关闭
#2,570 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
8.1k
派生
1.5k
PR 合并指标
30 天内没有已合并 PR

描述

Hi,

Yesterday I started working with nebular theme, really nice designs. Today I wanted to build a login form inside a card body, so far I put all the elements I need inside, now I am trying to centre them, but I can not make it work. I tried using css but it did not work. Maybe someone here can help me? I am a amateur in css so I do not know if I did it right. I have an nrwl angular project and my component is a lib with its own scss but right now that is not in use.

Here is my html:

```



Moniesta Giris













Login



```

My theme.scss
```
@import '~@nebular/theme/styles/theming';
@import '~@nebular/theme/styles/themes/default';
$nb-enable-css-custom-properties:true;

$nb-themes: nb-register-theme((

// add your variables here like:
layout-background-color: #FFFFFF,
input-tiny-padding: 1rem,

// color-primary-100: #f2f6ff,
// color-primary-200: #d9e4ff,
// color-primary-300: #a6c1ff,
// color-primary-400: #598bff,
// color-primary-500: #3366ff,
// color-primary-600: #274bdb,
// color-primary-700: #1a34b8,
// color-primary-800: #102694,
// color-primary-900: #091c7a,

), default, default);

```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。