Browse Source

Merge pull request #389 from twbs/remove-ie-workarounds

Remove IE <= 9 workarounds from docs.
pull/418/head
Connor Sears 11 years ago
parent
commit
55468dc58d
  1. 9
      docs/_includes/browser-warning.html
  2. 6
      docs/_includes/header.html
  3. 1
      docs/_layouts/default.html
  4. 1
      docs/_layouts/home.html
  5. 56
      docs/assets/css/docs.css
  6. 2
      docs/assets/css/docs.min.css
  7. 2
      docs/one.html
  8. 2
      docs/two.html
  9. 49
      sass/docs.scss

9
docs/_includes/browser-warning.html

@ -0,0 +1,9 @@
<!--[if lt IE 9]>
<div class="bs-callout bs-callout-danger">
<h4>Attention!</h4>
<p>
Looks like your current browser is old and doesn't support many features used in this page.
Please take a second to <a href="http://browsehappy.com/">upgrade to a more modern browser</a>.
</p>
</div>
<![endif]-->

6
docs/_includes/header.html

@ -14,12 +14,6 @@
<link rel="stylesheet" href="/dist/css/ratchet.min.css">
<link rel="stylesheet" href="/assets/css/docs.min.css">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/assets/img/apple-touch-icon-114x114.png">
<script>

1
docs/_layouts/default.html

@ -4,6 +4,7 @@
{% include header.html %}
</head>
<body ontouchstart="">
{% include browser-warning.html %}
{{ content }}
</body>
</html>

1
docs/_layouts/home.html

@ -4,6 +4,7 @@
{% include header.html %}
</head>
<body class="docs-home" ontouchstart="">
{% include browser-warning.html %}
{{ content }}
</body>
</html>

56
docs/assets/css/docs.css

@ -1939,3 +1939,59 @@ hr {
opacity: 1;
}
}
/* Taken from Bootstrap docs */
/*
* Callouts
*
* Not quite alerts, but custom and helpful notes for folks reading the docs.
* Requires a base and modifier class.
*/
/* Common styles for all types */
.bs-callout {
padding: 20px;
margin: 20px 0;
border-left: 3px solid #eee;
}
.bs-callout h4 {
margin-top: 0;
margin-bottom: 5px;
}
.bs-callout p:last-child {
margin-bottom: 0;
}
.bs-callout code {
background-color: #fff;
border-radius: 3px;
}
/* Variations */
.bs-callout-danger {
background-color: #fdf7f7;
border-color: #d9534f;
}
.bs-callout-danger h4 {
color: #d9534f;
}
.bs-callout-warning {
background-color: #fcf8f2;
border-color: #f0ad4e;
}
.bs-callout-warning h4 {
color: #f0ad4e;
}
.bs-callout-info {
background-color: #f4f8fa;
border-color: #5bc0de;
}
.bs-callout-info h4 {
color: #5bc0de;
}

2
docs/assets/css/docs.min.css vendored

File diff suppressed because one or more lines are too long

2
docs/one.html

@ -10,7 +10,7 @@
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="/dist/css/ratchet.min.css">
<!--[if lt IE 9]><script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script><![endif]-->
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/assets/img/apple-touch-icon-114x114.png">
</head>
<body ontouchstart="">

2
docs/two.html

@ -10,7 +10,7 @@
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="/dist/css/ratchet.min.css">
<!--[if lt IE 9]><script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script><![endif]-->
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/assets/img/apple-touch-icon-114x114.png">
</head>
<body ontouchstart="">

49
sass/docs.scss

@ -1038,3 +1038,52 @@ hr {
opacity: 1;
}
}
/* Taken from Bootstrap docs */
/*
* Callouts
*
* Not quite alerts, but custom and helpful notes for folks reading the docs.
* Requires a base and modifier class.
*/
/* Common styles for all types */
.bs-callout {
padding: 20px;
margin: 20px 0;
border-left: 3px solid #eee;
}
.bs-callout h4 {
margin-top: 0;
margin-bottom: 5px;
}
.bs-callout p:last-child {
margin-bottom: 0;
}
.bs-callout code {
background-color: #fff;
border-radius: 3px;
}
/* Variations */
.bs-callout-danger {
background-color: #fdf7f7;
border-color: #d9534f;
}
.bs-callout-danger h4 {
color: #d9534f;
}
.bs-callout-warning {
background-color: #fcf8f2;
border-color: #f0ad4e;
}
.bs-callout-warning h4 {
color: #f0ad4e;
}
.bs-callout-info {
background-color: #f4f8fa;
border-color: #5bc0de;
}
.bs-callout-info h4 {
color: #5bc0de;
}

Loading…
Cancel
Save