cloudstack-mirror/ui/src/style
Bernardo De Marco Gonçalves 01c721fcda
Improvements to quota tariffs APIs and UI (#9225)
* reface quotaTariffList process and add listOnlyRemoved parameter

* add unit tests for createQuotaTariffResponse and isUserAllowedToSeeActivationRules methods

* update QuotaTariffListCmdTest

* refactor quota tariffs creation

* refactor quota tariffs update

* fix unit test in JsInterpreter

* remove unused import

* refactor quota listing and add quota deletion

* add functionality to create tariff from UI, not working when specifying dates

* fix date parsing

* add labels

* fix details view of tariffs

* new update tariff view

* fix filter placeholder

* remove debug html

* add labels

* make value field to be required when updating a tariff

* add labels

* add portuguese labels

* remove unused label

* fix updating tariff when there was no enddate specified

* refactor dates

* refactor dates

* clear code

* update disabled dates in date picker

* clear ListView component

* fix unnecessary updates when the new end date was equal to the exising end date

* fix when today was selected to start date

* add keyword to filter

* change usage type response

* add keyword and usagetype filter on UI

* fix disabled end dates in date picker

* modify datepickers to use datetime

* small fixes

* make value an unrequired field on update form

* remove duplicate import

* remove unused css classes

* add UI support for position parameter

* resize input fields to fill all available horizontal space

* remove console.log()

* remove unnecessary fully qualified names

* replace `usagetypeid` property name to `id` on `listUsageTypes` API call

* replace `usagetypeid` property name to `id` on `listUsageTypes` API call
2024-08-15 14:16:44 -03:00
..
ant-overwrite UI: Fixes suffix icon on project selector not work (#6671) 2022-08-25 22:14:31 +05:30
common pre-commit: apply end-of-file-fixer to all files (#7551) 2023-08-02 13:47:21 +02:00
components ui,server,api: resource metrics improvements (#6803) 2023-01-30 09:48:03 +01:00
frame pre-commit: apply end-of-file-fixer to all files (#7551) 2023-08-02 13:47:21 +02:00
layout image: zones tab for template and iso (#102) 2021-01-20 07:06:15 +05:30
objects Improvements to quota tariffs APIs and UI (#9225) 2024-08-15 14:16:44 -03:00
variables src: add apache v2.0 license header to files 2021-01-20 07:06:14 +05:30
dark-mode.less UI: Admin, account and project dashboard improvements (#7956) 2023-10-06 13:40:22 +05:30
index.less ui: AntD3 upgrade (#7306) 2023-04-11 14:05:21 +05:30
README.md Fix spelling (#6860) 2022-11-13 10:56:15 +01:00
vars.less ui: add new API docs tab (#9409) 2024-07-22 10:46:40 +05:30

index.less

  • src/styles/index.less imports all necessary rules for cloudstack

ant .less structure node_modules/ant-design-vue/

main .less entry points:

  1. dist/antd.less
    • imports everthing with index.less + components.less
  2. lib/style/index.less
    • themes/default.less
      • color/colors'
      • default theme @variables
    • core/index.less
      • includes base styles, motion rules and iconfont

src/style/ explaination

  • index.less includes ant styles, as well as all custom variables and rules

folders:

  1. variables
    • include all custom variables here
  2. common
    • include all rules that reset styles, define global stuffs without classes at all
    • e.g. body {} p, ul, li {} h1, h2, h3 {}
  3. ant-overwrite
    • any styles that overwrites the existin ant rules by any reason
    • e.g. classes like .ant-layout-header .anticon {}
  4. frame
    • everything that belongs to the frame
    • e.g. header, footer, nav, sider, content (just the actual content frame, not every component in it)
  5. layout
    • rules that modify the page at all if new layout class is set.
    • e.g. #html class="layout-ant-black"#
  6. objects
    • repeatly used elements like buttons, inputs
  7. components
    • complex elements like dropdown, forms, table, search (usually include this to components/FooterToolbar/ folder)

The "/deep/" combinator