打开/关闭搜索
搜索
打开/关闭菜单
1.3K
143
375
74K
医林拾薪
导航
首页
医林拾薪论坛
最近更改
随机页面
特殊页面
上传文件
快捷入口
医学本科题库
待翻译的英语单词
待补充英文的名词
小工具
导出ANKI卡组
本科题库创建向导
题库录入工具
录入英语单词
录入名称解释
Toggle preferences menu
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
登录
查看“MediaWiki:Gadget-button.css”的源代码
MediaWiki界面页面
分享此页面
查看
阅读
查看源代码
查看历史
associated-pages
消息
讨论
更多操作
←
MediaWiki:Gadget-button.css
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
此页面为本wiki上的软件提供界面文本,并受到保护以防止滥用。 如欲修改所有wiki的翻译,请访问
translatewiki.net
上的MediaWiki本地化项目。
您无权编辑此CSS页面,因为编辑此页面可能会影响所有访问者。
您可以查看和复制此页面的源代码。
/*! @license * * Buttons * Copyright 2012-2014 Alex Wolfe and Rob Levin * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* * Compass (optional) * * We recommend the use of autoprefixer instead of Compass * when using buttons. However, buttons does support Compass. * simply change $ubtn-use-compass to true and uncomment the * @import 'compass' code below to use Compass. */ /* * Required Files * * These files include the variables and options * and base css styles that are required to generate buttons. */ /* * $ubtn prefix (reserved) * * This prefix stands for Unicorn Button - ubtn * We provide a prefix to the Sass Variables to * prevent namespace collisions that could occur if * you import buttons as part of your Sass build process. * We kindly ask you not to use the prefix $ubtn in your project * in order to avoid possilbe name conflicts. Thanks! */ /* * Button Namespace (ex .button or .btn) * */ /* * Button Defaults * * Some default settings that are used throughout the button library. * Changes to these settings will be picked up by all of the other modules. * The colors used here are the default colors for the base button (gray). * The font size and height are used to set the base size for the buttons. * The size values will be used to calculate the larger and smaller button sizes. */ /* * Button Colors * * $ubtn-colors is used to generate the different button colors. * Edit or add colors to the list below and recompile. * Each block contains the (name, background, color) * The class is generated using the name: (ex .button-primary) */ /* * Button Shapes * * $ubtn-shapes is used to generate the different button shapes. * Edit or add shapes to the list below and recompile. * Each block contains the (name, border-radius). * The class is generated using the name: (ex .button-square). */ /* * Button Sizes * * $ubtn-sizes is used to generate the different button sizes. * Edit or add colors to the list below and recompile. * Each block contains the (name, size multiplier). * The class is generated using the name: (ex .button-giant). */ /* * Color Mixin * * Iterates through the list of colors and creates * */ /* * No Animation * * Sets animation property to none */ /* * Clearfix * * Clears floats inside the container */ /* * Base Button Style * * The default values for the .button class */ .button { color: #666; background-color: #EEE; border-color: #EEE; font-weight: 300; font-size: 16px; font-family: "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; text-decoration: none; text-align: center; line-height: 40px; height: 40px; padding: 0 40px; margin: 0; display: inline-block; appearance: none; cursor: pointer; border: none; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-transition-property: all; transition-property: all; -webkit-transition-duration: .3s; transition-duration: .3s; /* * Disabled State * * The disabled state uses the class .disabled, is-disabled, * and the form attribute disabled="disabled". * The use of !important is only added because this is a state * that must be applied to all buttons when in a disabled state. */ } .button:visited { color: #666; } .button:hover, .button:focus { background-color: #f6f6f6; text-decoration: none; outline: none; } .button:active, .button.active, .button.is-active { text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3); text-decoration: none; background-color: #eeeeee; border-color: #cfcfcf; color: #d4d4d4; -webkit-transition-duration: 0s; transition-duration: 0s; -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2); } .button.disabled, .button.is-disabled, .button:disabled { top: 0 !important; background: #EEE !important; border: 1px solid #DDD !important; text-shadow: 0 1px 1px white !important; color: #CCC !important; cursor: default !important; appearance: none !important; -webkit-box-shadow: none !important; box-shadow: none !important; opacity: .8 !important; } /* * Base Button Tyography * */ .button-uppercase { text-transform: uppercase; } .button-lowercase { text-transform: lowercase; } .button-capitalize { text-transform: capitalize; } .button-small-caps { font-variant: small-caps; } .button-icon-txt-large { font-size: 36px !important; } /* * Base padding * */ .button-width-small { padding: 0 10px !important; } /* * Base Colors * * Create colors for buttons * (.button-primary, .button-secondary, etc.) */ .button-primary, .button-primary-flat { background-color: #1B9AF7; border-color: #1B9AF7; color: #FFF; } .button-primary:visited, .button-primary-flat:visited { color: #FFF; } .button-primary:hover, .button-primary:focus, .button-primary-flat:hover, .button-primary-flat:focus { background-color: #4cb0f9; border-color: #4cb0f9; color: #FFF; } .button-primary:active, .button-primary.active, .button-primary.is-active, .button-primary-flat:active, .button-primary-flat.active, .button-primary-flat.is-active { background-color: #2798eb; border-color: #2798eb; color: #0880d7; } .button-plain, .button-plain-flat { background-color: #FFF; border-color: #FFF; color: #1B9AF7; } .button-plain:visited, .button-plain-flat:visited { color: #1B9AF7; } .button-plain:hover, .button-plain:focus, .button-plain-flat:hover, .button-plain-flat:focus { background-color: white; border-color: white; color: #1B9AF7; } .button-plain:active, .button-plain.active, .button-plain.is-active, .button-plain-flat:active, .button-plain-flat.active, .button-plain-flat.is-active { background-color: white; border-color: white; color: #e6e6e6; } .button-inverse, .button-inverse-flat { background-color: #222; border-color: #222; color: #EEE; } .button-inverse:visited, .button-inverse-flat:visited { color: #EEE; } .button-inverse:hover, .button-inverse:focus, .button-inverse-flat:hover, .button-inverse-flat:focus { background-color: #3c3c3c; border-color: #3c3c3c; color: #EEE; } .button-inverse:active, .button-inverse.active, .button-inverse.is-active, .button-inverse-flat:active, .button-inverse-flat.active, .button-inverse-flat.is-active { background-color: #222222; border-color: #222222; color: #090909; } .button-action, .button-action-flat { background-color: #A5DE37; border-color: #A5DE37; color: #FFF; } .button-action:visited, .button-action-flat:visited { color: #FFF; } .button-action:hover, .button-action:focus, .button-action-flat:hover, .button-action-flat:focus { background-color: #b9e563; border-color: #b9e563; color: #FFF; } .button-action:active, .button-action.active, .button-action.is-active, .button-action-flat:active, .button-action-flat.active, .button-action-flat.is-active { background-color: #a1d243; border-color: #a1d243; color: #8bc220; } .button-highlight, .button-highlight-flat { background-color: #FEAE1B; border-color: #FEAE1B; color: #FFF; } .button-highlight:visited, .button-highlight-flat:visited { color: #FFF; } .button-highlight:hover, .button-highlight:focus, .button-highlight-flat:hover, .button-highlight-flat:focus { background-color: #fec04e; border-color: #fec04e; color: #FFF; } .button-highlight:active, .button-highlight.active, .button-highlight.is-active, .button-highlight-flat:active, .button-highlight-flat.active, .button-highlight-flat.is-active { background-color: #f3ab26; border-color: #f3ab26; color: #e59501; } .button-caution, .button-caution-flat { background-color: #FF4351; border-color: #FF4351; color: #FFF; } .button-caution:visited, .button-caution-flat:visited { color: #FFF; } .button-caution:hover, .button-caution:focus, .button-caution-flat:hover, .button-caution-flat:focus { background-color: #ff7680; border-color: #ff7680; color: #FFF; } .button-caution:active, .button-caution.active, .button-caution.is-active, .button-caution-flat:active, .button-caution-flat.active, .button-caution-flat.is-active { background-color: #f64c59; border-color: #f64c59; color: #ff1022; } .button-royal, .button-royal-flat { background-color: #7B72E9; border-color: #7B72E9; color: #FFF; } .button-royal:visited, .button-royal-flat:visited { color: #FFF; } .button-royal:hover, .button-royal:focus, .button-royal-flat:hover, .button-royal-flat:focus { background-color: #a49ef0; border-color: #a49ef0; color: #FFF; } .button-royal:active, .button-royal.active, .button-royal.is-active, .button-royal-flat:active, .button-royal-flat.active, .button-royal-flat.is-active { background-color: #827ae1; border-color: #827ae1; color: #5246e2; } /* * Base Layout Styles * * Very Miminal Layout Styles */ .button-block, .button-stacked { display: block; } /* * Button Types (optional) * * All of the files below represent the various button * types (including shapes & sizes). None of these files * are required. Simple remove the uneeded type below and * the button type will be excluded from the final build */ /* * Button Shapes * * This file creates the various button shapes * (ex. Circle, Rounded, Pill) */ .button-square { border-radius: 0; } .button-box { border-radius: 10px; } .button-rounded { border-radius: 4px; } .button-pill { border-radius: 200px; } .button-circle { border-radius: 100%; }
返回
MediaWiki:Gadget-button.css
。