twitter-bootstrap – 用于rails app的Bootstrap 4 hex颜色

栏目: Ruby · 发布时间: 6年前

内容简介:我的问题是我试图将我网站上的一些颜色与引导4“bg-primary”,“btn-primary”等颜色相匹配.翻译自:https://stackoverflow.com/questions/47702879/bootstrap-4-hex-colors-for-rails-app

我的问题是我试图将我网站上的一些颜色与引导4“bg-primary”,“btn-primary”等颜色相匹配.

获取Bootstrap中使用的默认值的最简单方法是检查源中的scss变量.由于该软件包可以从Github公开获得,因此即使不安装它也可以执行此操作.变量在

bootstrap/scss/_variables.scss

文件中设置.

默认颜色如下:

// Colors
$blue:    #007bff !default; // primary
$indigo:  #6610f2 !default;
$purple:  #6f42c1 !default;
$pink:    #e83e8c !default;
$red:     #dc3545 !default; // danger
$orange:  #fd7e14 !default;
$yellow:  #ffc107 !default; // warning
$green:   #28a745 !default; // success
$teal:    #20c997 !default;
$cyan:    #17a2b8 !default; // info

// Grays
$white:    #fff !default;
$gray-100: #f8f9fa !default; // light
$gray-200: #e9ecef !default;
$gray-300: #dee2e6 !default;
$gray-400: #ced4da !default;
$gray-500: #adb5bd !default;
$gray-600: #868e96 !default; // secondary
$gray-700: #495057 !default;
$gray-800: #343a40 !default; // dark
$gray-900: #212529 !default;
$black:    #000 !default;

翻译自:https://stackoverflow.com/questions/47702879/bootstrap-4-hex-colors-for-rails-app


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Dynamic Programming

Dynamic Programming

Richard Bellman / Dover Publications / 2003-03-04 / USD 19.95

An introduction to the mathematical theory of multistage decision processes, this text takes a "functional equation" approach to the discovery of optimum policies. The text examines existence and uniq......一起来看看 《Dynamic Programming》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具