# Magento UI library
The Magento UI library is a flexible modular Magento frontend library that is designed to assist Magento theme developers. It employs a set of mixins for base elements to ease frontend theme development and customization. The Magento UI library offers the following characteristics for those who develop or customize Magento themes. It is:
* Built on LESS preprocessor
* Focused on web standards
* Customizable
* Easy to maintain
* Responsive
* Accessible
The library provides the ability to customize all of the following user interface elements:
* actions-toolbar
* breadcrumbs
* buttons
* components
* drop-downs
* forms
* icons
* layout
* loaders
* messages
* pagination
* popups
* ratings
* resets
* responsive
* sections - tabs and accordions
* tables
* tooltips
* typography
* utilities
* list of theme variables
# Magento UI library file structure
Magento UI library is located under `/lib/web/` folder. It and employs:
* `css/` folder where the library files are placed
* `fonts/` folder where default and icon fonts are placed
* `images/` folder where default images are placed
* `jquery/` folder where jQuery and jQuery widgets are placed
### Magento UI library structure
```css
/lib/web/
├── css/
│ ├── docs/ (Library documentation)
│ │ ├── source/
│ │ │ ├── _actions-toolbar.less
│ │ │ ├── _breadcrumbs.less
│ │ │ ├── _buttons.less
│ │ │ ├── _dropdowns.less
│ │ │ ├── _forms.less
│ │ │ ├── _icons.less
│ │ │ ├── _layout.less
│ │ │ ├── _lib.less
│ │ │ ├── _loaders.less
│ │ │ ├── _messages.less
│ │ │ ├── _pages.less
│ │ │ ├── _popups.less
│ │ │ ├── _rating.less
│ │ │ ├── _resets.less
│ │ │ ├── _responsive.less
│ │ │ ├── _sections.less
│ │ │ ├── _tables.less
│ │ │ ├── _tooltips.less
│ │ │ ├── _typography.less
│ │ │ ├── _utilities.less
│ │ │ ├── _variables.less
│ │ │ ├── _components.less
│ │ │ ├── docs.less
│ │ │ └── README.md
│ │ ├─── extends.html
│ │ ├─── actions-toolbar.html
│ │ ├─── breadcrumbs.html
│ │ ├─── buttons.html
│ │ ├─── components.html
│ │ ├─── docs.css
│ │ ├─── docs.html
│ │ ├─── dropdowns.html
│ │ ├─── forms.html
│ │ ├─── icons.html
│ │ ├─── index.html
│ │ ├─── layout.html
│ │ ├─── lib.html
│ │ ├─── loaders.html
│ │ ├─── messages.html
│ │ ├─── pages.html
│ │ ├─── popups.html
│ │ ├─── rating.html
│ │ ├─── resets.html
│ │ ├─── responsive.html
│ │ ├─── sections.html
│ │ ├─── tables.html
│ │ ├─── tooltips.html
│ │ ├─── typography.html
│ │ ├─── utilities.html
│ │ └─── variables.html
│ └── source/
│ ├── components/ (Reusable components files)
│ │ └── _modals.less
│ ├── lib/ (Library source files)
│ │ └── variables/ (Decoupled variables)
│ │ └── ...
│ │ ├── _extends.less
│ │ ├── _actions-toolbar.less
│ │ ├── _breadcrumbs.less
│ │ ├── _buttons.less
│ │ ├── _dropdowns.less
│ │ ├── _forms.less
│ │ ├── _icons.less
│ │ ├── _layout.less
│ │ ├── _lib.less
│ │ ├── _loaders.less
│ │ ├── _messages.less
│ │ ├── _navigation.less
│ │ ├── _pages.less
│ │ ├── _popups.less
│ │ ├── _rating.less
│ │ ├── _resets.less
│ │ ├── _responsive.less
│ │ ├── _sections.less
│ │ ├── _tables.less
│ │ ├── _tooltips.less
│ │ ├── _typography.less
│ │ ├── _utilities.less
│ │ └── _variables.less
│ ├── _extend.less
│ └── _theme.less
├── fonts/
│ └── Blank-Theme-Icons/ (Library custom icons font)
├── images/
│ └── blank-theme-icons.png (Library icons sprite)
└── jquery/ (Library javascript files)
```
# Magento UI library naming convention
Magento UI library employs a variables and mixins naming convention whereby names of variables and mixins describe their purpose or functions they perform.
A variable or a mixins name may only contain lowercase alphanumeric characters, "-" and "_" characters. A variable name must start with "@" character.
If a variable or mixins name consists of more than one word, they must be concatenated with one hyphen character.
# Less variables naming
A *.less file variable can contain lowercase letters, numbers, special characters: "@", "-" and "_". It must start with "@" character and consist of words concatenated with one hyphen. It should not contain capital letters. A variable name should describe its purpose.
A variable name should be formed according to the following rule:
`'@' + 'object' + '-' + 'property' + '-' + 'state' = @object-property-state`
If it is a private variable (is used only in a mixin), it must start with "_" character after "@":
`'@' + '_' + 'object' + '-' + 'property' + '-' + 'state' = @_object-property-state`
#### Examples:
##### Acceptable:
```css
@link-color-hover;
@color-primary;
@color-2;
```
Private variables:
```css
@_padding-left;
@_font-size;
```
##### Unacceptable:
```css
@Link-Color-Hover;
@colorPrimary;
@color--primary;
@paddingleft;
@__font-size;
```
# Less mixins naming
A less mixin name can contain lowercase letters, numbers, "-" and "_" characters. It should not contain capital letters.
A mixin name can consist of one or several words, concatenated with one hyphen. If the mixin is private, its name must start with the "_" character. Mixin should be named after property or action it describes.
#### Examples:
##### Acceptable:
```css
.mixin-name() {}
.transition() {}
.mixin() {}
._button-gradient() {}
```
##### Unacceptable:
```css
.mixinName() {}
.__transition() {}
.MiXiN() {}
._button--gradient() {}
```
# Less Code Standards
## General rules
### Indentation
Please verified that you use spaces instead tabs:
* Tab size: 4 spaces
* Indent size: 4 spaces
* Continuation indent: 4 spaces
```css
.nav {
.nav-item {
...
}
}
```
### Format
#### Braces
Add space before opening brace and line break after. And line break before closing brace.
##### Not recommended:
```css
.nav{color: @nav__color;}
```
##### Recommended:
```css
.nav {
color: @nav__color;
}
```
#### Selector delimiters
Add line break after each sel
没有合适的资源?快使用搜索试试~ 我知道了~
基于PHP的magento开源php电子商务系统稳定版源码.zip
共2000个文件
xml:903个
js:561个
md:146个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 61 浏览量
2023-08-27
23:48:37
上传
评论
收藏 37.25MB ZIP 举报
温馨提示
基于PHP的magento开源php电子商务系统稳定版源码.zip
资源推荐
资源详情
资源评论
收起资源包目录
基于PHP的magento开源php电子商务系统稳定版源码.zip (2000个子文件)
docs.css 335KB
ext-all.css 70KB
lighting.css 22KB
ytheme-magento.css 20KB
ui.css 15KB
ui.css 15KB
ui.css 8KB
mac_os_x.css 7KB
window.css 7KB
calendar.css 6KB
style.css 6KB
dialog.css 5KB
dialog.css 5KB
style.css 5KB
dialog.css 5KB
style.css 5KB
translate-inline-vde.css 5KB
style.css 4KB
mac_os_x_dialog.css 4KB
dialog.css 4KB
nuncio.css 4KB
jquery.multiselect.css 4KB
colorpicker.css 3KB
default.css 3KB
alphacube.css 3KB
darkX.css 3KB
content.css 2KB
ui.css 2KB
content.css 2KB
ui.css 2KB
fullpage.css 2KB
spread.css 2KB
bundle-product.css 2KB
alert.css 2KB
integration.css 2KB
ui_black.css 2KB
jquery.fileupload-ui.css 2KB
media.css 1KB
content.css 1KB
alert_lite.css 1KB
styles.css 1KB
content.css 1KB
translate-inline.css 1017B
ui_silver.css 855B
props.css 846B
advimage.css 659B
popup.css 505B
debug.css 492B
content.css 488B
styles.css 484B
advlink.css 472B
content.css 444B
result.css 391B
resultImport.css 382B
resultNormalized.css 380B
source.css 346B
sourceImport.css 319B
row.css 281B
template.css 252B
advhr.css 235B
test.css 222B
cell.css 189B
attributes.css 186B
searchreplace.css 170B
content.css 169B
table.css 157B
styles.css 141B
iepngfix.css 113B
content.css 97B
media.htm 37KB
props.htm 36KB
link.htm 15KB
template.htm 12KB
image.htm 12KB
fullpage.htm 10KB
table.htm 9KB
ins.htm 7KB
del.htm 7KB
cell.htm 7KB
acronym.htm 6KB
abbr.htm 6KB
cite.htm 6KB
row.htm 6KB
attributes.htm 6KB
emotions.htm 6KB
searchreplace.htm 5KB
image.htm 4KB
fullscreen.htm 3KB
color_picker.htm 3KB
about.htm 3KB
link.htm 2KB
rule.htm 2KB
charmap.htm 2KB
shortcuts.htm 2KB
merge_cells.htm 1KB
template.htm 1KB
source_editor.htm 1KB
pastetext.htm 1KB
anchor.htm 1KB
dialog.htm 886B
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
毕业_设计
- 粉丝: 1924
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 三菱PLC(Mitsubishi)通讯协议的C#实现,支持FX、Q系列的ASCII-3E、BIN-3E、FX串口格式
- 五一建模20242024
- rainy-day.jpg
- IMG_20240501_171218.jpg
- Swift-内购封装swift版本
- 经典CNN网络之ResNet 图像分类网络实战项目:7种小麦叶片病害分类(迁移学习)
- Java毕设之ssm010基于ssm的新能源汽车在线租赁管理系统+vue.rar
- Java毕设之ssm009毕业生就业信息统计系统+vue.rar
- Java毕设之ssm008医院门诊挂号系统+jsp.rar
- Java毕设之ssm007亚盛汽车配件销售业绩管理统+jsp.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功