text
stringlengths 2
1.04M
| meta
dict |
|---|---|
'use strict'
var bnneg = require('big-rat/neg')
module.exports = neg
function neg(v) {
return v.map(bnneg)
}
|
{
"content_hash": "535ac1c60c5eb7252506f4b70987d25a",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 34,
"avg_line_length": 12.666666666666666,
"alnum_prop": 0.6666666666666666,
"repo_name": "oudalab/fajita",
"id": "fa8e6e274681c7b14909ccfe1fb8641f868b5b97",
"size": "114",
"binary": false,
"copies": "8",
"ref": "refs/heads/master",
"path": "node_modules/plotly.js/node_modules/gl-contour2d/node_modules/clean-pslg/node_modules/rat-vec/neg.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "5936"
},
{
"name": "CSS",
"bytes": "14791"
},
{
"name": "HTML",
"bytes": "79261"
},
{
"name": "JavaScript",
"bytes": "203863"
},
{
"name": "Jupyter Notebook",
"bytes": "2483101"
},
{
"name": "Pug",
"bytes": "13130"
},
{
"name": "Python",
"bytes": "7851995"
},
{
"name": "Shell",
"bytes": "3299"
}
],
"symlink_target": ""
}
|
package com.navercorp.pinpoint.profiler.instrument.interceptor;
import java.lang.reflect.Modifier;
import com.navercorp.pinpoint.bootstrap.instrument.InstrumentMethod;
import com.navercorp.pinpoint.bootstrap.interceptor.InterceptorInvokerHelper;
import com.navercorp.pinpoint.bootstrap.interceptor.SimpleAroundInterceptor;
import com.navercorp.pinpoint.bootstrap.interceptor.StaticAroundInterceptor;
import com.navercorp.pinpoint.bootstrap.interceptor.registry.InterceptorRegistry;
import com.navercorp.pinpoint.profiler.util.JavaAssistUtils;
/**
* @author Jongho Moon
*
*/
public class InvokeCodeGenerator {
protected final Class<?> interceptorClass;
protected final InstrumentMethod targetMethod;
protected final int interceptorId;
protected final Type type;
public InvokeCodeGenerator(int interceptorId, Class<?> interceptorClass, InstrumentMethod targetMethod) {
this.interceptorClass = interceptorClass;
this.targetMethod = targetMethod;
this.interceptorId = interceptorId;
if (SimpleAroundInterceptor.class.isAssignableFrom(interceptorClass)) {
type = Type.SIMPLE;
} else if (StaticAroundInterceptor.class.isAssignableFrom(interceptorClass)) {
type = Type.STATIC;
} else {
type = Type.CUSTOM;
}
}
protected enum Type {
SIMPLE, STATIC, CUSTOM
}
protected String getInterceptorType() {
switch (type) {
case SIMPLE:
return SimpleAroundInterceptor.class.getName();
case STATIC:
return StaticAroundInterceptor.class.getName();
case CUSTOM:
return interceptorClass.getName();
}
return null;
}
protected String getParameterTypes() {
String[] parameterTypes = targetMethod.getParameterTypes();
return JavaAssistUtils.getParameterDescription(parameterTypes);
}
protected String getTarget() {
return Modifier.isStatic(targetMethod.getModifiers()) ? "null" : "this";
}
protected String getArguments() {
if (targetMethod.getParameterTypes().length == 0) {
return "null";
}
return "$args";
}
protected String getInterceptorInvokerHelperClassName() {
return InterceptorInvokerHelper.class.getName();
}
protected String getInterceptorRegistryClassName() {
return InterceptorRegistry.class.getName();
}
protected String getInterceptorVar() {
return getInterceptorVar(interceptorId);
}
public static String getInterceptorVar(int interceptorId) {
return "_$PINPOINT$_interceptor" + interceptorId;
}
}
|
{
"content_hash": "bbf91d37f87c47d838ca2989d5f67f5d",
"timestamp": "",
"source": "github",
"line_count": 86,
"max_line_length": 109,
"avg_line_length": 31.441860465116278,
"alnum_prop": 0.6941568047337278,
"repo_name": "coupang/pinpoint",
"id": "9774e0b5dd0870c3cf8781b1b7a2192b17f2a85a",
"size": "3298",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "profiler/src/main/java/com/navercorp/pinpoint/profiler/instrument/interceptor/InvokeCodeGenerator.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "22853"
},
{
"name": "CSS",
"bytes": "176668"
},
{
"name": "CoffeeScript",
"bytes": "10124"
},
{
"name": "Groovy",
"bytes": "1423"
},
{
"name": "HTML",
"bytes": "1003945"
},
{
"name": "Java",
"bytes": "6098482"
},
{
"name": "JavaScript",
"bytes": "3074899"
},
{
"name": "Makefile",
"bytes": "9807"
},
{
"name": "Python",
"bytes": "3523"
},
{
"name": "Ruby",
"bytes": "943"
},
{
"name": "Shell",
"bytes": "29813"
},
{
"name": "Thrift",
"bytes": "6383"
}
],
"symlink_target": ""
}
|
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null
|
{
"content_hash": "a7850ba62422e5ed31d6bb028c049760",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "ecb71081f9165890810fefe7d5c302a1aadfaff1",
"size": "176",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Plantae/Magnoliophyta/Magnoliopsida/Malpighiales/Ochnaceae/Ouratea/Ouratea goossensi/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
}
|
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null
|
{
"content_hash": "58c72f2454cf6b6f65fb878f7ffd91e0",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.307692307692308,
"alnum_prop": 0.6940298507462687,
"repo_name": "mdoering/backbone",
"id": "de0a9a2f6d45693521b2b43ccfd9b4c88cdf5faf",
"size": "210",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Plantae/Magnoliophyta/Liliopsida/Asparagales/Orchidaceae/Oncidium/Oncidium crinitum/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
}
|
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;
- (void)saveContext;
- (NSURL *)applicationDocumentsDirectory;
@end
|
{
"content_hash": "aeba53d7a335977ea56f293e8c9add9c",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 97,
"avg_line_length": 32.07142857142857,
"alnum_prop": 0.8195991091314031,
"repo_name": "shengpanpan/baisibudejie",
"id": "99926ee891674781276b2a4f333b217f142bca52",
"size": "785",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "仿百思不得姐/仿百思不得姐/Classes/Other/AppDelegate.h",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Objective-C",
"bytes": "752915"
},
{
"name": "Ruby",
"bytes": "126"
},
{
"name": "Shell",
"bytes": "8187"
}
],
"symlink_target": ""
}
|
html,
body,
.framework7-root {
position: relative;
height: 100%;
width: 100%;
overflow-x: hidden;
}
body {
margin: 0;
padding: 0;
font-size: 14px;
width: 100%;
background: #fff;
overflow: hidden;
-webkit-text-size-adjust: 100%;
-webkit-font-smoothing: antialiased;
}
.framework7-root {
overflow: hidden;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.framework7-initializing *,
.framework7-initializing *:before,
.framework7-initializing *:after {
-webkit-transition-duration: 0ms !important;
transition-duration: 0ms !important;
}
/*
a, button, input, textarea, .link, .button, label, .sortable-handler {
touch-action: manipulation;
-ms-touch-action: manipulation;
}
*/
@media (width: 1024px) and (height: 691px) and (orientation: landscape) {
html,
body,
.framework7-root {
height: 671px;
}
}
@media (width: 1024px) and (height: 692px) and (orientation: landscape) {
html,
body,
.framework7-root {
height: 672px;
}
}
* {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-touch-callout: none;
}
a,
input,
textarea,
select {
outline: 0;
}
a {
cursor: pointer;
text-decoration: none;
}
p {
margin: 1em 0;
}
.disabled {
opacity: 0.55 !important;
pointer-events: none !important;
}
.md body {
font-family: Roboto, Noto, Helvetica, Arial, sans-serif;
color: #212121;
line-height: 1.5;
}
.md .ios-only,
.md .if-ios {
display: none !important;
}
.md a {
color: #2196f3;
}
.md .theme-dark {
color: rgba(255, 255, 255, 0.87);
}
.md .color-theme-red a {
color: #f44336;
}
.md .color-theme-green a {
color: #4caf50;
}
.md .color-theme-blue a {
color: #2196f3;
}
.md .color-theme-pink a {
color: #e91e63;
}
.md .color-theme-yellow a {
color: #ffeb3b;
}
.md .color-theme-orange a {
color: #ff9800;
}
.md .color-theme-gray a {
color: #9e9e9e;
}
.md .color-theme-white a {
color: #ffffff;
}
.md .color-theme-black a {
color: #000000;
}
.md a.color-red {
color: #f44336;
}
.md a.color-green {
color: #4caf50;
}
.md a.color-blue {
color: #2196f3;
}
.md a.color-pink {
color: #e91e63;
}
.md a.color-yellow {
color: #ffeb3b;
}
.md a.color-orange {
color: #ff9800;
}
.md a.color-gray {
color: #9e9e9e;
}
.md a.color-white {
color: #ffffff;
}
.md a.color-black {
color: #000000;
}
/* === Statusbar === */
.statusbar {
position: absolute;
left: 0;
top: 0;
width: 100%;
z-index: 10000;
-webkit-box-sizing: border-box;
box-sizing: border-box;
display: none;
}
html.device-ios .statusbar,
html.ios:not(.device-ios):not(.device-android) .statusbar {
height: 20px;
}
html.device-android .statusbar,
html.md:not(.device-ios):not(.device-android) .statusbar {
height: 24px;
}
html.device-ios.device-iphone-x .statusbar {
height: constant(safe-area-inset-top);
height: env(safe-area-inset-top);
}
html.with-statusbar .statusbar {
display: block;
}
html.with-statusbar.device-ios .framework7-root,
html.with-statusbar.ios:not(.device-ios):not(.device-android) .framework7-root {
padding-top: 20px;
}
html.with-statusbar.device-android .framework7-root,
html.with-statusbar.md:not(.device-ios):not(.device-android) .framework7-root {
padding-top: 24px;
}
html.with-statusbar.device-iphone-x .framework7-root {
padding-top: constant(safe-area-inset-top);
padding-top: env(safe-area-inset-top);
}
.md .statusbar {
background: #0a6ebd;
}
.md .color-theme-red .statusbar {
background: #d2190b;
}
.md .color-theme-green .statusbar {
background: #357a38;
}
.md .color-theme-blue .statusbar {
background: #0a6ebd;
}
.md .color-theme-pink .statusbar {
background: #aa1145;
}
.md .color-theme-yellow .statusbar {
background: #eed500;
}
.md .color-theme-orange .statusbar {
background: #b36a00;
}
.md .color-theme-gray .statusbar {
background: #787878;
}
.md .color-theme-white .statusbar {
background: #d9d9d9;
}
.md .color-theme-black .statusbar {
background: #000000;
}
/* === Views === */
.views,
.view {
position: relative;
height: 100%;
z-index: 5000;
overflow: hidden;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
/* === Pages === */
.pages {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
}
.page {
-webkit-box-sizing: border-box;
box-sizing: border-box;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.page.stacked {
display: none;
}
.page-previous {
pointer-events: none;
}
.page-content {
overflow: auto;
-webkit-overflow-scrolling: touch;
-webkit-box-sizing: border-box;
box-sizing: border-box;
height: 100%;
position: relative;
z-index: 1;
}
.md .page-shadow-effect {
position: absolute;
top: 0;
width: 16px;
bottom: 0;
z-index: -1;
content: '';
opacity: 0;
right: 100%;
background: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0)), color-stop(10%, rgba(0, 0, 0, 0)), color-stop(50%, rgba(0, 0, 0, 0.01)), to(rgba(0, 0, 0, 0.2)));
background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 0.01) 50%, rgba(0, 0, 0, 0.2) 100%);
background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 0.01) 50%, rgba(0, 0, 0, 0.2) 100%);
}
.md .page-opacity-effect {
position: absolute;
left: 0;
top: 0;
background: rgba(0, 0, 0, 0.1);
width: 100%;
bottom: 0;
content: '';
opacity: 0;
z-index: 10000;
}
.md .page {
background: #fff;
}
.md .page-next {
-webkit-transform: translate3d(0, 56px, 0);
transform: translate3d(0, 56px, 0);
opacity: 0;
pointer-events: none;
}
.md .page-next.page-next-on-right {
-webkit-transform: translate3d(100%, 0, 0);
transform: translate3d(100%, 0, 0);
}
.md .page-transitioning,
.md .page-transitioning .page-shadow-effect,
.md .page-transitioning .page-opacity-effect {
-webkit-transition-duration: 250ms;
transition-duration: 250ms;
}
.md .page-transitioning-swipeback,
.md .page-transitioning-swipeback .page-shadow-effect,
.md .page-transitioning-swipeback .page-opacity-effect {
-webkit-transition-duration: 400ms;
transition-duration: 400ms;
}
.md .router-transition-forward .page,
.md .router-transition-backward .page {
pointer-events: none;
}
.md .router-transition-css-forward .page-next {
-webkit-animation: md-page-next-to-current 250ms forwards;
animation: md-page-next-to-current 250ms forwards;
}
.md .router-transition-css-forward .page-current {
-webkit-animation: none;
animation: none;
}
.md .router-transition-css-backward .page-current {
-webkit-animation: md-page-current-to-next 250ms forwards;
animation: md-page-current-to-next 250ms forwards;
}
.md .router-transition-css-backward .page-previous {
-webkit-animation: none;
animation: none;
}
.md .theme-dark .page,
.page.md .theme-dark {
background: #171717;
}
@-webkit-keyframes md-page-next-to-current {
from {
-webkit-transform: translate3d(0, 56px, 0);
transform: translate3d(0, 56px, 0);
opacity: 0;
}
to {
-webkit-transform: translate3d(0, 0px, 0);
transform: translate3d(0, 0px, 0);
opacity: 1;
}
}
@keyframes md-page-next-to-current {
from {
-webkit-transform: translate3d(0, 56px, 0);
transform: translate3d(0, 56px, 0);
opacity: 0;
}
to {
-webkit-transform: translate3d(0, 0px, 0);
transform: translate3d(0, 0px, 0);
opacity: 1;
}
}
@-webkit-keyframes md-page-current-to-next {
from {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
opacity: 1;
}
to {
-webkit-transform: translate3d(0, 56px, 0);
transform: translate3d(0, 56px, 0);
opacity: 0;
}
}
@keyframes md-page-current-to-next {
from {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
opacity: 1;
}
to {
-webkit-transform: translate3d(0, 56px, 0);
transform: translate3d(0, 56px, 0);
opacity: 0;
}
}
/* === Link === */
.link,
.tab-link {
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-align-content: center;
-ms-flex-line-pack: center;
align-content: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
position: relative;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
z-index: 1;
}
.md .link i + span,
.md .link i + i,
.md .link span + i,
.md .link span + span {
margin-left: 8px;
}
/* === Navbar === */
.navbar {
position: relative;
left: 0;
top: 0;
width: 100%;
z-index: 500;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.navbar b {
font-weight: 500;
}
.navbar a.link {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
.navbar .title,
.navbar .left,
.navbar .right {
position: relative;
z-index: 1;
}
.navbar .title {
text-align: center;
position: relative;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
-webkit-flex-shrink: 10;
-ms-flex-negative: 10;
flex-shrink: 10;
font-weight: 500;
display: inline-block;
}
.navbar .subtitle {
display: block;
}
.navbar .left,
.navbar .right {
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.navbar .right:first-child {
position: absolute;
height: 100%;
}
.navbar-inner {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.navbar-inner.stacked {
display: none;
}
.views > .navbar,
.view > .navbar,
.page > .navbar {
position: absolute;
}
.md .navbar {
height: 56px;
background: #2196f3;
color: #fff;
font-size: 20px;
}
.md .navbar:after {
content: '';
position: absolute;
right: 0;
width: 100%;
top: 100%;
bottom: auto;
height: 10px;
pointer-events: none;
background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.3)), color-stop(40%, rgba(0, 0, 0, 0.1)), color-stop(50%, rgba(0, 0, 0, 0.05)), color-stop(80%, rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0)));
background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0) 100%);
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0) 100%);
}
.md .navbar.no-shadow:after {
display: none;
}
.md .navbar a {
color: inherit;
}
.md .navbar a.link {
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
padding: 0 16px;
min-width: 48px;
height: 56px;
line-height: 56px;
}
.md .navbar a.link:before {
content: '';
width: 152%;
height: 152%;
position: absolute;
left: -26%;
top: -26%;
background-image: -webkit-radial-gradient(center, circle, rgba(255, 255, 255, 0.15) 66%, rgba(255, 255, 255, 0) 66%);
background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 66%, rgba(255, 255, 255, 0) 66%);
background-repeat: no-repeat;
background-position: center;
background-size: 100% 100%;
opacity: 0;
pointer-events: none;
-webkit-transition-duration: 600ms;
transition-duration: 600ms;
}
.md .navbar a.link.active-state:before {
opacity: 1;
-webkit-transition-duration: 150ms;
transition-duration: 150ms;
}
.md .navbar a.icon-only {
min-width: 0;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
}
.md .navbar .title {
margin: 0 16px;
line-height: 1.2;
text-align: left;
}
.md .navbar .subtitle {
line-height: 1.2;
font-size: 14px;
font-weight: normal;
color: rgba(255, 255, 255, 0.85);
}
.md .navbar .right {
margin-left: auto;
}
.md .navbar .right:first-child {
right: 16px;
}
.md .navbar-inner {
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
overflow: hidden;
}
.md .page-with-subnavbar .navbar-inner {
overflow: visible;
}
.md .navbar ~ * .page-content,
.md .navbar ~ .page-content {
padding-top: 56px;
}
@media (min-width: 768px) {
.md .navbar {
height: 64px;
}
.md .navbar a.link {
height: 64px;
line-height: 64px;
}
.md .navbar ~ * .page-content,
.md .navbar ~ .page-content {
padding-top: 64px;
}
}
.md .navbar-transitioning {
-webkit-transition-duration: 400ms;
transition-duration: 400ms;
}
.md .navbar-hidden {
-webkit-transform: translate3d(0, -100%, 0);
transform: translate3d(0, -100%, 0);
}
.md .navbar-hidden:after {
display: none;
}
.md .color-theme-red .navbar,
.md .color-theme-red.navbar {
background: #f44336;
}
.md .color-theme-green .navbar,
.md .color-theme-green.navbar {
background: #4caf50;
}
.md .color-theme-blue .navbar,
.md .color-theme-blue.navbar {
background: #2196f3;
}
.md .color-theme-pink .navbar,
.md .color-theme-pink.navbar {
background: #e91e63;
}
.md .color-theme-yellow .navbar,
.md .color-theme-yellow.navbar {
background: #ffeb3b;
}
.md .color-theme-orange .navbar,
.md .color-theme-orange.navbar {
background: #ff9800;
}
.md .color-theme-gray .navbar,
.md .color-theme-gray.navbar {
background: #9e9e9e;
}
.md .color-theme-white .navbar,
.md .color-theme-white.navbar {
background: #ffffff;
}
.md .color-theme-black .navbar,
.md .color-theme-black.navbar {
background: #000000;
}
.md .navbar.color-red {
background: #f44336;
}
.md .navbar.color-green {
background: #4caf50;
}
.md .navbar.color-blue {
background: #2196f3;
}
.md .navbar.color-pink {
background: #e91e63;
}
.md .navbar.color-yellow {
background: #ffeb3b;
}
.md .navbar.color-orange {
background: #ff9800;
}
.md .navbar.color-gray {
background: #9e9e9e;
}
.md .navbar.color-white {
background: #ffffff;
}
.md .navbar.color-black {
background: #000000;
}
@media (orientation: landscape) {
.md.device-iphone-x .ios-left-edge .navbar-inner,
.md.device-iphone-x .ios-edges .navbar-inner,
.md.device-iphone-x .popup .navbar-inner,
.md.device-iphone-x .sheet-modal .navbar-inner,
.md.device-iphone-x .panel-left .navbar-inner {
padding-left: constant(safe-area-inset-left);
padding-left: env(safe-area-inset-left);
}
.md.device-iphone-x .ios-right-edge .navbar-inner,
.md.device-iphone-x .ios-edges .navbar-inner,
.md.device-iphone-x .popup .navbar-inner,
.md.device-iphone-x .sheet-modal .navbar-inner,
.md.device-iphone-x .panel-right .navbar-inner {
padding-right: constant(safe-area-inset-right);
padding-right: env(safe-area-inset-right);
}
}
/* === Toolbar === */
.toolbar {
width: 100%;
position: relative;
margin: 0;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
z-index: 500;
-webkit-box-sizing: border-box;
box-sizing: border-box;
left: 0;
}
.toolbar b {
font-weight: 500;
}
.toolbar a {
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-flex-shrink: 1;
-ms-flex-negative: 1;
flex-shrink: 1;
position: relative;
white-space: nowrap;
text-overflow: ellipsis;
}
.toolbar a.link {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
.toolbar i.icon {
display: block;
}
.toolbar-inner {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-align-content: center;
-ms-flex-line-pack: center;
align-content: center;
}
.views > .tabbar,
.views > .tabbar-labels {
z-index: 5001;
}
.tabbar a.link,
.tabbar-labels a.link {
line-height: 1.4;
}
.tabbar a.tab-link,
.tabbar-labels a.tab-link,
.tabbar a.link,
.tabbar-labels a.link {
height: 100%;
width: 100%;
-webkit-box-sizing: border-box;
box-sizing: border-box;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
}
.tabbar-labels a.tab-link,
.tabbar-labels a.link {
height: 100%;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.tabbar-labels a.tab-link .tabbar-label,
.tabbar-labels a.link .tabbar-label {
display: block;
line-height: 1;
margin: 0;
position: relative;
text-overflow: ellipsis;
white-space: nowrap;
}
.tabbar-scrollable .toolbar-inner {
overflow: auto;
-webkit-overflow-scrolling: touch;
}
.tabbar-scrollable .toolbar-inner::-webkit-scrollbar {
display: none !important;
width: 0 !important;
height: 0 !important;
-webkit-appearance: none;
opacity: 0 !important;
}
.tabbar-scrollable a.tab-link,
.tabbar-scrollable a.link {
width: auto;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
}
.views > .toolbar,
.view > .toolbar,
.page > .toolbar {
position: absolute;
}
.md .toolbar {
background: #2196f3;
height: 48px;
color: #fff;
font-size: 14px;
top: 0;
}
.md .toolbar:after {
content: '';
position: absolute;
right: 0;
width: 100%;
top: 100%;
bottom: auto;
height: 10px;
pointer-events: none;
background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.3)), color-stop(40%, rgba(0, 0, 0, 0.1)), color-stop(50%, rgba(0, 0, 0, 0.05)), color-stop(80%, rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0)));
background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0) 100%);
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0) 100%);
}
.md .toolbar.no-shadow:after {
display: none;
}
.md .toolbar a {
color: #fff;
}
.md .toolbar a.link {
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
padding: 0 16px;
min-width: 48px;
line-height: 48px;
height: 48px;
}
.md .toolbar a.link:before {
content: '';
width: 152%;
height: 152%;
position: absolute;
left: -26%;
top: -26%;
background-image: -webkit-radial-gradient(center, circle, rgba(255, 255, 255, 0.15) 66%, rgba(255, 255, 255, 0) 66%);
background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 66%, rgba(255, 255, 255, 0) 66%);
background-repeat: no-repeat;
background-position: center;
background-size: 100% 100%;
opacity: 0;
pointer-events: none;
-webkit-transition-duration: 600ms;
transition-duration: 600ms;
}
.md .toolbar a.link.active-state:before {
opacity: 1;
-webkit-transition-duration: 150ms;
transition-duration: 150ms;
}
.md .toolbar a.link i + span,
.md .toolbar a.link i + i,
.md .toolbar a.link span + i,
.md .toolbar a.link span + span {
margin-left: 8px;
}
.md .toolbar a.icon-only {
min-width: 0;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
}
.md .toolbar-inner {
overflow: hidden;
}
.md .tabbar a.link,
.md .tabbar-labels a.link,
.md .tabbar a.tab-link,
.md .tabbar-labels a.tab-link {
padding-left: 0;
padding-right: 0;
font-size: 14px;
text-transform: uppercase;
font-weight: 500;
letter-spacing: 0.03em;
}
.md .tabbar i.icon,
.md .tabbar-labels i.icon {
height: 24px;
}
.md .tabbar a.tab-link,
.md .tabbar-labels a.tab-link {
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
overflow: hidden;
color: rgba(255, 255, 255, 0.7);
position: relative;
}
.md .tabbar a.tab-link.tab-link-active,
.md .tabbar-labels a.tab-link.tab-link-active,
.md .tabbar a.tab-link.active-state,
.md .tabbar-labels a.tab-link.active-state {
color: #ffffff;
}
.md .tabbar .tab-link-highlight,
.md .tabbar-labels .tab-link-highlight {
position: absolute;
bottom: 0;
height: 2px;
background: #fff;
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
left: 0;
}
.md .toolbar-bottom-md,
.md .messagebar {
top: auto !important;
bottom: 0 !important;
}
.md .toolbar-bottom-md:after,
.md .messagebar:after {
content: '';
position: absolute;
right: 0;
width: 100%;
bottom: 100%;
height: 10px;
top: auto;
pointer-events: none;
background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.3)), color-stop(40%, rgba(0, 0, 0, 0.1)), color-stop(50%, rgba(0, 0, 0, 0.05)), color-stop(80%, rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0)));
background: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0) 100%);
background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0) 100%);
}
.md .toolbar-bottom-md .tab-link-highlight,
.md .messagebar .tab-link-highlight {
bottom: auto;
top: 0;
}
.md .tabbar-labels {
height: 72px;
}
.md .tabbar-labels a.tab-link,
.md .tabbar-labels a.link {
padding-top: 12px;
padding-bottom: 12px;
}
.md .tabbar-labels .tabbar-label {
margin-top: 10px;
max-width: 100%;
overflow: hidden;
}
.md .tabbar-labels.toolbar-bottom-md {
height: 56px;
}
.md .tabbar-labels.toolbar-bottom-md a.tab-link,
.md .tabbar-labels.toolbar-bottom-md a.link {
padding-top: 7px;
padding-bottom: 7px;
}
.md .tabbar-labels.toolbar-bottom-md .tabbar-label {
text-transform: none;
line-height: 1.2;
font-weight: normal;
letter-spacing: 0;
}
.md .tabbar-scrollable .toolbar-inner {
overflow: auto;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
}
.md .tabbar-scrollable a.tab-link,
.md .tabbar-scrollable a.link {
padding: 0 16px;
}
.md .toolbar:not(.toolbar-bottom-md):not(.messagebar) ~ * .page-content,
.md .toolbar:not(.toolbar-bottom-md):not(.messagebar) ~ .page-content {
padding-top: 48px;
}
.md .toolbar.tabbar-labels:not(.toolbar-bottom-md) ~ * .page-content,
.md .toolbar.tabbar-labels:not(.toolbar-bottom-md) ~ .page-content {
padding-top: 72px;
}
.md .toolbar-hidden {
-webkit-transform: translate3d(0, -100%, 0);
transform: translate3d(0, -100%, 0);
}
.md .toolbar-hidden:after {
display: none;
}
.md .toolbar-hidden.toolbar-bottom-md,
.md .toolbar-hidden.messagebar {
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
}
.md .navbar + .toolbar:not(.toolbar-bottom-md):not(.messagebar) {
top: 56px;
}
.md .navbar + .toolbar:not(.toolbar-bottom-md):not(.messagebar) ~ * .page-content,
.md .navbar + .toolbar:not(.toolbar-bottom-md):not(.messagebar) ~ .page-content {
padding-top: 104px;
}
.md .navbar + .toolbar.tabbar-labels:not(.toolbar-bottom-md) ~ * .page-content,
.md .navbar + .toolbar.tabbar-labels:not(.toolbar-bottom-md) ~ .page-content {
padding-top: 128px;
}
.md .navbar + .toolbar-hidden:not(.toolbar-bottom-md):not(.messagebar) {
-webkit-transform: translate3d(0, -104px, 0);
transform: translate3d(0, -104px, 0);
}
.md .navbar + .toolbar-hidden.tabbar-labels:not(.toolbar-bottom-md) {
-webkit-transform: translate3d(0, -128px, 0);
transform: translate3d(0, -128px, 0);
}
.md .navbar.navbar-hidden + .toolbar:not(.toolbar-bottom-md):not(.messagebar):not(.toolbar-hidden) {
-webkit-transform: translate3d(0, -56px, 0);
transform: translate3d(0, -56px, 0);
}
@media (min-width: 768px) {
.md .navbar + .toolbar:not(.toolbar-bottom-md):not(.messagebar) {
top: 64px;
}
.md .navbar + .toolbar:not(.toolbar-bottom-md):not(.messagebar) ~ * .page-content,
.md .navbar + .toolbar:not(.toolbar-bottom-md):not(.messagebar) ~ .page-content {
padding-top: 112px;
}
.md .navbar + .toolbar.tabbar-labels:not(.toolbar-bottom-md) ~ * .page-content,
.md .navbar + .toolbar.tabbar-labels:not(.toolbar-bottom-md) ~ .page-content {
padding-top: 136px;
}
.md .navbar.navbar-hidden + .toolbar:not(.toolbar-bottom-md):not(.messagebar):not(.toolbar-hidden) {
-webkit-transform: translate3d(0, -64px, 0);
transform: translate3d(0, -64px, 0);
}
.md .navbar + .toolbar-hidden:not(.toolbar-bottom-md):not(.messagebar) {
-webkit-transform: translate3d(0, -112px, 0);
transform: translate3d(0, -112px, 0);
}
.md .navbar + .toolbar-hidden.tabbar-labels:not(.toolbar-bottom-md):not(.messagebar) {
-webkit-transform: translate3d(0, -136px, 0);
transform: translate3d(0, -136px, 0);
}
}
.md .toolbar-bottom-md ~ * .page-content,
.md .toolbar-bottom-md ~ .page-content,
.md .messagebar ~ * .page-content,
.md .messagebar ~ .page-content {
padding-bottom: 48px;
}
.md .toolbar-bottom-md.tabbar-labels ~ * .page-content,
.md .toolbar-bottom-md.tabbar-labels ~ .page-content {
padding-bottom: 56px;
}
.md .toolbar-transitioning,
.md .navbar-transitioning + .toolbar {
-webkit-transition-duration: 400ms;
transition-duration: 400ms;
}
.md .color-theme-red .toolbar:not(.messagebar),
.md .color-theme-red.toolbar:not(.messagebar) {
background: #f44336;
}
.md .color-theme-green .toolbar:not(.messagebar),
.md .color-theme-green.toolbar:not(.messagebar) {
background: #4caf50;
}
.md .color-theme-blue .toolbar:not(.messagebar),
.md .color-theme-blue.toolbar:not(.messagebar) {
background: #2196f3;
}
.md .color-theme-pink .toolbar:not(.messagebar),
.md .color-theme-pink.toolbar:not(.messagebar) {
background: #e91e63;
}
.md .color-theme-yellow .toolbar:not(.messagebar),
.md .color-theme-yellow.toolbar:not(.messagebar) {
background: #ffeb3b;
}
.md .color-theme-orange .toolbar:not(.messagebar),
.md .color-theme-orange.toolbar:not(.messagebar) {
background: #ff9800;
}
.md .color-theme-gray .toolbar:not(.messagebar),
.md .color-theme-gray.toolbar:not(.messagebar) {
background: #9e9e9e;
}
.md .color-theme-white .toolbar:not(.messagebar),
.md .color-theme-white.toolbar:not(.messagebar) {
background: #ffffff;
}
.md .color-theme-black .toolbar:not(.messagebar),
.md .color-theme-black.toolbar:not(.messagebar) {
background: #000000;
}
.md .toolbar:not(.messagebar).color-red {
background: #f44336;
}
.md .toolbar:not(.messagebar).color-green {
background: #4caf50;
}
.md .toolbar:not(.messagebar).color-blue {
background: #2196f3;
}
.md .toolbar:not(.messagebar).color-pink {
background: #e91e63;
}
.md .toolbar:not(.messagebar).color-yellow {
background: #ffeb3b;
}
.md .toolbar:not(.messagebar).color-orange {
background: #ff9800;
}
.md .toolbar:not(.messagebar).color-gray {
background: #9e9e9e;
}
.md .toolbar:not(.messagebar).color-white {
background: #ffffff;
}
.md .toolbar:not(.messagebar).color-black {
background: #000000;
}
.md.device-iphone-x .views > .toolbar:first-child:not(.toolbar-bottom-md),
.md.device-iphone-x .view > .toolbar:first-child:not(.toolbar-bottom-md),
.md.device-iphone-x .page > .toolbar:first-child:not(.toolbar-bottom-md),
.md.device-iphone-x .popup > .toolbar:first-child:not(.toolbar-bottom-md),
.md.device-iphone-x .panel > .toolbar:first-child:not(.toolbar-bottom-md),
.md.device-iphone-x .login-screen > .toolbar:first-child:not(.toolbar-bottom-md) {
height: calc(48px + constant(safe-area-inset-top));
height: calc(48px + env(safe-area-inset-top));
}
.md.device-iphone-x .views > .toolbar:first-child:not(.toolbar-bottom-md) .toolbar-inner,
.md.device-iphone-x .view > .toolbar:first-child:not(.toolbar-bottom-md) .toolbar-inner,
.md.device-iphone-x .page > .toolbar:first-child:not(.toolbar-bottom-md) .toolbar-inner,
.md.device-iphone-x .popup > .toolbar:first-child:not(.toolbar-bottom-md) .toolbar-inner,
.md.device-iphone-x .panel > .toolbar:first-child:not(.toolbar-bottom-md) .toolbar-inner,
.md.device-iphone-x .login-screen > .toolbar:first-child:not(.toolbar-bottom-md) .toolbar-inner {
height: auto;
}
.md.device-iphone-x .views > .toolbar:first-child:not(.toolbar-bottom-md) .toolbar-inner,
.md.device-iphone-x .view > .toolbar:first-child:not(.toolbar-bottom-md) .toolbar-inner,
.md.device-iphone-x .page > .toolbar:first-child:not(.toolbar-bottom-md) .toolbar-inner,
.md.device-iphone-x .popup > .toolbar:first-child:not(.toolbar-bottom-md) .toolbar-inner,
.md.device-iphone-x .panel > .toolbar:first-child:not(.toolbar-bottom-md) .toolbar-inner,
.md.device-iphone-x .login-screen > .toolbar:first-child:not(.toolbar-bottom-md) .toolbar-inner {
bottom: 0;
top: constant(safe-area-inset-top);
top: env(safe-area-inset-top);
}
.md.device-iphone-x .views > .toolbar:first-child:not(.toolbar-bottom-md).tabbar-labels,
.md.device-iphone-x .view > .toolbar:first-child:not(.toolbar-bottom-md).tabbar-labels,
.md.device-iphone-x .page > .toolbar:first-child:not(.toolbar-bottom-md).tabbar-labels,
.md.device-iphone-x .popup > .toolbar:first-child:not(.toolbar-bottom-md).tabbar-labels,
.md.device-iphone-x .panel > .toolbar:first-child:not(.toolbar-bottom-md).tabbar-labels,
.md.device-iphone-x .login-screen > .toolbar:first-child:not(.toolbar-bottom-md).tabbar-labels {
height: calc(72px + constant(safe-area-inset-top));
height: calc(72px + env(safe-area-inset-top));
}
.md.device-iphone-x .views > .toolbar-bottom-md,
.md.device-iphone-x .view > .toolbar-bottom-md,
.md.device-iphone-x .page > .toolbar-bottom-md,
.md.device-iphone-x .popup > .toolbar-bottom-md,
.md.device-iphone-x .panel > .toolbar-bottom-md,
.md.device-iphone-x .login-screen > .toolbar-bottom-md {
height: calc(48px + constant(safe-area-inset-bottom));
height: calc(48px + env(safe-area-inset-bottom));
}
.md.device-iphone-x .views > .toolbar-bottom-md .toolbar-inner,
.md.device-iphone-x .view > .toolbar-bottom-md .toolbar-inner,
.md.device-iphone-x .page > .toolbar-bottom-md .toolbar-inner,
.md.device-iphone-x .popup > .toolbar-bottom-md .toolbar-inner,
.md.device-iphone-x .panel > .toolbar-bottom-md .toolbar-inner,
.md.device-iphone-x .login-screen > .toolbar-bottom-md .toolbar-inner {
height: auto;
top: 0;
bottom: constant(safe-area-inset-bottom);
bottom: env(safe-area-inset-bottom);
}
.md.device-iphone-x .views > .toolbar-bottom-md.tabbar-labels,
.md.device-iphone-x .view > .toolbar-bottom-md.tabbar-labels,
.md.device-iphone-x .page > .toolbar-bottom-md.tabbar-labels,
.md.device-iphone-x .popup > .toolbar-bottom-md.tabbar-labels,
.md.device-iphone-x .panel > .toolbar-bottom-md.tabbar-labels,
.md.device-iphone-x .login-screen > .toolbar-bottom-md.tabbar-labels {
height: calc(56px + constant(safe-area-inset-bottom));
height: calc(56px + env(safe-area-inset-bottom));
}
.md.device-iphone-x .toolbar-bottom-md ~ * .page-content,
.md.device-iphone-x .toolbar-bottom-md ~ .page-content,
.md.device-iphone-x .messagebar ~ * .page-content,
.md.device-iphone-x .messagebar ~ .page-content {
padding-bottom: calc(48px + constant(safe-area-inset-bottom));
padding-bottom: calc(48px + env(safe-area-inset-bottom));
}
.md.device-iphone-x .toolbar-bottom-md.tabbar-labels ~ * .page-content,
.md.device-iphone-x .toolbar-bottom-md.tabbar-labels ~ .page-content {
padding-bottom: calc(56px + constant(safe-area-inset-bottom));
padding-bottom: calc(56px + env(safe-area-inset-bottom));
}
@media (orientation: landscape) {
.md.device-iphone-x .ios-left-edge .toolbar-inner,
.md.device-iphone-x .ios-edges .toolbar-inner,
.md.device-iphone-x .popup .toolbar-inner,
.md.device-iphone-x .sheet-modal .toolbar-inner,
.md.device-iphone-x .panel-left .toolbar-inner {
padding-left: constant(safe-area-inset-left);
padding-left: env(safe-area-inset-left);
}
.md.device-iphone-x .ios-right-edge .toolbar-inner,
.md.device-iphone-x .ios-edges .toolbar-inner,
.md.device-iphone-x .popup .toolbar-inner,
.md.device-iphone-x .sheet-modal .toolbar-inner,
.md.device-iphone-x .panel-right .toolbar-inner {
padding-right: constant(safe-area-inset-right);
padding-right: env(safe-area-inset-right);
}
}
/* === Subnavbar === */
.subnavbar {
width: 100%;
position: absolute;
left: 0;
top: 0;
z-index: 500;
-webkit-box-sizing: border-box;
box-sizing: border-box;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.subnavbar .title {
position: relative;
overflow: hidden;
text-overflow: ellpsis;
white-space: nowrap;
}
.subnavbar .left,
.subnavbar .right {
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.subnavbar .right:first-child {
position: absolute;
height: 100%;
}
.subnavbar-inner {
width: 100%;
height: 100%;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
overflow: hidden;
}
.subnavbar-inner.stacked {
display: none;
}
.navbar .subnavbar {
top: 100%;
}
.views > .navbar,
.view > .navbar,
.page > .navbar {
position: absolute;
}
.md .subnavbar {
height: 48px;
background: #2196f3;
color: #fff;
}
.md .subnavbar:after {
content: '';
position: absolute;
right: 0;
width: 100%;
top: 100%;
bottom: auto;
height: 10px;
pointer-events: none;
background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.3)), color-stop(40%, rgba(0, 0, 0, 0.1)), color-stop(50%, rgba(0, 0, 0, 0.05)), color-stop(80%, rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0)));
background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0) 100%);
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0) 100%);
}
.md .subnavbar.no-shadow:after {
display: none;
}
.md .subnavbar .title {
margin: 0 16px;
font-size: 20px;
line-height: 48px;
display: inline-block;
text-align: left;
font-weight: 500;
}
.md .subnavbar .title:first-child {
margin-left: 56px;
}
.md .subnavbar .right {
margin-left: auto;
}
.md .subnavbar .right:first-child {
right: 16px;
}
.md .subnavbar a {
color: inherit;
}
.md .subnavbar a.link {
line-height: 48px;
height: 48px;
min-width: 48px;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
padding: 0 16px;
}
.md .subnavbar a.link:before {
content: '';
width: 152%;
height: 152%;
position: absolute;
left: -26%;
top: -26%;
background-image: -webkit-radial-gradient(center, circle, rgba(255, 255, 255, 0.15) 66%, rgba(255, 255, 255, 0) 66%);
background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 66%, rgba(255, 255, 255, 0) 66%);
background-repeat: no-repeat;
background-position: center;
background-size: 100% 100%;
opacity: 0;
pointer-events: none;
-webkit-transition-duration: 600ms;
transition-duration: 600ms;
}
.md .subnavbar a.link.active-state:before {
opacity: 1;
-webkit-transition-duration: 150ms;
transition-duration: 150ms;
}
.md .subnavbar a.icon-only {
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
min-width: 0;
}
.md .subnavbar-inner {
padding: 0 16px;
}
.md .subnavbar-inner > a.link:first-child {
margin-left: -16px;
}
.md .subnavbar-inner > a.link:last-child {
margin-right: -16px;
}
.md .subnavbar ~ * .page-content,
.md .subnavbar ~ .page-content,
.md .page-with-subnavbar .page-content {
padding-top: 48px;
}
.md .navbar ~ .subnavbar ~ .page-content,
.md .navbar ~ .subnavbar ~ * .page-content,
.md .page-with-subnavbar .navbar ~ * .page-content,
.md .page-with-subnavbar .navbar ~ .page-content {
padding-top: 104px;
}
@media (min-width: 768px) {
.md .navbar ~ .subnavbar ~ .page-content,
.md .navbar ~ .subnavbar ~ * .page-content,
.md .page-with-subnavbar .navbar ~ * .page-content,
.md .page-with-subnavbar .navbar ~ .page-content {
padding-top: 112px;
}
}
.md .navbar ~ .subnavbar,
.md .navbar ~ * .subnavbar,
.md .page-with-subnavbar .navbar ~ .subnavbar,
.md .page-with-subnavbar .navbar ~ * .subnavbar {
top: 56px;
}
@media (min-width: 768px) {
.md .navbar ~ .subnavbar,
.md .navbar ~ * .subnavbar,
.md .page-with-subnavbar .navbar ~ .subnavbar,
.md .page-with-subnavbar .navbar ~ * .subnavbar {
top: 64px;
}
}
.md .color-theme-red .subnavbar,
.md .color-theme-red.subnavbar {
background: #f44336;
}
.md .color-theme-green .subnavbar,
.md .color-theme-green.subnavbar {
background: #4caf50;
}
.md .color-theme-blue .subnavbar,
.md .color-theme-blue.subnavbar {
background: #2196f3;
}
.md .color-theme-pink .subnavbar,
.md .color-theme-pink.subnavbar {
background: #e91e63;
}
.md .color-theme-yellow .subnavbar,
.md .color-theme-yellow.subnavbar {
background: #ffeb3b;
}
.md .color-theme-orange .subnavbar,
.md .color-theme-orange.subnavbar {
background: #ff9800;
}
.md .color-theme-gray .subnavbar,
.md .color-theme-gray.subnavbar {
background: #9e9e9e;
}
.md .color-theme-white .subnavbar,
.md .color-theme-white.subnavbar {
background: #ffffff;
}
.md .color-theme-black .subnavbar,
.md .color-theme-black.subnavbar {
background: #000000;
}
.md .subnavbar.color-red {
background: #f44336;
}
.md .subnavbar.color-green {
background: #4caf50;
}
.md .subnavbar.color-blue {
background: #2196f3;
}
.md .subnavbar.color-pink {
background: #e91e63;
}
.md .subnavbar.color-yellow {
background: #ffeb3b;
}
.md .subnavbar.color-orange {
background: #ff9800;
}
.md .subnavbar.color-gray {
background: #9e9e9e;
}
.md .subnavbar.color-white {
background: #ffffff;
}
.md .subnavbar.color-black {
background: #000000;
}
@media (orientation: landscape) {
.md.device-iphone-x .ios-left-edge .subnavbar-inner,
.md.device-iphone-x .ios-edges .subnavbar-inner,
.md.device-iphone-x .popup .subnavbar-inner,
.md.device-iphone-x .sheet-modal .subnavbar-inner,
.md.device-iphone-x .panel-left .subnavbar-inner {
padding-left: calc(16px + constant(safe-area-inset-left));
padding-left: calc(16px + env(safe-area-inset-left));
}
.md.device-iphone-x .ios-right-edge .subnavbar-inner,
.md.device-iphone-x .ios-edges .subnavbar-inner,
.md.device-iphone-x .popup .subnavbar-inner,
.md.device-iphone-x .sheet-modal .subnavbar-inner,
.md.device-iphone-x .panel-right .subnavbar-inner {
padding-right: calc(16px + constant(safe-area-inset-right));
padding-right: calc(16px + env(safe-area-inset-right));
}
}
/* === Content Block === */
.block {
-webkit-box-sizing: border-box;
box-sizing: border-box;
position: relative;
z-index: 1;
}
.block.no-hairlines:before,
.block.no-hairlines ul:before,
.md .block.no-hairlines-md:before,
.md .block.no-hairlines-md ul:before,
.ios .block.no-hairlines-ios:before,
.ios .block.no-hairlines-ios ul:before {
display: none !important;
}
.block.no-hairlines:after,
.block.no-hairlines ul:after,
.md .block.no-hairlines-md:after,
.md .block.no-hairlines-md ul:after,
.ios .block.no-hairlines-ios:after,
.ios .block.no-hairlines-ios ul:after {
display: none !important;
}
.block.no-hairline-top:before,
.block.no-hairline-top ul:before,
.md .block.no-hairline-top-md:before,
.md .block.no-hairline-top-md ul:before,
.ios .block.no-hairline-top-ios:before,
.ios .block.no-hairline-top-ios ul:before {
display: none !important;
}
.block.no-hairline-bottom:after,
.block.no-hairline-bottom ul:after,
.md .block.no-hairline-bottom-md:after,
.md .block.no-hairline-bottom-md ul:after,
.ios .block.no-hairline-bottom-ios:after,
.ios .block.no-hairline-bottom-ios ul:after {
display: none !important;
}
.block > h1:first-child,
.block > h2:first-child,
.block > h3:first-child,
.block > h4:first-child,
.block > p:first-child {
margin-top: 0;
}
.block > h1:last-child,
.block > h2:last-child,
.block > h3:last-child,
.block > h4:last-child,
.block > p:last-child {
margin-bottom: 0;
}
.block-title {
position: relative;
overflow: hidden;
margin: 0;
white-space: nowrap;
text-overflow: ellipsis;
font-size: 14px;
line-height: 1;
}
.block-strong.inset {
border-radius: 7px;
}
.block-strong.inset:before {
display: none !important;
}
.block-strong.inset:after {
display: none !important;
}
.block-footer,
.block-header {
font-size: 14px;
}
.block-footer ul:first-child,
.block-header ul:first-child,
.block-footer p:first-child,
.block-header p:first-child,
.block-footer h1:first-child,
.block-header h1:first-child,
.block-footer h2:first-child,
.block-header h2:first-child,
.block-footer h3:first-child,
.block-header h3:first-child,
.block-footer h4:first-child,
.block-header h4:first-child {
margin-top: 0;
}
.block-footer ul:last-child,
.block-header ul:last-child,
.block-footer p:last-child,
.block-header p:last-child,
.block-footer h1:last-child,
.block-header h1:last-child,
.block-footer h2:last-child,
.block-header h2:last-child,
.block-footer h3:last-child,
.block-header h3:last-child,
.block-footer h4:last-child,
.block-header h4:last-child {
margin-bottom: 0;
}
.block-footer ul:first-child:last-child,
.block-header ul:first-child:last-child,
.block-footer p:first-child:last-child,
.block-header p:first-child:last-child,
.block-footer h1:first-child:last-child,
.block-header h1:first-child:last-child,
.block-footer h2:first-child:last-child,
.block-header h2:first-child:last-child,
.block-footer h3:first-child:last-child,
.block-header h3:first-child:last-child,
.block-footer h4:first-child:last-child,
.block-header h4:first-child:last-child {
margin-top: 0;
margin-bottom: 0;
}
.block-header {
margin-bottom: 10px;
}
.block-footer {
margin-top: 10px;
}
@media (min-width: 768px) {
.block-strong.tablet-inset:before {
display: none !important;
}
.block-strong.tablet-inset:after {
display: none !important;
}
}
.md .block {
margin: 32px 0;
padding: 0 16px;
}
.md .block-title {
color: rgba(0, 0, 0, 0.54);
margin: 32px 16px 16px;
line-height: 16px;
font-weight: 500;
}
.md .block-title + .list,
.md .block-title + .block,
.md .block-title + .card,
.md .block-title + .timeline,
.md .block-title + .block-header {
margin-top: 0px;
}
.md .block-strong {
padding: 16px;
}
.md .block-strong:before {
content: '';
position: absolute;
background-color: rgba(0, 0, 0, 0.12);
display: block;
z-index: 15;
top: 0;
right: auto;
bottom: auto;
left: 0;
height: 1px;
width: 100%;
-webkit-transform-origin: 50% 0%;
transform-origin: 50% 0%;
}
.md.device-pixel-ratio-2 .block-strong:before {
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.md.device-pixel-ratio-3 .block-strong:before {
-webkit-transform: scaleY(0.33);
transform: scaleY(0.33);
}
.md .block-strong:after {
content: '';
position: absolute;
background-color: rgba(0, 0, 0, 0.12);
display: block;
z-index: 15;
top: auto;
right: auto;
bottom: 0;
left: 0;
height: 1px;
width: 100%;
-webkit-transform-origin: 50% 100%;
transform-origin: 50% 100%;
}
.md.device-pixel-ratio-2 .block-strong:after {
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.md.device-pixel-ratio-3 .block-strong:after {
-webkit-transform: scaleY(0.33);
transform: scaleY(0.33);
}
.md .block.inset {
margin-left: 16px;
margin-right: 16px;
}
.md .block-strong.inset {
border-radius: 4px;
}
.md .block-header,
.md .block-footer {
padding: 0 16px;
color: rgba(0, 0, 0, 0.54);
}
.md .block .block-header,
.md .block .block-footer {
padding: 0;
}
.md .block-header {
margin-top: 32px;
}
.md .block-header + .list,
.md .block-header + .block,
.md .block-header + .card,
.md .block-header + .timeline {
margin-top: 10px;
}
.md .block-footer {
margin-bottom: 32px;
}
.md .list .block-header,
.md .block .block-header,
.md .card .block-header,
.md .timeline .block-header {
margin-top: 0;
}
.md .list .block-footer,
.md .block .block-footer,
.md .card .block-footer,
.md .timeline .block-footer {
margin-bottom: 0;
}
.md .list + .block-footer,
.md .block + .block-footer,
.md .card + .block-footer,
.md .timeline + .block-footer {
margin-top: -22px;
}
.md .block + .block-footer {
margin-top: -22px;
margin-bottom: 32px;
}
@media (min-width: 768px) {
.md .block.tablet-inset {
margin-left: 16px;
margin-right: 16px;
border-radius: 4px;
}
.md .block-strong.tablet-inset {
border-radius: 4px;
}
}
.md .theme-dark .block-title {
color: #fff;
}
.md .theme-dark .block-header,
.md .theme-dark .block-footer {
color: rgba(255, 255, 255, 0.54);
}
@media (orientation: landscape) {
.md.device-iphone-x .ios-left-edge .block:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .ios-edges .block:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .popup .block:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .sheet-modal .block:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .panel-left .block:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .ios-left-edge .block-header,
.md.device-iphone-x .ios-edges .block-header,
.md.device-iphone-x .popup .block-header,
.md.device-iphone-x .sheet-modal .block-header,
.md.device-iphone-x .panel-left .block-header,
.md.device-iphone-x .ios-left-edge .block-footer,
.md.device-iphone-x .ios-edges .block-footer,
.md.device-iphone-x .popup .block-footer,
.md.device-iphone-x .sheet-modal .block-footer,
.md.device-iphone-x .panel-left .block-footer {
padding-left: calc(16px + constant(safe-area-inset-left));
padding-left: calc(16px + env(safe-area-inset-left));
}
.md.device-iphone-x .ios-left-edge .block:not(.no-ios-edges):not(.no-ios-left-edge) .block-header,
.md.device-iphone-x .ios-edges .block:not(.no-ios-edges):not(.no-ios-left-edge) .block-header,
.md.device-iphone-x .popup .block:not(.no-ios-edges):not(.no-ios-left-edge) .block-header,
.md.device-iphone-x .sheet-modal .block:not(.no-ios-edges):not(.no-ios-left-edge) .block-header,
.md.device-iphone-x .panel-left .block:not(.no-ios-edges):not(.no-ios-left-edge) .block-header,
.md.device-iphone-x .ios-left-edge .block:not(.no-ios-edges):not(.no-ios-left-edge) .block-footer,
.md.device-iphone-x .ios-edges .block:not(.no-ios-edges):not(.no-ios-left-edge) .block-footer,
.md.device-iphone-x .popup .block:not(.no-ios-edges):not(.no-ios-left-edge) .block-footer,
.md.device-iphone-x .sheet-modal .block:not(.no-ios-edges):not(.no-ios-left-edge) .block-footer,
.md.device-iphone-x .panel-left .block:not(.no-ios-edges):not(.no-ios-left-edge) .block-footer {
padding-left: 0;
}
.md.device-iphone-x .ios-left-edge .block.inset:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .ios-edges .block.inset:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .popup .block.inset:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .sheet-modal .block.inset:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .panel-left .block.inset:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .ios-left-edge .block-title:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .ios-edges .block-title:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .popup .block-title:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .sheet-modal .block-title:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .panel-left .block-title:not(.no-ios-edges):not(.no-ios-left-edge) {
margin-left: calc(16px + constant(safe-area-inset-left));
margin-left: calc(16px + env(safe-area-inset-left));
}
.md.device-iphone-x .ios-right-edge .block:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .ios-edges .block:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .popup .block:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .sheet-modal .block:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .panel-right .block:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .ios-right-edge .block-header,
.md.device-iphone-x .ios-edges .block-header,
.md.device-iphone-x .popup .block-header,
.md.device-iphone-x .sheet-modal .block-header,
.md.device-iphone-x .panel-right .block-header,
.md.device-iphone-x .ios-right-edge .block-footer,
.md.device-iphone-x .ios-edges .block-footer,
.md.device-iphone-x .popup .block-footer,
.md.device-iphone-x .sheet-modal .block-footer,
.md.device-iphone-x .panel-right .block-footer {
padding-right: calc(16px + constant(safe-area-inset-right));
padding-right: calc(16px + env(safe-area-inset-right));
}
.md.device-iphone-x .ios-right-edge .block:not(.no-ios-edges):not(.no-ios-right-edge) .block-header,
.md.device-iphone-x .ios-edges .block:not(.no-ios-edges):not(.no-ios-right-edge) .block-header,
.md.device-iphone-x .popup .block:not(.no-ios-edges):not(.no-ios-right-edge) .block-header,
.md.device-iphone-x .sheet-modal .block:not(.no-ios-edges):not(.no-ios-right-edge) .block-header,
.md.device-iphone-x .panel-right .block:not(.no-ios-edges):not(.no-ios-right-edge) .block-header,
.md.device-iphone-x .ios-right-edge .block:not(.no-ios-edges):not(.no-ios-right-edge) .block-footer,
.md.device-iphone-x .ios-edges .block:not(.no-ios-edges):not(.no-ios-right-edge) .block-footer,
.md.device-iphone-x .popup .block:not(.no-ios-edges):not(.no-ios-right-edge) .block-footer,
.md.device-iphone-x .sheet-modal .block:not(.no-ios-edges):not(.no-ios-right-edge) .block-footer,
.md.device-iphone-x .panel-right .block:not(.no-ios-edges):not(.no-ios-right-edge) .block-footer {
padding-right: 0;
}
.md.device-iphone-x .ios-right-edge .block.inset:not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .ios-edges .block.inset:not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .popup .block.inset:not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .sheet-modal .block.inset:not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .panel-right .block.inset:not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .ios-right-edge .block-title:not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .ios-edges .block-title:not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .popup .block-title:not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .sheet-modal .block-title:not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .panel-right .block-title:not(.no-ios-edges):not(.no-ios-right-edge) {
margin-right: calc(16px + constant(safe-area-inset-right));
margin-right: calc(16px + env(safe-area-inset-right));
}
}
@media (orientation: landscape) and (min-width: 768px) {
.md.device-iphone-x .ios-left-edge .block.tablet-inset:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .ios-edges .block.tablet-inset:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .popup .block.tablet-inset:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .sheet-modal .block.tablet-inset:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .panel-left .block.tablet-inset:not(.no-ios-edges):not(.no-ios-left-edge) {
margin-left: calc(16px + constant(safe-area-inset-left));
margin-left: calc(16px + env(safe-area-inset-left));
}
}
@media (orientation: landscape) and (min-width: 768px) {
.md.device-iphone-x .ios-right-edge .block.tablet-inset:not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .ios-edges .block.tablet-inset:not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .popup .block.tablet-inset:not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .sheet-modal .block.tablet-inset:not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .panel-right .block.tablet-inset:not(.no-ios-edges):not(.no-ios-right-edge) {
margin-right: calc(16px + constant(safe-area-inset-right));
margin-right: calc(16px + env(safe-area-inset-right));
}
}
/* === List View === */
.list {
position: relative;
z-index: 1;
}
.list ul {
list-style: none;
margin: 0;
padding: 0;
position: relative;
}
.list ul ul:before {
display: none !important;
}
.list ul ul:after {
display: none !important;
}
.list li {
position: relative;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.list .item-media {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-sizing: border-box;
box-sizing: border-box;
padding-bottom: 8px;
}
.list .item-inner {
position: relative;
width: 100%;
padding-top: 8px;
padding-bottom: 8px;
min-width: 0;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-align-self: stretch;
-ms-flex-item-align: stretch;
align-self: stretch;
}
.list .item-title {
min-width: 0;
-webkit-flex-shrink: 1;
-ms-flex-negative: 1;
flex-shrink: 1;
white-space: nowrap;
position: relative;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
}
.list .item-after {
white-space: nowrap;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
margin-left: auto;
}
.list .item-link,
.list .list-button {
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
-webkit-transition-property: background-color;
transition-property: background-color;
display: block;
position: relative;
overflow: hidden;
z-index: 0;
}
.list .item-content {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.list .item-subtitle {
position: relative;
overflow: hidden;
white-space: nowrap;
max-width: 100%;
text-overflow: ellipsis;
}
.list .item-text {
position: relative;
overflow: hidden;
text-overflow: hidden;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
display: -webkit-box;
}
.list .item-title-row {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.list .item-title-row .item-after {
-webkit-align-self: center;
-ms-flex-item-align: center;
align-self: center;
}
.list .item-row {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.list .item-cell {
display: block;
-webkit-align-self: center;
-ms-flex-item-align: center;
align-self: center;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-flex-shrink: 1;
-ms-flex-negative: 1;
flex-shrink: 1;
}
.list li:last-child .list-button:after {
display: none !important;
}
.list li:last-child > .item-inner:after,
.list li:last-child li:last-child > .item-inner:after,
.list li:last-child > .item-content > .item-inner:after,
.list li:last-child li:last-child > .item-content > .item-inner:after,
.list li:last-child > .item-link > .item-content > .item-inner:after,
.list li:last-child li:last-child > .item-link > .item-content > .item-inner:after {
display: none !important;
}
.list.no-hairlines:before,
.list.no-hairlines ul:before,
.md .list.no-hairlines-md:before,
.md .list.no-hairlines-md ul:before,
.ios .list.no-hairlines-ios:before,
.ios .list.no-hairlines-ios ul:before {
display: none !important;
}
.list.no-hairlines:after,
.list.no-hairlines ul:after,
.md .list.no-hairlines-md:after,
.md .list.no-hairlines-md ul:after,
.ios .list.no-hairlines-ios:after,
.ios .list.no-hairlines-ios ul:after {
display: none !important;
}
.list.no-hairline-top:before,
.list.no-hairline-top ul:before,
.md .list.no-hairline-top-md:before,
.md .list.no-hairline-top-md ul:before,
.ios .list.no-hairline-top-ios:before,
.ios .list.no-hairline-top-ios ul:before {
display: none !important;
}
.list.no-hairline-bottom:after,
.list.no-hairline-bottom ul:after,
.md .list.no-hairline-bottom-md:after,
.md .list.no-hairline-bottom-md ul:after,
.ios .list.no-hairline-bottom-ios:after,
.ios .list.no-hairline-bottom-ios ul:after {
display: none !important;
}
.list.no-hairlines-between .item-inner:after,
.md .list.no-hairlines-between-md .item-inner:after,
.ios .list.no-hairlines-between-ios .item-inner:after,
.list.no-hairlines-between .list-button:after,
.md .list.no-hairlines-between-md .list-button:after,
.ios .list.no-hairlines-between-ios .list-button:after,
.list.no-hairlines-between .item-divider:after,
.md .list.no-hairlines-between-md .item-divider:after,
.ios .list.no-hairlines-between-ios .item-divider:after,
.list.no-hairlines-between .list-group-title:after,
.md .list.no-hairlines-between-md .list-group-title:after,
.ios .list.no-hairlines-between-ios .list-group-title:after,
.list.no-hairlines-between .list-group-title:after,
.md .list.no-hairlines-between-md .list-group-title:after,
.ios .list.no-hairlines-between-ios .list-group-title:after {
display: none !important;
}
.list.no-hairlines-between.simple-list li:after,
.md .list.no-hairlines-between-md.simple-list li:after,
.ios .list.no-hairlines-between-ios.simple-list li:after {
display: none !important;
}
.list.no-hairlines-between.links-list a:after,
.md .list.no-hairlines-between-md.links-list a:after,
.ios .list.no-hairlines-between-ios.links-list a:after {
display: none !important;
}
.list.simple-list li {
position: relative;
white-space: nowrap;
text-overflow: ellipsis;
max-width: 100%;
-webkit-box-sizing: border-box;
box-sizing: border-box;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-align-content: center;
-ms-flex-line-pack: center;
align-content: center;
}
.list.simple-list li:last-child:after {
display: none !important;
}
.list.links-list a {
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
-webkit-transition-property: background-color;
transition-property: background-color;
display: block;
position: relative;
overflow: hidden;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-align-content: center;
-ms-flex-line-pack: center;
align-content: center;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-sizing: border-box;
box-sizing: border-box;
white-space: nowrap;
text-overflow: ellipsis;
max-width: 100%;
}
.list.links-list li:last-child a:after {
display: none !important;
}
.media-list .item-inner,
li.media-item .item-inner {
display: block;
-webkit-align-self: stretch;
-ms-flex-item-align: stretch;
align-self: stretch;
}
.media-list .item-link .item-inner,
li.media-item .item-link .item-inner {
background: none;
}
.media-list .item-media,
li.media-item .item-media {
-webkit-align-self: flex-start;
-ms-flex-item-align: start;
align-self: flex-start;
}
.media-list .item-media img,
li.media-item .item-media img {
display: block;
}
.list .item-link .item-inner,
.links-list a,
.media-list .item-link .item-title-row,
li.media-item .item-link .item-title-row,
.media-list.chevron-center .item-link .item-inner,
.media-list .chevron-center .item-link .item-inner,
.media-list .item-link.chevron-center .item-inner,
li.media-item.chevron-center .item-link .item-inner,
li.media-item .chevron-center .item-link .item-inner,
li.media-item .item-link.chevron-center .item-inner {
background-size: 8px 13px;
background-repeat: no-repeat;
background-position: 95% center;
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D'8px'%20height%3D'13px'%20viewBox%3D'0%200%208%2013'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpolygon%20fill%3D'%23c7c7cc'%20transform%3D'translate(1.500000%2C%206.500000)%20rotate(-45.000000)%20translate(-1.500000%2C%20-6.500000)%20'%20points%3D'6%2011%206%202%204%202%204%209%20-3%209%20-3%2011%205%2011'%3E%3C%2Fpolygon%3E%3C%2Fsvg%3E");
}
.links-list.no-chevron a,
.no-chevron .links-list a,
.links-list .no-chevron a,
.item-link.no-chevron .item-inner,
.no-chevron .item-link .item-inner,
.media-list.no-chevron .item-link .item-title-row,
.no-chevron .media-list .item-link .item-title-row,
li.media-item .no-chevron .item-title-row,
li.media-item.no-chevron .item-title-row,
.media-list.chevron-center .item-title-row,
.media-list .chevron-center .item-title-row,
li.media-item.chevron-center .item-title-row,
li.media-item .chevron-center .item-title-row {
background-image: none !important;
}
.media-list .item-link .item-inner,
li.media-item .item-link .item-inner {
background-image: none;
}
.media-list .item-link .item-title-row,
li.media-item .item-link .item-title-row {
background-position: right center !important;
}
.list-group ul:after,
.list-group ul:before {
z-index: 25 !important;
}
.list-group + .list-group ul:before {
display: none !important;
}
li.item-divider,
.item-divider,
li.list-group-title {
white-space: nowrap;
position: relative;
max-width: 100%;
text-overflow: ellipsis;
overflow: hidden;
z-index: 15;
}
li.list-group-title {
position: relative;
position: -webkit-sticky;
position: sticky;
top: 0;
margin-top: 0;
z-index: 20;
}
li.list-group-title:before {
display: none !important;
}
.list.inset .block-title {
margin-left: 0;
margin-right: 0;
}
.list.inset ul:before {
display: none !important;
}
.list.inset ul:after {
display: none !important;
}
@media (min-width: 768px) {
.list.tablet-inset .block-title {
margin-left: 0;
margin-right: 0;
}
.list.tablet-inset ul:before {
display: none !important;
}
.list.tablet-inset ul:after {
display: none !important;
}
}
.theme-dark .list .item-link .item-inner,
.list.theme-dark .item-link .item-inner,
.theme-dark .links-list a,
.links-list.theme-dark a,
.theme-dark .media-list .item-link .item-title-row,
.media-list.theme-dark .item-link .item-title-row,
.theme-dark li.media-item .item-link .item-title-row {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D'8px'%20height%3D'13px'%20viewBox%3D'0%200%208%2013'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpolygon%20fill%3D'%23434345'%20transform%3D'translate(1.500000%2C%206.500000)%20rotate(-45.000000)%20translate(-1.500000%2C%20-6.500000)%20'%20points%3D'6%2011%206%202%204%202%204%209%20-3%209%20-3%2011%205%2011'%3E%3C%2Fpolygon%3E%3C%2Fsvg%3E");
}
.theme-dark .media-list .item-link .item-inner,
.media-list.theme-dark .item-link .item-inner,
.theme-dark li.media-item .item-link .item-inner {
background-image: none;
}
.md .list {
margin: 32px 0;
font-size: 16px;
}
.md .list .item-cell {
width: 100%;
min-width: 0;
margin-left: 16px;
}
.md .list .item-cell:first-child {
margin-left: 0;
}
.md .list .ripple-wave + .item-cell {
margin-left: 0;
}
.md .list ul ul {
padding-left: 56px;
}
.md .list .item-media {
padding-top: 8px;
min-width: 40px;
}
.md .list .item-media i + i,
.md .list .item-media i + img {
margin-left: 8px;
}
.md .list .item-media + .item-inner {
margin-left: 16px;
}
.md .list .item-inner {
min-height: 48px;
padding-right: 16px;
}
.md .list .item-after {
color: #757575;
font-size: 14px;
padding-left: 8px;
}
.md .list .item-link,
.md .list .list-button {
color: inherit;
}
.md .list .item-link .item-inner,
.md .list .list-button .item-inner {
padding-right: 42px;
}
.md .list .item-link.active-state,
.md .list .list-button.active-state {
background-color: rgba(0, 0, 0, 0.1);
}
.md .list .list-button {
padding: 0 16px;
font-size: 16px;
line-height: 48px;
}
.md .list .item-content {
min-height: 48px;
padding-left: 16px;
}
.md .list .item-subtitle {
font-size: 14px;
}
.md .list .item-text {
font-size: 14px;
color: #757575;
line-height: 20px;
max-height: 40px;
}
.md .list .item-header,
.md .list .item-footer {
font-weight: normal;
font-size: 12px;
line-height: 1.2;
white-space: normal;
}
.md .list .item-footer {
color: rgba(0, 0, 0, 0.5);
}
.md .list .item-link.no-chevron .item-inner,
.md .list.no-chevron .item-link .item-inner,
.md .list .no-chevron .item-link .item-inner,
.md .no-chevron .list .item-link .item-inner {
padding-right: 16px;
}
.md .simple-list li:after {
content: '';
position: absolute;
background-color: rgba(0, 0, 0, 0.12);
display: block;
z-index: 15;
top: auto;
right: auto;
bottom: 0;
left: 0;
height: 1px;
width: 100%;
-webkit-transform-origin: 50% 100%;
transform-origin: 50% 100%;
}
.md.device-pixel-ratio-2 .simple-list li:after {
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.md.device-pixel-ratio-3 .simple-list li:after {
-webkit-transform: scaleY(0.33);
transform: scaleY(0.33);
}
.md .simple-list li {
padding-left: 16px;
padding-right: 16px;
line-height: 48px;
height: 48px;
}
.md .simple-list li:after {
width: auto;
left: 16px;
right: 0;
}
.md .links-list a:after {
content: '';
position: absolute;
background-color: rgba(0, 0, 0, 0.12);
display: block;
z-index: 15;
top: auto;
right: auto;
bottom: 0;
left: 0;
height: 1px;
width: 100%;
-webkit-transform-origin: 50% 100%;
transform-origin: 50% 100%;
}
.md.device-pixel-ratio-2 .links-list a:after {
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.md.device-pixel-ratio-3 .links-list a:after {
-webkit-transform: scaleY(0.33);
transform: scaleY(0.33);
}
.md .links-list a {
height: 48px;
color: inherit;
}
.md .links-list a.active-state {
background-color: rgba(0, 0, 0, 0.1);
}
.md .links-list a:after {
width: auto;
}
.md .links-list a {
padding-left: 16px;
padding-right: 42px;
}
.md .links-list a:after {
left: 16px;
right: 0;
}
.md .links-list.no-chevron a,
.md .no-chevron .links-list a,
.md .links-list a.no-chevron,
.md .links-list .no-chevron a {
padding-right: 16px;
}
.md .media-list .item-inner,
.md li.media-item .item-inner {
padding-top: 14px;
padding-bottom: 14px;
}
.md .media-list .item-link .item-inner,
.md li.media-item .item-link .item-inner {
padding-right: 16px;
}
.md .media-list .item-link .item-title-row,
.md li.media-item .item-link .item-title-row {
padding-right: 26px;
}
.md .media-list .item-media,
.md li.media-item .item-media {
padding-top: 14px;
padding-bottom: 14px;
}
.md .media-list.chevron-center .item-link .item-inner,
.md .media-list .chevron-center .item-link .item-inner,
.md .media-list .item-link.chevron-center .item-inner,
.md li.media-item.chevron-center .item-link .item-inner,
.md li.media-item .item-link.chevron-center .item-inner,
.md li.media-item .chevron-center .item-link .item-inner {
padding-right: 42px;
}
.md .media-list.no-chevron .item-link .item-title-row,
.md .no-chevron .media-list .item-link .item-title-row,
.md .media-list .no-chevron .item-link .item-title-row,
.md li.media-item.no-chevron .item-link .item-title-row,
.md .no-chevron li.media-item .item-link .item-title-row,
.md .media-list.chevron-center .item-title-row,
.md .media-list .chevron-center .item-title-row,
.md li.media-item.chevron-center .item-title-row,
.md li.media-item .chevron-center .item-title-row {
padding-right: 0 !important;
}
.md .list .item-link .item-inner,
.md .links-list a {
background-position: calc(100% - 16px) center;
}
.md .item-divider,
.md .list-group-title {
padding: 0 16px;
background: #f4f4f4;
color: rgba(0, 0, 0, 0.54);
height: 48px;
line-height: 48px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
font-size: 14px;
}
.md .item-divider:before,
.md .list-group-title:before {
display: none !important;
}
.md .item-divider:after,
.md .list-group-title:after {
display: none !important;
}
.md .list-group-title {
margin-top: 0;
}
.md .list .item-inner:after {
content: '';
position: absolute;
background-color: rgba(0, 0, 0, 0.12);
display: block;
z-index: 15;
top: auto;
right: auto;
bottom: 0;
left: 0;
height: 1px;
width: 100%;
-webkit-transform-origin: 50% 100%;
transform-origin: 50% 100%;
}
.md.device-pixel-ratio-2 .list .item-inner:after {
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.md.device-pixel-ratio-3 .list .item-inner:after {
-webkit-transform: scaleY(0.33);
transform: scaleY(0.33);
}
.md .list ul:before {
content: '';
position: absolute;
background-color: rgba(0, 0, 0, 0.12);
display: block;
z-index: 15;
top: 0;
right: auto;
bottom: auto;
left: 0;
height: 1px;
width: 100%;
-webkit-transform-origin: 50% 0%;
transform-origin: 50% 0%;
}
.md.device-pixel-ratio-2 .list ul:before {
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.md.device-pixel-ratio-3 .list ul:before {
-webkit-transform: scaleY(0.33);
transform: scaleY(0.33);
}
.md .list ul:after {
content: '';
position: absolute;
background-color: rgba(0, 0, 0, 0.12);
display: block;
z-index: 15;
top: auto;
right: auto;
bottom: 0;
left: 0;
height: 1px;
width: 100%;
-webkit-transform-origin: 50% 100%;
transform-origin: 50% 100%;
}
.md.device-pixel-ratio-2 .list ul:after {
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.md.device-pixel-ratio-3 .list ul:after {
-webkit-transform: scaleY(0.33);
transform: scaleY(0.33);
}
.md .list.inset {
margin-left: 16px;
margin-right: 16px;
border-radius: 4px;
}
.md .list.inset ul {
border-radius: 4px;
}
.md .list.inset li:first-child > a {
border-radius: 4px 4px 0 0;
}
.md .list.inset li:last-child > a {
border-radius: 0 0 4px 4px;
}
.md .list.inset li:first-child:last-child > a {
border-radius: 4px;
}
@media (min-width: 768px) {
.md .list.tablet-inset {
margin-left: 16px;
margin-right: 16px;
border-radius: 4px;
}
.md .list.tablet-inset li:first-child > a {
border-radius: 4px 4px 0 0;
}
.md .list.tablet-inset li:last-child > a {
border-radius: 0 0 4px 4px;
}
.md .list.tablet-inset li:first-child:last-child > a {
border-radius: 4px;
}
}
.md li li:last-child .item-inner:after,
.md li:last-child li .item-inner:after {
content: '';
position: absolute;
background-color: rgba(0, 0, 0, 0.12);
display: block;
z-index: 15;
top: auto;
right: auto;
bottom: 0;
left: 0;
height: 1px;
width: 100%;
-webkit-transform-origin: 50% 100%;
transform-origin: 50% 100%;
}
html.device-pixel-ratio-2 .md li li:last-child .item-inner:after,
html.device-pixel-ratio-2 .md li:last-child li .item-inner:after {
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
html.device-pixel-ratio-3 .md li li:last-child .item-inner:after,
html.device-pixel-ratio-3 .md li:last-child li .item-inner:after {
-webkit-transform: scaleY(0.33);
transform: scaleY(0.33);
}
@media (orientation: landscape) {
.md.device-iphone-x .ios-left-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge).simple-list li,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge).simple-list li,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge).simple-list li,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge).simple-list li,
.md.device-iphone-x .panel-left .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge).simple-list li {
padding-left: calc(16px + constant(safe-area-inset-left));
padding-left: calc(16px + env(safe-area-inset-left));
}
.md.device-iphone-x .ios-left-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge) .item-divider,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge) .item-divider,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge) .item-divider,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge) .item-divider,
.md.device-iphone-x .panel-left .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge) .item-divider,
.md.device-iphone-x .ios-left-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge) .list-group-title,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge) .list-group-title,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge) .list-group-title,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge) .list-group-title,
.md.device-iphone-x .panel-left .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge) .list-group-title {
padding-left: calc(16px + constant(safe-area-inset-left));
padding-left: calc(16px + env(safe-area-inset-left));
}
.md.device-iphone-x .ios-left-edge .list.inset:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .ios-edges .list.inset:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .popup .list.inset:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .sheet-modal .list.inset:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .panel-left .list.inset:not(.no-ios-edges):not(.no-ios-left-edge) {
margin-left: calc(16px + constant(safe-area-inset-left));
margin-left: calc(16px + env(safe-area-inset-left));
}
.md.device-iphone-x .ios-left-edge .list.inset:not(.no-ios-edges):not(.no-ios-left-edge) .block-header,
.md.device-iphone-x .ios-edges .list.inset:not(.no-ios-edges):not(.no-ios-left-edge) .block-header,
.md.device-iphone-x .popup .list.inset:not(.no-ios-edges):not(.no-ios-left-edge) .block-header,
.md.device-iphone-x .sheet-modal .list.inset:not(.no-ios-edges):not(.no-ios-left-edge) .block-header,
.md.device-iphone-x .panel-left .list.inset:not(.no-ios-edges):not(.no-ios-left-edge) .block-header,
.md.device-iphone-x .ios-left-edge .list.inset:not(.no-ios-edges):not(.no-ios-left-edge) .block-footer,
.md.device-iphone-x .ios-edges .list.inset:not(.no-ios-edges):not(.no-ios-left-edge) .block-footer,
.md.device-iphone-x .popup .list.inset:not(.no-ios-edges):not(.no-ios-left-edge) .block-footer,
.md.device-iphone-x .sheet-modal .list.inset:not(.no-ios-edges):not(.no-ios-left-edge) .block-footer,
.md.device-iphone-x .panel-left .list.inset:not(.no-ios-edges):not(.no-ios-left-edge) .block-footer {
padding-left: 15px;
}
.md.device-iphone-x .ios-left-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge) .item-content,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge) .item-content,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge) .item-content,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge) .item-content,
.md.device-iphone-x .panel-left .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge) .item-content {
padding-left: calc(16px + constant(safe-area-inset-left));
padding-left: calc(16px + env(safe-area-inset-left));
}
.md.device-iphone-x .ios-left-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge).simple-list li:after,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge).simple-list li:after,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge).simple-list li:after,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge).simple-list li:after,
.md.device-iphone-x .panel-left .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge).simple-list li:after {
left: calc(16px + constant(safe-area-inset-left));
left: calc(16px + env(safe-area-inset-left));
}
.md.device-iphone-x .ios-left-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge).links-list a,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge).links-list a,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge).links-list a,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge).links-list a,
.md.device-iphone-x .panel-left .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge).links-list a {
padding-left: calc(16px + constant(safe-area-inset-left));
padding-left: calc(16px + env(safe-area-inset-left));
}
.md.device-iphone-x .ios-left-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge).links-list a:after,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge).links-list a:after,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge).links-list a:after,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge).links-list a:after,
.md.device-iphone-x .panel-left .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-left-edge).links-list a:after {
left: calc(16px + constant(safe-area-inset-left));
left: calc(16px + env(safe-area-inset-left));
}
.md.device-iphone-x .ios-right-edge .list.inset:not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .ios-edges .list.inset:not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .popup .list.inset:not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .sheet-modal .list.inset:not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .panel-right .list.inset:not(.no-ios-edges):not(.no-ios-right-edge) {
margin-right: calc(16px + constant(safe-area-inset-right));
margin-right: calc(16px + env(safe-area-inset-right));
}
.md.device-iphone-x .ios-right-edge .list.inset:not(.no-ios-edges):not(.no-ios-right-edge) .block-header,
.md.device-iphone-x .ios-edges .list.inset:not(.no-ios-edges):not(.no-ios-right-edge) .block-header,
.md.device-iphone-x .popup .list.inset:not(.no-ios-edges):not(.no-ios-right-edge) .block-header,
.md.device-iphone-x .sheet-modal .list.inset:not(.no-ios-edges):not(.no-ios-right-edge) .block-header,
.md.device-iphone-x .panel-right .list.inset:not(.no-ios-edges):not(.no-ios-right-edge) .block-header,
.md.device-iphone-x .ios-right-edge .list.inset:not(.no-ios-edges):not(.no-ios-right-edge) .block-footer,
.md.device-iphone-x .ios-edges .list.inset:not(.no-ios-edges):not(.no-ios-right-edge) .block-footer,
.md.device-iphone-x .popup .list.inset:not(.no-ios-edges):not(.no-ios-right-edge) .block-footer,
.md.device-iphone-x .sheet-modal .list.inset:not(.no-ios-edges):not(.no-ios-right-edge) .block-footer,
.md.device-iphone-x .panel-right .list.inset:not(.no-ios-edges):not(.no-ios-right-edge) .block-footer {
padding-right: 16px;
}
.md.device-iphone-x .ios-right-edge .list.tablet-inset:not(.no-ios-edges):not(.no-ios-right-edge) .block-header,
.md.device-iphone-x .ios-edges .list.tablet-inset:not(.no-ios-edges):not(.no-ios-right-edge) .block-header,
.md.device-iphone-x .popup .list.tablet-inset:not(.no-ios-edges):not(.no-ios-right-edge) .block-header,
.md.device-iphone-x .sheet-modal .list.tablet-inset:not(.no-ios-edges):not(.no-ios-right-edge) .block-header,
.md.device-iphone-x .panel-right .list.tablet-inset:not(.no-ios-edges):not(.no-ios-right-edge) .block-header,
.md.device-iphone-x .ios-right-edge .list.tablet-inset:not(.no-ios-edges):not(.no-ios-right-edge) .block-footer,
.md.device-iphone-x .ios-edges .list.tablet-inset:not(.no-ios-edges):not(.no-ios-right-edge) .block-footer,
.md.device-iphone-x .popup .list.tablet-inset:not(.no-ios-edges):not(.no-ios-right-edge) .block-footer,
.md.device-iphone-x .sheet-modal .list.tablet-inset:not(.no-ios-edges):not(.no-ios-right-edge) .block-footer,
.md.device-iphone-x .panel-right .list.tablet-inset:not(.no-ios-edges):not(.no-ios-right-edge) .block-footer {
padding-right: 16px;
}
.md.device-iphone-x .ios-right-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-divider,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-divider,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-divider,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-divider,
.md.device-iphone-x .panel-right .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-divider,
.md.device-iphone-x .ios-right-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .list-group-title,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .list-group-title,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .list-group-title,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .list-group-title,
.md.device-iphone-x .panel-right .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .list-group-title {
padding-right: calc(16px + constant(safe-area-inset-right));
padding-right: calc(16px + env(safe-area-inset-right));
}
.md.device-iphone-x .ios-right-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).simple-list li,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).simple-list li,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).simple-list li,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).simple-list li,
.md.device-iphone-x .panel-right .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).simple-list li {
padding-right: calc(16px + constant(safe-area-inset-right));
padding-right: calc(16px + env(safe-area-inset-right));
}
.md.device-iphone-x .ios-right-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-link .item-inner,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-link .item-inner,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-link .item-inner,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-link .item-inner,
.md.device-iphone-x .panel-right .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-link .item-inner,
.md.device-iphone-x .ios-right-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).links-list a,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).links-list a,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).links-list a,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).links-list a,
.md.device-iphone-x .panel-right .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).links-list a {
background-position: calc(100% - 16px - constant(safe-area-inset-right)) center;
background-position: calc(100% - 16px - env(safe-area-inset-right)) center;
}
.md.device-iphone-x .ios-right-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-inner,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-inner,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-inner,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-inner,
.md.device-iphone-x .panel-right .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-inner {
padding-right: calc(16px + constant(safe-area-inset-right));
padding-right: calc(16px + env(safe-area-inset-right));
}
.md.device-iphone-x .ios-right-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-link .item-inner,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-link .item-inner,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-link .item-inner,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-link .item-inner,
.md.device-iphone-x .panel-right .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-link .item-inner {
padding-right: calc(42px + constant(safe-area-inset-right));
padding-right: calc(42px + env(safe-area-inset-right));
}
.md.device-iphone-x .ios-right-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list .item-link .item-inner,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list .item-link .item-inner,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list .item-link .item-inner,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list .item-link .item-inner,
.md.device-iphone-x .panel-right .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list .item-link .item-inner,
.md.device-iphone-x .ios-right-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) li.media-item .item-link .item-inner,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) li.media-item .item-link .item-inner,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) li.media-item .item-link .item-inner,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) li.media-item .item-link .item-inner,
.md.device-iphone-x .panel-right .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) li.media-item .item-link .item-inner {
padding-right: calc(16px + constant(safe-area-inset-right));
padding-right: calc(16px + env(safe-area-inset-right));
}
.md.device-iphone-x .ios-right-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).links-list a,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).links-list a,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).links-list a,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).links-list a,
.md.device-iphone-x .panel-right .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).links-list a {
padding-right: calc(42px + constant(safe-area-inset-right));
padding-right: calc(42px + env(safe-area-inset-right));
}
.md.device-iphone-x .ios-right-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list.chevron-center .item-link .item-inner,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list.chevron-center .item-link .item-inner,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list.chevron-center .item-link .item-inner,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list.chevron-center .item-link .item-inner,
.md.device-iphone-x .panel-right .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list.chevron-center .item-link .item-inner,
.md.device-iphone-x .ios-right-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list .chevron-center .item-link .item-inner,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list .chevron-center .item-link .item-inner,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list .chevron-center .item-link .item-inner,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list .chevron-center .item-link .item-inner,
.md.device-iphone-x .panel-right .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list .chevron-center .item-link .item-inner,
.md.device-iphone-x .ios-right-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list .item-link.chevron-center .item-inner,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list .item-link.chevron-center .item-inner,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list .item-link.chevron-center .item-inner,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list .item-link.chevron-center .item-inner,
.md.device-iphone-x .panel-right .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list .item-link.chevron-center .item-inner,
.md.device-iphone-x .ios-right-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) li.media-item.chevron-center .item-link .item-inner,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) li.media-item.chevron-center .item-link .item-inner,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) li.media-item.chevron-center .item-link .item-inner,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) li.media-item.chevron-center .item-link .item-inner,
.md.device-iphone-x .panel-right .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) li.media-item.chevron-center .item-link .item-inner,
.md.device-iphone-x .ios-right-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) li.media-item .item-link.chevron-center .item-inner,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) li.media-item .item-link.chevron-center .item-inner,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) li.media-item .item-link.chevron-center .item-inner,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) li.media-item .item-link.chevron-center .item-inner,
.md.device-iphone-x .panel-right .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) li.media-item .item-link.chevron-center .item-inner,
.md.device-iphone-x .ios-right-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) li.media-item .chevron-center .item-link .item-inner,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) li.media-item .chevron-center .item-link .item-inner,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) li.media-item .chevron-center .item-link .item-inner,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) li.media-item .chevron-center .item-link .item-inner,
.md.device-iphone-x .panel-right .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) li.media-item .chevron-center .item-link .item-inner {
padding-right: calc(42px + constant(safe-area-inset-right));
padding-right: calc(42px + env(safe-area-inset-right));
}
.md.device-iphone-x .ios-right-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-link.no-chevron .item-inner,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-link.no-chevron .item-inner,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-link.no-chevron .item-inner,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-link.no-chevron .item-inner,
.md.device-iphone-x .panel-right .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-link.no-chevron .item-inner,
.md.device-iphone-x .ios-right-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).no-chevron .item-link .item-inner,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).no-chevron .item-link .item-inner,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).no-chevron .item-link .item-inner,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).no-chevron .item-link .item-inner,
.md.device-iphone-x .panel-right .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).no-chevron .item-link .item-inner,
.md.device-iphone-x .ios-right-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .no-chevron .item-link .item-inner,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .no-chevron .item-link .item-inner,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .no-chevron .item-link .item-inner,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .no-chevron .item-link .item-inner,
.md.device-iphone-x .panel-right .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .no-chevron .item-link .item-inner,
.md.device-iphone-x .ios-right-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).links-list.no-chevron a,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).links-list.no-chevron a,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).links-list.no-chevron a,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).links-list.no-chevron a,
.md.device-iphone-x .panel-right .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).links-list.no-chevron a,
.md.device-iphone-x .ios-right-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).links-list a.no-chevron,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).links-list a.no-chevron,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).links-list a.no-chevron,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).links-list a.no-chevron,
.md.device-iphone-x .panel-right .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).links-list a.no-chevron,
.md.device-iphone-x .ios-right-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).links-list .no-chevron a,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).links-list .no-chevron a,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).links-list .no-chevron a,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).links-list .no-chevron a,
.md.device-iphone-x .panel-right .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).links-list .no-chevron a {
padding-right: calc(16px + constant(safe-area-inset-right));
padding-right: calc(16px + env(safe-area-inset-right));
}
.md.device-iphone-x .ios-right-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list.no-chevron .item-link .item-title-row,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list.no-chevron .item-link .item-title-row,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list.no-chevron .item-link .item-title-row,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list.no-chevron .item-link .item-title-row,
.md.device-iphone-x .panel-right .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list.no-chevron .item-link .item-title-row,
.md.device-iphone-x .ios-right-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list .no-chevron .item-link .item-title-row,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list .no-chevron .item-link .item-title-row,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list .no-chevron .item-link .item-title-row,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list .no-chevron .item-link .item-title-row,
.md.device-iphone-x .panel-right .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).media-list .no-chevron .item-link .item-title-row,
.md.device-iphone-x .ios-right-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) li.media-item.no-chevron .item-link .item-title-row,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) li.media-item.no-chevron .item-link .item-title-row,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) li.media-item.no-chevron .item-link .item-title-row,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) li.media-item.no-chevron .item-link .item-title-row,
.md.device-iphone-x .panel-right .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) li.media-item.no-chevron .item-link .item-title-row,
.md.device-iphone-x .ios-right-edge .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).no-chevron li.media-item .item-link .item-title-row,
.md.device-iphone-x .ios-edges .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).no-chevron li.media-item .item-link .item-title-row,
.md.device-iphone-x .popup .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).no-chevron li.media-item .item-link .item-title-row,
.md.device-iphone-x .sheet-modal .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).no-chevron li.media-item .item-link .item-title-row,
.md.device-iphone-x .panel-right .list:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge).no-chevron li.media-item .item-link .item-title-row {
padding-right: 0;
}
}
@media (orientation: landscape) and (min-width: 768px) {
.md.device-iphone-x .ios-left-edge .list.tablet-inset:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .ios-edges .list.tablet-inset:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .popup .list.tablet-inset:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .sheet-modal .list.tablet-inset:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .panel-left .list.tablet-inset:not(.no-ios-edges):not(.no-ios-left-edge) {
margin-left: calc(16px + constant(safe-area-inset-left));
margin-left: calc(16px + env(safe-area-inset-left));
}
.md.device-iphone-x .ios-left-edge .list.tablet-inset:not(.no-ios-edges):not(.no-ios-left-edge) .block-header,
.md.device-iphone-x .ios-edges .list.tablet-inset:not(.no-ios-edges):not(.no-ios-left-edge) .block-header,
.md.device-iphone-x .popup .list.tablet-inset:not(.no-ios-edges):not(.no-ios-left-edge) .block-header,
.md.device-iphone-x .sheet-modal .list.tablet-inset:not(.no-ios-edges):not(.no-ios-left-edge) .block-header,
.md.device-iphone-x .panel-left .list.tablet-inset:not(.no-ios-edges):not(.no-ios-left-edge) .block-header,
.md.device-iphone-x .ios-left-edge .list.tablet-inset:not(.no-ios-edges):not(.no-ios-left-edge) .block-footer,
.md.device-iphone-x .ios-edges .list.tablet-inset:not(.no-ios-edges):not(.no-ios-left-edge) .block-footer,
.md.device-iphone-x .popup .list.tablet-inset:not(.no-ios-edges):not(.no-ios-left-edge) .block-footer,
.md.device-iphone-x .sheet-modal .list.tablet-inset:not(.no-ios-edges):not(.no-ios-left-edge) .block-footer,
.md.device-iphone-x .panel-left .list.tablet-inset:not(.no-ios-edges):not(.no-ios-left-edge) .block-footer {
padding-left: 15px;
}
}
@media (orientation: landscape) and (min-width: 768px) {
.md.device-iphone-x .ios-right-edge .list.tablet-inset:not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .ios-edges .list.tablet-inset:not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .popup .list.tablet-inset:not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .sheet-modal .list.tablet-inset:not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .panel-right .list.tablet-inset:not(.no-ios-edges):not(.no-ios-right-edge) {
margin-right: calc(16px + constant(safe-area-inset-right));
margin-right: calc(16px + env(safe-area-inset-right));
}
}
.md .theme-dark .list ul:before,
.list.md .theme-dark ul:before {
background-color: rgba(255, 255, 255, 0.08);
}
.md .theme-dark .list ul:after,
.list.md .theme-dark ul:after {
background-color: rgba(255, 255, 255, 0.08);
}
.md .theme-dark .list li li:last-child .item-inner:after,
.list.md .theme-dark li li:last-child .item-inner:after,
.md .theme-dark .list li:last-child li .item-inner:after,
.list.md .theme-dark li:last-child li .item-inner:after {
background-color: rgba(255, 255, 255, 0.08);
}
.md .theme-dark .item-divider:before {
background-color: rgba(255, 255, 255, 0.08);
}
.md .theme-dark .list-group-title:before {
background-color: rgba(255, 255, 255, 0.08);
}
.md .theme-dark .list-button:after {
background-color: rgba(255, 255, 255, 0.08);
}
.md .theme-dark .item-inner:after {
background-color: rgba(255, 255, 255, 0.08);
}
.md .theme-dark .item-divider,
.md .theme-dark .list-group-title {
background-color: #111;
color: #fff;
}
.md .theme-dark .links-list a:after,
.md .theme-dark .simple-list li:after,
.md .theme-dark .links-list a:after,
.links-list.md .theme-dark a .simple-list li:after,
.simple-list.md .theme-dark li:after {
background-color: rgba(255, 255, 255, 0.08);
}
.md .theme-dark .list .item-link.active-state,
.list.md .theme-dark .item-link.active-state,
.md .theme-dark .list .list-button.active-state,
.list.md .theme-dark .list-button.active-state,
.md .theme-dark .links-list a.active-state,
.links-list.md .theme-dark a.active-state {
background-color: rgba(255, 255, 255, 0.05);
}
.md .theme-dark .item-after,
.md .theme-dark .item-text {
color: rgba(255, 255, 255, 0.54);
}
.md .color-theme-red .list-button {
color: #f44336;
}
.md .color-theme-green .list-button {
color: #4caf50;
}
.md .color-theme-blue .list-button {
color: #2196f3;
}
.md .color-theme-pink .list-button {
color: #e91e63;
}
.md .color-theme-yellow .list-button {
color: #ffeb3b;
}
.md .color-theme-orange .list-button {
color: #ff9800;
}
.md .color-theme-gray .list-button {
color: #9e9e9e;
}
.md .color-theme-white .list-button {
color: #ffffff;
}
.md .color-theme-black .list-button {
color: #000000;
}
.md .list .list-button.color-red,
.md .list li.color-red .list-button,
.md .links-list li.color-red a,
.md .simple-list li.color-red,
.md .links-list a.color-red,
.md .list .item-link.color-red,
.md .list li.color-red .item-link {
color: #f44336;
}
.md .list .list-button.color-green,
.md .list li.color-green .list-button,
.md .links-list li.color-green a,
.md .simple-list li.color-green,
.md .links-list a.color-green,
.md .list .item-link.color-green,
.md .list li.color-green .item-link {
color: #4caf50;
}
.md .list .list-button.color-blue,
.md .list li.color-blue .list-button,
.md .links-list li.color-blue a,
.md .simple-list li.color-blue,
.md .links-list a.color-blue,
.md .list .item-link.color-blue,
.md .list li.color-blue .item-link {
color: #2196f3;
}
.md .list .list-button.color-pink,
.md .list li.color-pink .list-button,
.md .links-list li.color-pink a,
.md .simple-list li.color-pink,
.md .links-list a.color-pink,
.md .list .item-link.color-pink,
.md .list li.color-pink .item-link {
color: #e91e63;
}
.md .list .list-button.color-yellow,
.md .list li.color-yellow .list-button,
.md .links-list li.color-yellow a,
.md .simple-list li.color-yellow,
.md .links-list a.color-yellow,
.md .list .item-link.color-yellow,
.md .list li.color-yellow .item-link {
color: #ffeb3b;
}
.md .list .list-button.color-orange,
.md .list li.color-orange .list-button,
.md .links-list li.color-orange a,
.md .simple-list li.color-orange,
.md .links-list a.color-orange,
.md .list .item-link.color-orange,
.md .list li.color-orange .item-link {
color: #ff9800;
}
.md .list .list-button.color-gray,
.md .list li.color-gray .list-button,
.md .links-list li.color-gray a,
.md .simple-list li.color-gray,
.md .links-list a.color-gray,
.md .list .item-link.color-gray,
.md .list li.color-gray .item-link {
color: #9e9e9e;
}
.md .list .list-button.color-white,
.md .list li.color-white .list-button,
.md .links-list li.color-white a,
.md .simple-list li.color-white,
.md .links-list a.color-white,
.md .list .item-link.color-white,
.md .list li.color-white .item-link {
color: #ffffff;
}
.md .list .list-button.color-black,
.md .list li.color-black .list-button,
.md .links-list li.color-black a,
.md .simple-list li.color-black,
.md .links-list a.color-black,
.md .list .item-link.color-black,
.md .list li.color-black .item-link {
color: #000000;
}
/* === Badge === */
.badge {
display: inline-block;
color: #fff;
background: #8e8e93;
position: relative;
-webkit-box-sizing: border-box;
box-sizing: border-box;
text-align: center;
}
.icon .badge,
.f7-icons .badge,
.framework7-icons .badge,
.material-icons .badge {
position: absolute;
left: 100%;
margin-left: -10px;
top: -2px;
}
.md .badge {
font-size: 10px;
border-radius: 3px;
padding: 1px 6px;
vertical-align: middle;
}
.md .icon .badge,
.md .f7-icons .badge,
.md .framework7-icons .badge,
.md .material-icons .badge {
line-height: 1.4;
padding: 1px 5px;
font-family: Roboto, Noto, Helvetica, Arial, sans-serif;
font-size: 10px;
}
.md .badge.color-red {
background-color: #f44336;
}
.md .badge.color-green {
background-color: #4caf50;
}
.md .badge.color-blue {
background-color: #2196f3;
}
.md .badge.color-pink {
background-color: #e91e63;
}
.md .badge.color-yellow {
background-color: #ffeb3b;
}
.md .badge.color-orange {
background-color: #ff9800;
}
.md .badge.color-gray {
background-color: #9e9e9e;
}
.md .badge.color-white {
background-color: #ffffff;
}
.md .badge.color-black {
background-color: #000000;
}
button {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
.button {
text-decoration: none;
text-align: center;
display: block;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background: none;
padding: 0 10px;
margin: 0;
white-space: nowrap;
text-overflow: ellipsis;
font-size: 14px;
position: relative;
overflow: hidden;
font-family: inherit;
cursor: pointer;
outline: 0;
-webkit-box-sizing: border-box;
box-sizing: border-box;
vertical-align: middle;
}
input[type="submit"].button,
input[type="button"].button {
width: 100%;
}
button {
width: 100%;
}
.segmented {
-webkit-align-self: center;
-ms-flex-item-align: center;
align-self: center;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
}
.segmented .button,
.segmented button {
width: 100%;
-webkit-flex-shrink: 1;
-ms-flex-negative: 1;
flex-shrink: 1;
min-width: 0;
}
.subnavbar .segmented {
width: 100%;
}
.md .button {
color: #2196f3;
border-radius: 4px;
line-height: 36px;
height: 36px;
text-transform: uppercase;
min-width: 64px;
padding: 0 8px;
border: none;
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
font-weight: 500;
letter-spacing: 0.03em;
}
.md .button.active-state {
background: rgba(0, 0, 0, 0.1);
}
.md .button.button-fill,
.md .button.button-fill-md,
.md .button.button-active,
.md .button.tab-link-active {
background-color: #2196f3;
color: #fff;
}
.md .button.button-fill.active-state,
.md .button.button-fill-md.active-state,
.md .button.button-active.active-state,
.md .button.tab-link-active.active-state {
background: #0c82df;
}
.md .button.button-big,
.md .button.button-big-md {
height: 48px;
line-height: 48px;
border-radius: 4px;
}
.md .button.button-round,
.md .button.button-round-md {
border-radius: 36px;
}
.md .button.button-outline {
border: 2px solid #2196f3;
line-height: 32px;
}
.md .button.button-outline.button-big,
.md .button.button-outline.button-big-md {
line-height: 44px;
}
.md .button.button-small,
.md .button.button-small-md {
height: 28px;
line-height: 28px;
font-size: 13px;
font-weight: 500;
letter-spacing: 0.03em;
}
.md .button.button-small.button-outline,
.md .button.button-small-md.button-outline {
border-width: 2px;
line-height: 24px;
}
.md .button > i.icon + span,
.md .button > span:not(.ripple-wave) + span,
.md .button > span:not(.ripple-wave) + i.icon,
.md .button > i.icon + i.icon {
margin-left: 8px;
}
.md .button.button-raised {
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.md .button.button-raised.active-state {
-webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}
.md .navbar .button:not(.button-fill):not(.button-fill-md),
.md .subnavbar .button:not(.button-fill):not(.button-fill-md),
.md .toolbar .button:not(.button-fill):not(.button-fill-md) {
color: #fff;
}
.md .navbar .button:not(.button-fill):not(.button-fill-md).active-state,
.md .subnavbar .button:not(.button-fill):not(.button-fill-md).active-state,
.md .toolbar .button:not(.button-fill):not(.button-fill-md).active-state {
background: rgba(255, 255, 255, 0.15);
}
.md .toast .button:not(.button-fill):not(.button-fill-md).active-state {
background: rgba(255, 255, 255, 0.15);
}
.md .segmented {
border-radius: 4px;
}
.md .segmented.segmented-raised {
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.md .segmented.segmented-round {
border-radius: 36px;
}
.md .segmented .button {
border-radius: 0;
min-width: 0;
border-left: 1px solid rgba(0, 0, 0, 0.1);
}
.md .segmented .button:first-child {
border-radius: 4px 0 0 4px;
border-left: none;
}
.md .segmented .button.button-outline {
border: 2px solid #2196f3;
}
.md .segmented .button.button-outline:nth-child(n + 2) {
border-left: none;
}
.md .segmented .button:last-child {
border-radius: 0 4px 4px 0;
}
.md .segmented .button:first-child:last-child {
border-radius: 4px;
}
.md .segmented .button.button-round:first-child {
border-radius: 36px 0 0 36px;
}
.md .segmented .button.button-round:last-child {
border-radius: 0 36px 36px 0;
}
.md .theme-dark .button:not(.button-fill):not(.button-fill-md):not(.button-active):not(.tab-link-active).active-state {
background-color: rgba(255, 255, 255, 0.1);
}
.md .color-theme-red .button,
.md .color-red .button {
color: #f44336;
}
.md .color-theme-red .button.button-fill,
.md .color-red .button.button-fill,
.md .color-theme-red .button.button-fill-md,
.md .color-red .button.button-fill-md,
.md .color-theme-red .button.button-active,
.md .color-red .button.button-active,
.md .color-theme-red .button.tab-link-active,
.md .color-red .button.tab-link-active {
background-color: #f44336;
color: #fff;
}
.md .color-theme-red .button.button-fill.active-state,
.md .color-red .button.button-fill.active-state,
.md .color-theme-red .button.button-fill-md.active-state,
.md .color-red .button.button-fill-md.active-state,
.md .color-theme-red .button.button-active.active-state,
.md .color-red .button.button-active.active-state,
.md .color-theme-red .button.tab-link-active.active-state,
.md .color-red .button.tab-link-active.active-state {
background: #f21f0f;
}
.md .color-theme-red .button.button-outline,
.md .color-red .button.button-outline {
border-color: #f44336;
}
.md .color-theme-green .button,
.md .color-green .button {
color: #4caf50;
}
.md .color-theme-green .button.button-fill,
.md .color-green .button.button-fill,
.md .color-theme-green .button.button-fill-md,
.md .color-green .button.button-fill-md,
.md .color-theme-green .button.button-active,
.md .color-green .button.button-active,
.md .color-theme-green .button.tab-link-active,
.md .color-green .button.tab-link-active {
background-color: #4caf50;
color: #fff;
}
.md .color-theme-green .button.button-fill.active-state,
.md .color-green .button.button-fill.active-state,
.md .color-theme-green .button.button-fill-md.active-state,
.md .color-green .button.button-fill-md.active-state,
.md .color-theme-green .button.button-active.active-state,
.md .color-green .button.button-active.active-state,
.md .color-theme-green .button.tab-link-active.active-state,
.md .color-green .button.tab-link-active.active-state {
background: #409343;
}
.md .color-theme-green .button.button-outline,
.md .color-green .button.button-outline {
border-color: #4caf50;
}
.md .color-theme-blue .button,
.md .color-blue .button {
color: #2196f3;
}
.md .color-theme-blue .button.button-fill,
.md .color-blue .button.button-fill,
.md .color-theme-blue .button.button-fill-md,
.md .color-blue .button.button-fill-md,
.md .color-theme-blue .button.button-active,
.md .color-blue .button.button-active,
.md .color-theme-blue .button.tab-link-active,
.md .color-blue .button.tab-link-active {
background-color: #2196f3;
color: #fff;
}
.md .color-theme-blue .button.button-fill.active-state,
.md .color-blue .button.button-fill.active-state,
.md .color-theme-blue .button.button-fill-md.active-state,
.md .color-blue .button.button-fill-md.active-state,
.md .color-theme-blue .button.button-active.active-state,
.md .color-blue .button.button-active.active-state,
.md .color-theme-blue .button.tab-link-active.active-state,
.md .color-blue .button.tab-link-active.active-state {
background: #0c82df;
}
.md .color-theme-blue .button.button-outline,
.md .color-blue .button.button-outline {
border-color: #2196f3;
}
.md .color-theme-pink .button,
.md .color-pink .button {
color: #e91e63;
}
.md .color-theme-pink .button.button-fill,
.md .color-pink .button.button-fill,
.md .color-theme-pink .button.button-fill-md,
.md .color-pink .button.button-fill-md,
.md .color-theme-pink .button.button-active,
.md .color-pink .button.button-active,
.md .color-theme-pink .button.tab-link-active,
.md .color-pink .button.tab-link-active {
background-color: #e91e63;
color: #fff;
}
.md .color-theme-pink .button.button-fill.active-state,
.md .color-pink .button.button-fill.active-state,
.md .color-theme-pink .button.button-fill-md.active-state,
.md .color-pink .button.button-fill-md.active-state,
.md .color-theme-pink .button.button-active.active-state,
.md .color-pink .button.button-active.active-state,
.md .color-theme-pink .button.tab-link-active.active-state,
.md .color-pink .button.tab-link-active.active-state {
background: #ca1452;
}
.md .color-theme-pink .button.button-outline,
.md .color-pink .button.button-outline {
border-color: #e91e63;
}
.md .color-theme-yellow .button,
.md .color-yellow .button {
color: #ffeb3b;
}
.md .color-theme-yellow .button.button-fill,
.md .color-yellow .button.button-fill,
.md .color-theme-yellow .button.button-fill-md,
.md .color-yellow .button.button-fill-md,
.md .color-theme-yellow .button.button-active,
.md .color-yellow .button.button-active,
.md .color-theme-yellow .button.tab-link-active,
.md .color-yellow .button.tab-link-active {
background-color: #ffeb3b;
color: #fff;
}
.md .color-theme-yellow .button.button-fill.active-state,
.md .color-yellow .button.button-fill.active-state,
.md .color-theme-yellow .button.button-fill-md.active-state,
.md .color-yellow .button.button-fill-md.active-state,
.md .color-theme-yellow .button.button-active.active-state,
.md .color-yellow .button.button-active.active-state,
.md .color-theme-yellow .button.tab-link-active.active-state,
.md .color-yellow .button.tab-link-active.active-state {
background: #ffe712;
}
.md .color-theme-yellow .button.button-outline,
.md .color-yellow .button.button-outline {
border-color: #ffeb3b;
}
.md .color-theme-orange .button,
.md .color-orange .button {
color: #ff9800;
}
.md .color-theme-orange .button.button-fill,
.md .color-orange .button.button-fill,
.md .color-theme-orange .button.button-fill-md,
.md .color-orange .button.button-fill-md,
.md .color-theme-orange .button.button-active,
.md .color-orange .button.button-active,
.md .color-theme-orange .button.tab-link-active,
.md .color-orange .button.tab-link-active {
background-color: #ff9800;
color: #fff;
}
.md .color-theme-orange .button.button-fill.active-state,
.md .color-orange .button.button-fill.active-state,
.md .color-theme-orange .button.button-fill-md.active-state,
.md .color-orange .button.button-fill-md.active-state,
.md .color-theme-orange .button.button-active.active-state,
.md .color-orange .button.button-active.active-state,
.md .color-theme-orange .button.tab-link-active.active-state,
.md .color-orange .button.tab-link-active.active-state {
background: #d68000;
}
.md .color-theme-orange .button.button-outline,
.md .color-orange .button.button-outline {
border-color: #ff9800;
}
.md .color-theme-gray .button,
.md .color-gray .button {
color: #9e9e9e;
}
.md .color-theme-gray .button.button-fill,
.md .color-gray .button.button-fill,
.md .color-theme-gray .button.button-fill-md,
.md .color-gray .button.button-fill-md,
.md .color-theme-gray .button.button-active,
.md .color-gray .button.button-active,
.md .color-theme-gray .button.tab-link-active,
.md .color-gray .button.tab-link-active {
background-color: #9e9e9e;
color: #fff;
}
.md .color-theme-gray .button.button-fill.active-state,
.md .color-gray .button.button-fill.active-state,
.md .color-theme-gray .button.button-fill-md.active-state,
.md .color-gray .button.button-fill-md.active-state,
.md .color-theme-gray .button.button-active.active-state,
.md .color-gray .button.button-active.active-state,
.md .color-theme-gray .button.tab-link-active.active-state,
.md .color-gray .button.tab-link-active.active-state {
background: #8a8a8a;
}
.md .color-theme-gray .button.button-outline,
.md .color-gray .button.button-outline {
border-color: #9e9e9e;
}
.md .color-theme-white .button,
.md .color-white .button {
color: #ffffff;
}
.md .color-theme-white .button.button-fill,
.md .color-white .button.button-fill,
.md .color-theme-white .button.button-fill-md,
.md .color-white .button.button-fill-md,
.md .color-theme-white .button.button-active,
.md .color-white .button.button-active,
.md .color-theme-white .button.tab-link-active,
.md .color-white .button.tab-link-active {
background-color: #ffffff;
color: #fff;
}
.md .color-theme-white .button.button-fill.active-state,
.md .color-white .button.button-fill.active-state,
.md .color-theme-white .button.button-fill-md.active-state,
.md .color-white .button.button-fill-md.active-state,
.md .color-theme-white .button.button-active.active-state,
.md .color-white .button.button-active.active-state,
.md .color-theme-white .button.tab-link-active.active-state,
.md .color-white .button.tab-link-active.active-state {
background: #ebebeb;
}
.md .color-theme-white .button.button-outline,
.md .color-white .button.button-outline {
border-color: #ffffff;
}
.md .color-theme-black .button,
.md .color-black .button {
color: #000000;
}
.md .color-theme-black .button.button-fill,
.md .color-black .button.button-fill,
.md .color-theme-black .button.button-fill-md,
.md .color-black .button.button-fill-md,
.md .color-theme-black .button.button-active,
.md .color-black .button.button-active,
.md .color-theme-black .button.tab-link-active,
.md .color-black .button.tab-link-active {
background-color: #000000;
color: #fff;
}
.md .color-theme-black .button.button-fill.active-state,
.md .color-black .button.button-fill.active-state,
.md .color-theme-black .button.button-fill-md.active-state,
.md .color-black .button.button-fill-md.active-state,
.md .color-theme-black .button.button-active.active-state,
.md .color-black .button.button-active.active-state,
.md .color-theme-black .button.tab-link-active.active-state,
.md .color-black .button.tab-link-active.active-state {
background: #000000;
}
.md .color-theme-black .button.button-outline,
.md .color-black .button.button-outline {
border-color: #000000;
}
.md .button.color-red {
color: #f44336;
}
.md .button.color-red.button-fill,
.md .button.color-red.button-fill-md,
.md .button.color-red.button-active,
.md .button.color-red.tab-link-active {
background-color: #f44336;
color: #fff;
}
.md .button.color-red.button-fill.active-state,
.md .button.color-red.button-fill-md.active-state,
.md .button.color-red.button-active.active-state,
.md .button.color-red.tab-link-active.active-state {
background: #f21f0f;
}
.md .button.color-red.button-outline {
border-color: #f44336;
}
.md .button.color-green {
color: #4caf50;
}
.md .button.color-green.button-fill,
.md .button.color-green.button-fill-md,
.md .button.color-green.button-active,
.md .button.color-green.tab-link-active {
background-color: #4caf50;
color: #fff;
}
.md .button.color-green.button-fill.active-state,
.md .button.color-green.button-fill-md.active-state,
.md .button.color-green.button-active.active-state,
.md .button.color-green.tab-link-active.active-state {
background: #409343;
}
.md .button.color-green.button-outline {
border-color: #4caf50;
}
.md .button.color-blue {
color: #2196f3;
}
.md .button.color-blue.button-fill,
.md .button.color-blue.button-fill-md,
.md .button.color-blue.button-active,
.md .button.color-blue.tab-link-active {
background-color: #2196f3;
color: #fff;
}
.md .button.color-blue.button-fill.active-state,
.md .button.color-blue.button-fill-md.active-state,
.md .button.color-blue.button-active.active-state,
.md .button.color-blue.tab-link-active.active-state {
background: #0c82df;
}
.md .button.color-blue.button-outline {
border-color: #2196f3;
}
.md .button.color-pink {
color: #e91e63;
}
.md .button.color-pink.button-fill,
.md .button.color-pink.button-fill-md,
.md .button.color-pink.button-active,
.md .button.color-pink.tab-link-active {
background-color: #e91e63;
color: #fff;
}
.md .button.color-pink.button-fill.active-state,
.md .button.color-pink.button-fill-md.active-state,
.md .button.color-pink.button-active.active-state,
.md .button.color-pink.tab-link-active.active-state {
background: #ca1452;
}
.md .button.color-pink.button-outline {
border-color: #e91e63;
}
.md .button.color-yellow {
color: #ffeb3b;
}
.md .button.color-yellow.button-fill,
.md .button.color-yellow.button-fill-md,
.md .button.color-yellow.button-active,
.md .button.color-yellow.tab-link-active {
background-color: #ffeb3b;
color: #fff;
}
.md .button.color-yellow.button-fill.active-state,
.md .button.color-yellow.button-fill-md.active-state,
.md .button.color-yellow.button-active.active-state,
.md .button.color-yellow.tab-link-active.active-state {
background: #ffe712;
}
.md .button.color-yellow.button-outline {
border-color: #ffeb3b;
}
.md .button.color-orange {
color: #ff9800;
}
.md .button.color-orange.button-fill,
.md .button.color-orange.button-fill-md,
.md .button.color-orange.button-active,
.md .button.color-orange.tab-link-active {
background-color: #ff9800;
color: #fff;
}
.md .button.color-orange.button-fill.active-state,
.md .button.color-orange.button-fill-md.active-state,
.md .button.color-orange.button-active.active-state,
.md .button.color-orange.tab-link-active.active-state {
background: #d68000;
}
.md .button.color-orange.button-outline {
border-color: #ff9800;
}
.md .button.color-gray {
color: #9e9e9e;
}
.md .button.color-gray.button-fill,
.md .button.color-gray.button-fill-md,
.md .button.color-gray.button-active,
.md .button.color-gray.tab-link-active {
background-color: #9e9e9e;
color: #fff;
}
.md .button.color-gray.button-fill.active-state,
.md .button.color-gray.button-fill-md.active-state,
.md .button.color-gray.button-active.active-state,
.md .button.color-gray.tab-link-active.active-state {
background: #8a8a8a;
}
.md .button.color-gray.button-outline {
border-color: #9e9e9e;
}
.md .button.color-white {
color: #ffffff;
}
.md .button.color-white.button-fill,
.md .button.color-white.button-fill-md,
.md .button.color-white.button-active,
.md .button.color-white.tab-link-active {
background-color: #ffffff;
color: #fff;
}
.md .button.color-white.button-fill.active-state,
.md .button.color-white.button-fill-md.active-state,
.md .button.color-white.button-active.active-state,
.md .button.color-white.tab-link-active.active-state {
background: #ebebeb;
}
.md .button.color-white.button-outline {
border-color: #ffffff;
}
.md .button.color-black {
color: #000000;
}
.md .button.color-black.button-fill,
.md .button.color-black.button-fill-md,
.md .button.color-black.button-active,
.md .button.color-black.tab-link-active {
background-color: #000000;
color: #fff;
}
.md .button.color-black.button-fill.active-state,
.md .button.color-black.button-fill-md.active-state,
.md .button.color-black.button-active.active-state,
.md .button.color-black.tab-link-active.active-state {
background: #000000;
}
.md .button.color-black.button-outline {
border-color: #000000;
}
/* === Touch Ripple === */
.md .ripple,
.md .fab a,
.md a.link,
.md a.item-link,
.md .button,
.md .dialog-button,
.md .tab-link,
.md .radio,
.md .checkbox,
.md .actions-button,
.md .speed-dial-buttons a {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.md .ripple-wave {
left: 0;
top: 0;
position: absolute !important;
border-radius: 50%;
pointer-events: none;
z-index: -1;
background: rgba(0, 0, 0, 0.1);
padding: 0;
margin: 0;
font-size: 0;
-webkit-transform: translate3d(0px, 0px, 0) scale(0);
transform: translate3d(0px, 0px, 0) scale(0);
-webkit-transition-duration: 1400ms;
transition-duration: 1400ms;
}
.md .ripple-wave.ripple-wave-fill {
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
opacity: 0.35;
}
.md .ripple-wave.ripple-wave-out {
-webkit-transition-duration: 600ms;
transition-duration: 600ms;
opacity: 0;
}
.button-fill .md .ripple-wave,
.picker-calendar-day .md .ripple-wave {
z-index: 1;
}
.md .button-fill .ripple-wave,
.md .button-active .ripple-wave,
.md .navbar .ripple-wave,
.md .toolbar .ripple-wave,
.md .subnavbar .ripple-wave,
.md .toast .ripple-wave,
.md .fab a .ripple-wave,
.md .stepper-fill .ripple-wave {
background: rgba(255, 255, 255, 0.3);
}
.md .messagebar .ripple-wave,
.md .searchbar .ripple-wave {
background: rgba(0, 0, 0, 0.1);
}
.md .data-table .sortable-cell .ripple-wave {
z-index: 0;
}
.md .checkbox .ripple-wave,
.md .radio .ripple-wave {
background: rgba(33, 150, 243, 0.5);
z-index: 0;
}
.md .theme-dark .page-content .ripple-wave,
.md .theme-dark .messagebar .ripple-wave,
.md .theme-dark .popover .ripple-wave,
.md .theme-dark .calendar .ripple-wave,
.calendar.md .theme-dark .ripple-wave {
background-color: rgba(255, 255, 255, 0.3);
}
.md .ripple-color-red .ripple-wave,
.md .ripple-red .ripple-wave {
background-color: rgba(244, 67, 54, 0.3);
}
.md .ripple-color-green .ripple-wave,
.md .ripple-green .ripple-wave {
background-color: rgba(76, 175, 80, 0.3);
}
.md .ripple-color-blue .ripple-wave,
.md .ripple-blue .ripple-wave {
background-color: rgba(33, 150, 243, 0.3);
}
.md .ripple-color-pink .ripple-wave,
.md .ripple-pink .ripple-wave {
background-color: rgba(233, 30, 99, 0.3);
}
.md .ripple-color-yellow .ripple-wave,
.md .ripple-yellow .ripple-wave {
background-color: rgba(255, 235, 59, 0.3);
}
.md .ripple-color-orange .ripple-wave,
.md .ripple-orange .ripple-wave {
background-color: rgba(255, 152, 0, 0.3);
}
.md .ripple-color-gray .ripple-wave,
.md .ripple-gray .ripple-wave {
background-color: rgba(158, 158, 158, 0.3);
}
.md .ripple-color-white .ripple-wave,
.md .ripple-white .ripple-wave {
background-color: rgba(255, 255, 255, 0.3);
}
.md .ripple-color-black .ripple-wave,
.md .ripple-black .ripple-wave {
background-color: rgba(0, 0, 0, 0.3);
}
/* === Icon === */
i.icon {
display: inline-block;
vertical-align: middle;
background-size: 100% auto;
background-position: center;
background-repeat: no-repeat;
font-style: normal;
position: relative;
}
.md .icon-back {
width: 24px;
height: 24px;
}
.md .icon-forward {
width: 24px;
height: 24px;
}
.md .icon-next,
.md .icon-prev {
width: 24px;
height: 24px;
}
.md .item-media .icon {
color: #737373;
}
.md .item-media .material-icons {
font-size: 24px;
width: 24px;
height: 24px;
}
.md .icon-back {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M20%2011H7.83l5.59-5.59L12%204l-8%208%208%208%201.41-1.41L7.83%2013H20v-2z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-forward {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M12%204l-1.41%201.41L16.17%2011H4v2h12.17l-5.58%205.59L12%2020l8-8z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-next {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'%23ffffff'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M10%206L8.59%207.41%2013.17%2012l-4.58%204.59L10%2018l6-6z'%2F%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-prev {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'%23ffffff'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M15.41%207.41L14%206l-6%206%206%206%201.41-1.41L10.83%2012z'%2F%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-back.color-red,
.md a.link .color-red .icon-back {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M20%2011H7.83l5.59-5.59L12%204l-8%208%208%208%201.41-1.41L7.83%2013H20v-2z'%20fill%3D'%23f44336'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-forward.color-red,
.md a.link .color-red .icon-forward {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M12%204l-1.41%201.41L16.17%2011H4v2h12.17l-5.58%205.59L12%2020l8-8z'%20fill%3D'%23f44336'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-next.color-red,
.md a.link .color-red .icon-next {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'%23f44336'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M10%206L8.59%207.41%2013.17%2012l-4.58%204.59L10%2018l6-6z'%2F%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-prev.color-red,
.md a.link .color-red .icon-prev {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'%23f44336'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M15.41%207.41L14%206l-6%206%206%206%201.41-1.41L10.83%2012z'%2F%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-back.color-green,
.md a.link .color-green .icon-back {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M20%2011H7.83l5.59-5.59L12%204l-8%208%208%208%201.41-1.41L7.83%2013H20v-2z'%20fill%3D'%234caf50'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-forward.color-green,
.md a.link .color-green .icon-forward {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M12%204l-1.41%201.41L16.17%2011H4v2h12.17l-5.58%205.59L12%2020l8-8z'%20fill%3D'%234caf50'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-next.color-green,
.md a.link .color-green .icon-next {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'%234caf50'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M10%206L8.59%207.41%2013.17%2012l-4.58%204.59L10%2018l6-6z'%2F%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-prev.color-green,
.md a.link .color-green .icon-prev {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'%234caf50'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M15.41%207.41L14%206l-6%206%206%206%201.41-1.41L10.83%2012z'%2F%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-back.color-blue,
.md a.link .color-blue .icon-back {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M20%2011H7.83l5.59-5.59L12%204l-8%208%208%208%201.41-1.41L7.83%2013H20v-2z'%20fill%3D'%232196f3'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-forward.color-blue,
.md a.link .color-blue .icon-forward {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M12%204l-1.41%201.41L16.17%2011H4v2h12.17l-5.58%205.59L12%2020l8-8z'%20fill%3D'%232196f3'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-next.color-blue,
.md a.link .color-blue .icon-next {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'%232196f3'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M10%206L8.59%207.41%2013.17%2012l-4.58%204.59L10%2018l6-6z'%2F%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-prev.color-blue,
.md a.link .color-blue .icon-prev {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'%232196f3'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M15.41%207.41L14%206l-6%206%206%206%201.41-1.41L10.83%2012z'%2F%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-back.color-pink,
.md a.link .color-pink .icon-back {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M20%2011H7.83l5.59-5.59L12%204l-8%208%208%208%201.41-1.41L7.83%2013H20v-2z'%20fill%3D'%23e91e63'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-forward.color-pink,
.md a.link .color-pink .icon-forward {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M12%204l-1.41%201.41L16.17%2011H4v2h12.17l-5.58%205.59L12%2020l8-8z'%20fill%3D'%23e91e63'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-next.color-pink,
.md a.link .color-pink .icon-next {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'%23e91e63'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M10%206L8.59%207.41%2013.17%2012l-4.58%204.59L10%2018l6-6z'%2F%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-prev.color-pink,
.md a.link .color-pink .icon-prev {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'%23e91e63'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M15.41%207.41L14%206l-6%206%206%206%201.41-1.41L10.83%2012z'%2F%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-back.color-yellow,
.md a.link .color-yellow .icon-back {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M20%2011H7.83l5.59-5.59L12%204l-8%208%208%208%201.41-1.41L7.83%2013H20v-2z'%20fill%3D'%23ffeb3b'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-forward.color-yellow,
.md a.link .color-yellow .icon-forward {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M12%204l-1.41%201.41L16.17%2011H4v2h12.17l-5.58%205.59L12%2020l8-8z'%20fill%3D'%23ffeb3b'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-next.color-yellow,
.md a.link .color-yellow .icon-next {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'%23ffeb3b'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M10%206L8.59%207.41%2013.17%2012l-4.58%204.59L10%2018l6-6z'%2F%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-prev.color-yellow,
.md a.link .color-yellow .icon-prev {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'%23ffeb3b'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M15.41%207.41L14%206l-6%206%206%206%201.41-1.41L10.83%2012z'%2F%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-back.color-orange,
.md a.link .color-orange .icon-back {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M20%2011H7.83l5.59-5.59L12%204l-8%208%208%208%201.41-1.41L7.83%2013H20v-2z'%20fill%3D'%23ff9800'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-forward.color-orange,
.md a.link .color-orange .icon-forward {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M12%204l-1.41%201.41L16.17%2011H4v2h12.17l-5.58%205.59L12%2020l8-8z'%20fill%3D'%23ff9800'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-next.color-orange,
.md a.link .color-orange .icon-next {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'%23ff9800'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M10%206L8.59%207.41%2013.17%2012l-4.58%204.59L10%2018l6-6z'%2F%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-prev.color-orange,
.md a.link .color-orange .icon-prev {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'%23ff9800'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M15.41%207.41L14%206l-6%206%206%206%201.41-1.41L10.83%2012z'%2F%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-back.color-gray,
.md a.link .color-gray .icon-back {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M20%2011H7.83l5.59-5.59L12%204l-8%208%208%208%201.41-1.41L7.83%2013H20v-2z'%20fill%3D'%239e9e9e'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-forward.color-gray,
.md a.link .color-gray .icon-forward {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M12%204l-1.41%201.41L16.17%2011H4v2h12.17l-5.58%205.59L12%2020l8-8z'%20fill%3D'%239e9e9e'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-next.color-gray,
.md a.link .color-gray .icon-next {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'%239e9e9e'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M10%206L8.59%207.41%2013.17%2012l-4.58%204.59L10%2018l6-6z'%2F%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-prev.color-gray,
.md a.link .color-gray .icon-prev {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'%239e9e9e'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M15.41%207.41L14%206l-6%206%206%206%201.41-1.41L10.83%2012z'%2F%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-back.color-white,
.md a.link .color-white .icon-back {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M20%2011H7.83l5.59-5.59L12%204l-8%208%208%208%201.41-1.41L7.83%2013H20v-2z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-forward.color-white,
.md a.link .color-white .icon-forward {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M12%204l-1.41%201.41L16.17%2011H4v2h12.17l-5.58%205.59L12%2020l8-8z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-next.color-white,
.md a.link .color-white .icon-next {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'%23ffffff'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M10%206L8.59%207.41%2013.17%2012l-4.58%204.59L10%2018l6-6z'%2F%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-prev.color-white,
.md a.link .color-white .icon-prev {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'%23ffffff'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M15.41%207.41L14%206l-6%206%206%206%201.41-1.41L10.83%2012z'%2F%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-back.color-black,
.md a.link .color-black .icon-back {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M20%2011H7.83l5.59-5.59L12%204l-8%208%208%208%201.41-1.41L7.83%2013H20v-2z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-forward.color-black,
.md a.link .color-black .icon-forward {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M12%204l-1.41%201.41L16.17%2011H4v2h12.17l-5.58%205.59L12%2020l8-8z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-next.color-black,
.md a.link .color-black .icon-next {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'%23000000'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M10%206L8.59%207.41%2013.17%2012l-4.58%204.59L10%2018l6-6z'%2F%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.md .icon-prev.color-black,
.md a.link .color-black .icon-prev {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'%23000000'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M15.41%207.41L14%206l-6%206%206%206%201.41-1.41L10.83%2012z'%2F%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.md .icon.color-red {
color: #f44336;
}
.md .icon.color-green {
color: #4caf50;
}
.md .icon.color-blue {
color: #2196f3;
}
.md .icon.color-pink {
color: #e91e63;
}
.md .icon.color-yellow {
color: #ffeb3b;
}
.md .icon.color-orange {
color: #ff9800;
}
.md .icon.color-gray {
color: #9e9e9e;
}
.md .icon.color-white {
color: #ffffff;
}
.md .icon.color-black {
color: #000000;
}
.custom-modal-backdrop {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
z-index: 13000;
visibility: hidden;
opacity: 0;
-webkit-transition-duration: 400ms;
transition-duration: 400ms;
z-index: 10500;
}
.custom-modal-backdrop.not-animated {
-webkit-transition-duration: 0ms;
transition-duration: 0ms;
}
.custom-modal-backdrop.backdrop-in {
visibility: visible;
opacity: 1;
}
/* === Dialog === */
.dialog-backdrop {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
z-index: 13000;
visibility: hidden;
opacity: 0;
-webkit-transition-duration: 400ms;
transition-duration: 400ms;
}
.dialog-backdrop.not-animated {
-webkit-transition-duration: 0ms;
transition-duration: 0ms;
}
.dialog-backdrop.backdrop-in {
visibility: visible;
opacity: 1;
}
.dialog {
position: absolute;
z-index: 13500;
left: 50%;
margin-top: 0;
top: 50%;
overflow: hidden;
opacity: 0;
-webkit-transform: translate3d(0, 0, 0) scale(1.185);
transform: translate3d(0, 0, 0) scale(1.185);
-webkit-transition-property: opacity, -webkit-transform;
transition-property: opacity, -webkit-transform;
transition-property: transform, opacity;
transition-property: transform, opacity, -webkit-transform;
display: none;
-webkit-transition-duration: 400ms;
transition-duration: 400ms;
}
.dialog.modal-in {
opacity: 1;
-webkit-transform: translate3d(0, 0, 0) scale(1);
transform: translate3d(0, 0, 0) scale(1);
}
.dialog.modal-out {
opacity: 0;
z-index: 13499;
}
.dialog.not-animated {
-webkit-transition-duration: 0ms;
transition-duration: 0ms;
}
.dialog-inner {
position: relative;
}
.dialog-title {
font-weight: 500;
}
.dialog-buttons {
position: relative;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
.dialog-buttons-vertical .dialog-buttons {
display: block;
height: auto !important;
}
.dialog-no-buttons .dialog-buttons {
display: none;
}
.dialog-input-field {
position: relative;
}
.dialog-input-field .item-input-wrap {
margin: 0;
padding: 0;
}
.dialog-input {
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
margin-top: 15px;
border-radius: 0;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
width: 100%;
display: block;
font-family: inherit;
-webkit-box-shadow: none;
box-shadow: none;
}
html.with-modal-dialog .page-content {
overflow: hidden;
-webkit-overflow-scrolling: auto;
}
.md .dialog {
width: 280px;
margin-left: -140px;
border-radius: 4px;
color: #757575;
background: #fff;
font-size: 16px;
-webkit-box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);
box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);
}
.md .dialog.modal-in {
opacity: 1;
-webkit-transform: translate3d(0, 0, 0) scale(1);
transform: translate3d(0, 0, 0) scale(1);
}
.md .dialog.modal-out {
opacity: 0;
z-index: 13499;
-webkit-transform: translate3d(0, 0, 0) scale(0.815);
transform: translate3d(0, 0, 0) scale(0.815);
}
.md .dialog-inner {
padding: 24px 24px 20px;
}
.md .dialog-title {
font-size: 20px;
color: #212121;
line-height: 1.3;
}
.md .dialog-title + .dialog-text {
margin-top: 20px;
}
.md .dialog-text {
line-height: 1.5;
}
.md .dialog-buttons {
height: 48px;
padding: 6px 8px;
overflow: hidden;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-box-pack: end;
-webkit-justify-content: flex-end;
-ms-flex-pack: end;
justify-content: flex-end;
}
.md .dialog-buttons-vertical .dialog-buttons {
padding: 0 0 8px 0;
}
.md .dialog-buttons-vertical .dialog-buttons .dialog-button {
margin-left: 0;
text-align: right;
height: 48px;
line-height: 48px;
border-radius: 0;
padding-left: 16px;
padding-right: 16px;
}
.md .dialog-button {
text-decoration: none;
text-align: center;
display: block;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background: none;
padding: 0 10px;
margin: 0;
white-space: nowrap;
text-overflow: ellipsis;
font-size: 14px;
position: relative;
overflow: hidden;
font-family: inherit;
cursor: pointer;
outline: 0;
-webkit-box-sizing: border-box;
box-sizing: border-box;
vertical-align: middle;
color: #2196f3;
border-radius: 4px;
line-height: 36px;
height: 36px;
text-transform: uppercase;
min-width: 64px;
padding: 0 8px;
border: none;
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
letter-spacing: 0.03em;
font-weight: 500;
}
input[type="submit"].md .dialog-button,
input[type="button"].md .dialog-button {
width: 100%;
}
.md .dialog-button.active-state {
background: rgba(0, 0, 0, 0.1);
}
.md .dialog-button.dialog-button-bold {
font-weight: 700;
}
.md .dialog-button + .dialog-button {
margin-left: 4px;
}
.md .dialog-input {
height: 36px;
padding: 0;
border: none;
font-size: 16px;
-webkit-transition-duration: 200ms;
transition-duration: 200ms;
position: relative;
}
.md .dialog-input::-webkit-input-placeholder {
color: rgba(0, 0, 0, 0.35);
}
.md .dialog-input:-ms-input-placeholder {
color: rgba(0, 0, 0, 0.35);
}
.md .dialog-input::-ms-input-placeholder {
color: rgba(0, 0, 0, 0.35);
}
.md .dialog-input::placeholder {
color: rgba(0, 0, 0, 0.35);
}
.md .dialog-input + .dialog-input {
margin-top: 16px;
}
.md .dialog-preloader .dialog-title,
.md .dialog-progress .dialog-title,
.md .dialog-preloader .dialog-inner,
.md .dialog-progress .dialog-inner {
text-align: center;
}
.md .dialog-preloader .dialog-title ~ .preloader,
.md .dialog-preloader .dialog-text ~ .preloader {
margin-top: 20px;
}
.md .dialog-progress .dialog-title ~ .progressbar,
.md .dialog-progress .dialog-text ~ .progressbar,
.md .dialog-progress .dialog-title ~ .progressbar-infinite,
.md .dialog-progress .dialog-text ~ .progressbar-infinite {
margin-top: 16px;
}
.md .dialog-button.color-red {
color: #f44336;
}
.md .dialog-button.color-green {
color: #4caf50;
}
.md .dialog-button.color-blue {
color: #2196f3;
}
.md .dialog-button.color-pink {
color: #e91e63;
}
.md .dialog-button.color-yellow {
color: #ffeb3b;
}
.md .dialog-button.color-orange {
color: #ff9800;
}
.md .dialog-button.color-gray {
color: #9e9e9e;
}
.md .dialog-button.color-white {
color: #ffffff;
}
.md .dialog-button.color-black {
color: #000000;
}
/* === Popup === */
.popup-backdrop {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
z-index: 13000;
visibility: hidden;
opacity: 0;
-webkit-transition-duration: 400ms;
transition-duration: 400ms;
z-index: 10500;
}
.popup-backdrop.not-animated {
-webkit-transition-duration: 0ms;
transition-duration: 0ms;
}
.popup-backdrop.backdrop-in {
visibility: visible;
opacity: 1;
}
.popup {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
display: none;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-transition-property: -webkit-transform;
transition-property: -webkit-transform;
transition-property: transform;
transition-property: transform, -webkit-transform;
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
background: #fff;
z-index: 11000;
}
.popup.modal-in,
.popup.modal-out {
-webkit-transition-duration: 400ms;
transition-duration: 400ms;
}
.popup.not-animated {
-webkit-transition-duration: 0ms;
transition-duration: 0ms;
}
.popup.modal-in {
display: block;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.popup.modal-out {
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
}
@media (min-width: 630px) and (min-height: 630px) {
.popup:not(.popup-tablet-fullscreen) {
width: 630px;
height: 630px;
left: 50%;
top: 50%;
margin-left: -315px;
margin-top: -315px;
-webkit-transform: translate3d(0, 100vh, 0);
transform: translate3d(0, 100vh, 0);
}
.popup:not(.popup-tablet-fullscreen).modal-in {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.popup:not(.popup-tablet-fullscreen).modal-out {
-webkit-transform: translate3d(0, 100vh, 0);
transform: translate3d(0, 100vh, 0);
}
}
@media (max-width: 629px), (max-height: 629px) {
html.with-statusbar .popup-backdrop {
z-index: 9500;
}
html.with-statusbar.device-ios .popup,
html.with-statusbar.ios:not(.device-ios):not(.device-android) .popup {
height: calc(100% - 20px);
top: 20px;
}
html.with-statusbar.device-iphone-x .popup {
height: calc(100% - constant(safe-area-inset-top));
height: calc(100% - env(safe-area-inset-top));
top: constant(safe-area-inset-top);
top: env(safe-area-inset-top);
}
html.with-statusbar.device-android .popup,
html.with-statusbar.md:not(.device-ios):not(.device-android) .popup {
height: calc(100% - 24px);
top: 24px;
}
}
@media (min-width: 630px), (min-height: 630px) {
html.with-statusbar.device-ios .popup-tablet-fullscreen,
html.with-statusbar.ios:not(.device-ios):not(.device-android) .popup-tablet-fullscreen {
height: calc(100% - 20px);
top: 20px;
}
html.with-statusbar.device-iphone-x .popup-tablet-fullscreen {
height: calc(100% - constant(safe-area-inset-top));
height: calc(100% - env(safe-area-inset-top));
top: constant(safe-area-inset-top);
top: env(safe-area-inset-top);
}
html.with-statusbar.device-android .popup-tablet-fullscreen,
html.with-statusbar.md:not(.device-ios):not(.device-android) .popup-tablet-fullscreen {
height: calc(100% - 24px);
top: 24px;
}
}
html.with-modal-popup .framework7-root > .views .page-content,
html.with-modal-popup .framework7-root > .view .page-content,
html.with-modal-popup .framework7-root > .panel .page-content {
overflow: hidden;
-webkit-overflow-scrolling: auto;
}
@media (min-width: 630px) and (min-height: 630px) {
.md .popup:not(.popup-tablet-fullscreen) {
-webkit-box-shadow: 0px 20px 44px rgba(0, 0, 0, 0.5);
box-shadow: 0px 20px 44px rgba(0, 0, 0, 0.5);
}
}
/* === Login Screen === */
.login-screen {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
display: none;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-transition-property: -webkit-transform;
transition-property: -webkit-transform;
transition-property: transform;
transition-property: transform, -webkit-transform;
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
background: #fff;
z-index: 11000;
}
.login-screen.modal-in,
.login-screen.modal-out {
-webkit-transition-duration: 400ms;
transition-duration: 400ms;
}
.login-screen.not-animated {
-webkit-transition-duration: 0ms;
transition-duration: 0ms;
}
.login-screen.modal-in {
display: block;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.login-screen.modal-out {
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
}
html.with-statusbar.device-ios .login-screen,
html.with-statusbar.ios:not(.device-ios):not(.device-android) .login-screen {
height: calc(100% - 20px);
top: 20px;
}
html.with-statusbar.device-iphone-x .login-screen {
height: calc(100% - constant(safe-area-inset-top));
height: calc(100% - env(safe-area-inset-top));
top: constant(safe-area-inset-top);
top: env(safe-area-inset-top);
}
html.with-statusbar.device-android .login-screen,
html.with-statusbar.md:not(.device-ios):not(.device-android) .login-screen {
height: calc(100% - 24px);
top: 24px;
}
.login-screen-content {
background: #fff;
}
.login-screen-content .login-screen-title,
.login-screen-content .list,
.login-screen-content .block,
.login-screen-content .block-footer,
.login-screen-content .block-header {
max-width: 480px;
}
.login-screen-content .list ul {
background: none;
}
.login-screen-content .list ul:before {
display: none !important;
}
.login-screen-content .list ul:after {
display: none !important;
}
.login-screen-content .block-footer,
.login-screen-content .block-header {
text-align: center;
margin-left: auto;
margin-right: auto;
}
.login-screen-title {
text-align: center;
}
.md .login-screen-content .login-screen-title,
.md .login-screen-content .list,
.md .login-screen-content .block {
margin: 24px auto;
}
.md .login-screen-content .list-button {
text-align: center;
color: #2196f3;
}
.md .login-screen-title {
font-size: 34px;
}
.md .theme-dark .login-screen-content,
.login-screen-content.md .theme-dark {
background: none;
}
.md .color-theme-red .login-screen-content .list-button {
color: #f44336;
}
.md .color-theme-green .login-screen-content .list-button {
color: #4caf50;
}
.md .color-theme-blue .login-screen-content .list-button {
color: #2196f3;
}
.md .color-theme-pink .login-screen-content .list-button {
color: #e91e63;
}
.md .color-theme-yellow .login-screen-content .list-button {
color: #ffeb3b;
}
.md .color-theme-orange .login-screen-content .list-button {
color: #ff9800;
}
.md .color-theme-gray .login-screen-content .list-button {
color: #9e9e9e;
}
.md .color-theme-white .login-screen-content .list-button {
color: #ffffff;
}
.md .color-theme-black .login-screen-content .list-button {
color: #000000;
}
.md .login-screen-content .list-button.color-red {
color: #f44336;
}
.md .login-screen-content .list-button.color-green {
color: #4caf50;
}
.md .login-screen-content .list-button.color-blue {
color: #2196f3;
}
.md .login-screen-content .list-button.color-pink {
color: #e91e63;
}
.md .login-screen-content .list-button.color-yellow {
color: #ffeb3b;
}
.md .login-screen-content .list-button.color-orange {
color: #ff9800;
}
.md .login-screen-content .list-button.color-gray {
color: #9e9e9e;
}
.md .login-screen-content .list-button.color-white {
color: #ffffff;
}
.md .login-screen-content .list-button.color-black {
color: #000000;
}
/* === Popover === */
.popover-backdrop {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
z-index: 13000;
visibility: hidden;
opacity: 0;
-webkit-transition-duration: 400ms;
transition-duration: 400ms;
}
.popover-backdrop.not-animated {
-webkit-transition-duration: 0ms;
transition-duration: 0ms;
}
.popover-backdrop.backdrop-in {
visibility: visible;
opacity: 1;
}
.popover {
width: 260px;
z-index: 13500;
margin: 0;
top: 0;
opacity: 0;
left: 0;
position: absolute;
display: none;
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
}
.popover .list {
margin: 0;
}
.popover .list ul {
background: none;
}
.popover .list:first-child ul:before {
display: none !important;
}
.popover .list:last-child ul:after {
display: none !important;
}
.popover.modal-in {
opacity: 1;
}
.popover.not-animated {
-webkit-transition-duration: 0ms;
transition-duration: 0ms;
}
.popover-inner {
overflow: auto;
-webkit-overflow-scrolling: touch;
}
.popover-from-actions-bold {
font-weight: 600;
}
.popover-from-actions-label {
line-height: 1.3;
position: relative;
}
.popover-from-actions-label:last-child:after {
display: none !important;
}
.md .popover {
background: #fff;
border-radius: 4px;
-webkit-box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
-webkit-transform: scale(0.85, 0.6);
transform: scale(0.85, 0.6);
-webkit-transition-property: opacity, border-radius, -webkit-transform;
transition-property: opacity, border-radius, -webkit-transform;
transition-property: opacity, transform, border-radius;
transition-property: opacity, transform, border-radius, -webkit-transform;
}
.md .popover.modal-in {
opacity: 1;
-webkit-transform: scale(1);
transform: scale(1);
}
.md .popover.modal-out {
opacity: 0;
-webkit-transform: scale(1);
transform: scale(1);
}
.md .popover .list:first-child ul {
border-radius: 3px 3px 0 0;
}
.md .popover .list:first-child li:first-child,
.md .popover .list:first-child li:first-child a,
.md .popover .list:first-child li:first-child > label {
border-radius: 3px 3px 0 0;
}
.md .popover .list:last-child ul {
border-radius: 0 0 3px 3px;
}
.md .popover .list:last-child li:last-child,
.md .popover .list:last-child li:last-child a,
.md .popover .list:last-child li:last-child > label {
border-radius: 0 0 3px 3px;
}
.md .popover .list:first-child:last-child li:first-child:last-child,
.md .popover .list:first-child:last-child li:first-child:last-child a,
.md .popover .list:first-child:last-child li:first-child:last-child > label,
.md .popover .list:first-child:last-child ul {
border-radius: 13px;
}
.md .popover .list + .list {
margin-top: 35px;
}
.md .popover-on-top {
-webkit-transform-origin: center bottom;
transform-origin: center bottom;
}
.md .popover-on-bottom {
-webkit-transform-origin: center top;
transform-origin: center top;
}
.md .popover-from-actions .list {
margin: 0;
}
.md .popover-from-actions .item-link i.icon {
width: 24px;
height: 24px;
font-size: 24px;
}
.md .popover-from-actions-label {
padding: 8px 16px;
color: rgba(0, 0, 0, 0.54);
padding-top: 12px;
padding-bottom: 12px;
}
.md .popover-from-actions-label:after {
content: '';
position: absolute;
background-color: #d2d2d6;
display: block;
z-index: 15;
top: auto;
right: auto;
bottom: 0;
left: 0;
height: 1px;
width: 100%;
-webkit-transform-origin: 50% 100%;
transform-origin: 50% 100%;
}
.md.device-pixel-ratio-2 .popover-from-actions-label:after {
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.md.device-pixel-ratio-3 .popover-from-actions-label:after {
-webkit-transform: scaleY(0.33);
transform: scaleY(0.33);
}
.md .theme-dark .popover {
background-color: #202020;
}
.md .theme-dark .popover-from-actions-label {
color: rgba(255, 255, 255, 0.54);
}
.md .theme-dark .popover-from-actions-label:after {
background-color: rgba(255, 255, 255, 0.08);
}
/* === Actions === */
.actions-backdrop {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
z-index: 13000;
visibility: hidden;
opacity: 0;
-webkit-transition-duration: 400ms;
transition-duration: 400ms;
}
.actions-backdrop.not-animated {
-webkit-transition-duration: 0ms;
transition-duration: 0ms;
}
.actions-backdrop.backdrop-in {
visibility: visible;
opacity: 1;
}
.actions-modal {
position: absolute;
left: 0;
bottom: 0;
z-index: 13500;
width: 100%;
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
display: none;
max-height: 100%;
overflow: auto;
-webkit-overflow-scrolling: touch;
-webkit-transition-property: -webkit-transform;
transition-property: -webkit-transform;
transition-property: transform;
transition-property: transform, -webkit-transform;
}
.actions-modal.modal-in,
.actions-modal.modal-out {
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
}
.actions-modal.not-animated {
-webkit-transition-duration: 0ms;
transition-duration: 0ms;
}
.actions-modal.modal-in {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.actions-modal.modal-out {
z-index: 13499;
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
}
@media (min-width: 496px) {
.actions-modal {
width: 480px;
left: 50%;
margin-left: -240px;
}
}
.actions-group {
position: relative;
}
.actions-button,
.actions-label {
width: 100%;
font-weight: normal;
margin: 0;
-webkit-box-sizing: border-box;
box-sizing: border-box;
display: block;
position: relative;
}
.actions-button a,
.actions-label a {
text-decoration: none;
color: inherit;
display: block;
}
.actions-button b,
.actions-label b,
.actions-button.actions-button-bold,
.actions-label.actions-button-bold {
font-weight: 500;
}
.actions-button {
cursor: pointer;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
.actions-button-media {
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.actions-button-text {
width: 100%;
-webkit-flex-shrink: 1;
-ms-flex-negative: 1;
flex-shrink: 1;
}
.actions-label {
line-height: 1.3;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.actions-grid .actions-group {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
}
.actions-grid .actions-button {
width: 33.33333333%;
display: block;
}
.actions-grid .actions-button-media {
margin-left: auto;
margin-right: auto;
}
.actions-grid .actions-button-text {
margin-left: 0 !important;
text-align: center;
}
.md .actions-modal {
background: #fff;
}
.md .actions-group:last-child:after {
display: none !important;
}
.md .actions-group:after {
content: '';
position: absolute;
background-color: #d2d2d6;
display: block;
z-index: 15;
top: auto;
right: auto;
bottom: 0;
left: 0;
height: 1px;
width: 100%;
-webkit-transform-origin: 50% 100%;
transform-origin: 50% 100%;
}
.md.device-pixel-ratio-2 .actions-group:after {
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.md.device-pixel-ratio-3 .actions-group:after {
-webkit-transform: scaleY(0.33);
transform: scaleY(0.33);
}
.md .actions-button,
.md .actions-label {
padding: 0 16px;
}
.md .actions-button {
line-height: 48px;
font-size: 16px;
color: rgba(0, 0, 0, 0.87);
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
}
.md .actions-button a,
.md .actions-button {
position: relative;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.md .actions-button a.active-state,
.md .actions-button.active-state {
background: rgba(0, 0, 0, 0.1);
}
.md .actions-button-media {
min-width: 40px;
}
.md .actions-button-media i.icon {
width: 24px;
height: 24px;
font-size: 24px;
}
.md .actions-button-media + .actions-button-text {
margin-left: 16px;
}
.md .actions-label {
font-size: 16px;
color: rgba(0, 0, 0, 0.54);
padding-top: 12px;
padding-bottom: 12px;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
}
.md .actions-grid {
padding: 0;
}
.md .actions-grid .actions-button-media {
width: 48px;
height: 48px;
}
.md .actions-grid .actions-button-media i.icon {
width: 48px;
height: 48px;
font-size: 48px;
}
.md .actions-grid .actions-button {
padding: 16px;
line-height: 1;
}
.md .actions-grid .actions-button-text {
margin-top: 8px;
line-height: 16px;
height: 16px;
font-size: 12px;
color: #757575;
}
.md .actions-button.color-red,
.md .actions-label.color-red,
.md .actions-button.color-red .actions-button-text {
color: #f44336;
}
.md .actions-button.color-green,
.md .actions-label.color-green,
.md .actions-button.color-green .actions-button-text {
color: #4caf50;
}
.md .actions-button.color-blue,
.md .actions-label.color-blue,
.md .actions-button.color-blue .actions-button-text {
color: #2196f3;
}
.md .actions-button.color-pink,
.md .actions-label.color-pink,
.md .actions-button.color-pink .actions-button-text {
color: #e91e63;
}
.md .actions-button.color-yellow,
.md .actions-label.color-yellow,
.md .actions-button.color-yellow .actions-button-text {
color: #ffeb3b;
}
.md .actions-button.color-orange,
.md .actions-label.color-orange,
.md .actions-button.color-orange .actions-button-text {
color: #ff9800;
}
.md .actions-button.color-gray,
.md .actions-label.color-gray,
.md .actions-button.color-gray .actions-button-text {
color: #9e9e9e;
}
.md .actions-button.color-white,
.md .actions-label.color-white,
.md .actions-button.color-white .actions-button-text {
color: #ffffff;
}
.md .actions-button.color-black,
.md .actions-label.color-black,
.md .actions-button.color-black .actions-button-text {
color: #000000;
}
.md.device-iphone-x .actions-modal.modal-in {
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
}
/* === Sheet Modal === */
.sheet-backdrop {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
z-index: 13000;
visibility: hidden;
opacity: 0;
-webkit-transition-duration: 400ms;
transition-duration: 400ms;
z-index: 10500;
}
.sheet-backdrop.not-animated {
-webkit-transition-duration: 0ms;
transition-duration: 0ms;
}
.sheet-backdrop.backdrop-in {
visibility: visible;
opacity: 1;
}
.sheet-modal {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 260px;
display: none;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-transition-property: -webkit-transform;
transition-property: -webkit-transform;
transition-property: transform;
transition-property: transform, -webkit-transform;
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
background: #fff;
z-index: 12500;
}
.sheet-modal.modal-in,
.sheet-modal.modal-out {
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
}
.sheet-modal.not-animated {
-webkit-transition-duration: 0ms;
transition-duration: 0ms;
}
.sheet-modal.modal-in {
display: block;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.sheet-modal.modal-out {
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
}
.sheet-modal .sheet-modal-inner {
height: 100%;
position: relative;
overflow: hidden;
}
.sheet-modal .toolbar {
position: relative;
width: 100%;
}
.md .sheet-modal {
background: #fff;
}
.md .sheet-modal .toolbar {
top: 0;
}
.md .sheet-modal .toolbar:after {
display: none;
}
.md .sheet-modal .toolbar + .sheet-modal-inner {
height: calc(100% - 48px);
}
.md .sheet-modal .toolbar a.link:not(.tab-link) {
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
}
.md .sheet-modal .toolbar:not(.toolbar-bottom-md):not(.messagebar) ~ .sheet-modal-inner .page-content {
padding-top: 0;
}
.md.device-iphone-x .sheet-modal .toolbar ~ .sheet-modal-inner .page-content,
.md.device-iphone-x .sheet-modal .sheet-modal-inner > .page-content {
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
}
.md .theme-dark .sheet-modal {
background-color: #202020;
}
/* === Toast === */
.toast {
-webkit-transition-property: opacity, -webkit-transform;
transition-property: opacity, -webkit-transform;
transition-property: transform, opacity;
transition-property: transform, opacity, -webkit-transform;
position: absolute;
max-width: 568px;
z-index: 20000;
color: #fff;
font-size: 14px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.toast.modal-in {
opacity: 1;
}
.toast .toast-content {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.toast .toast-text {
line-height: 20px;
-webkit-flex-shrink: 1;
-ms-flex-negative: 1;
flex-shrink: 1;
min-width: 0;
}
.toast .toast-button {
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
}
.toast.toast-with-icon .toast-content {
display: block;
text-align: center;
}
.toast.toast-with-icon .toast-text {
text-align: center;
}
.toast.toast-with-icon .toast-icon .f7-icons {
font-size: 50px;
width: 50px;
height: 50px;
}
.toast.toast-with-icon .toast-icon .material-icons {
font-size: 48px;
width: 48px;
height: 48px;
}
.toast.toast-center {
top: 50%;
opacity: 0;
}
@media (min-width: 1024px) {
.toast {
opacity: 0;
}
}
html.with-statusbar.device-ios .toast-top,
html.with-statusbar.ios:not(.device-ios):not(.device-android) .toast-top {
margin-top: 20px;
}
html.with-statusbar.device-iphone-x .toast-top {
margin-top: constant(safe-area-inset-top);
margin-top: env(safe-area-inset-top);
}
html.with-statusbar.device-android .toast-top,
html.with-statusbar.md:not(.device-ios):not(.device-android) .toast-top {
margin-top: 24px;
}
.md .toast {
-webkit-transition-duration: 200ms;
transition-duration: 200ms;
border-radius: 4px;
background: #323232;
opacity: 0;
left: 8px;
width: calc(100% - 16px);
-webkit-transform: scale(0.9);
transform: scale(0.9);
}
.md .toast.modal-in {
-webkit-transform: scale(1);
transform: scale(1);
opacity: 1;
}
.md .toast.modal-out {
-webkit-transform: scale(1);
transform: scale(1);
opacity: 0;
}
.md .toast.toast-center {
left: 50%;
width: auto;
background: rgba(0, 0, 0, 0.75);
-webkit-transform: scale(0.9) translate3d(-55%, -55%, 0);
transform: scale(0.9) translate3d(-55%, -55%, 0);
}
.md .toast.toast-center.modal-in {
-webkit-transform: scale(1) translate3d(-50%, -50%, 0);
transform: scale(1) translate3d(-50%, -50%, 0);
}
.md .toast.toast-center.modal-out {
-webkit-transform: scale(1) translate3d(-50%, -50%, 0);
transform: scale(1) translate3d(-50%, -50%, 0);
}
.md .toast.toast-bottom {
bottom: 8px;
}
.md .toast.toast-top {
top: 8px;
}
@media (min-width: 584px) {
.md .toast {
left: 50%;
margin-left: -284px;
}
.md .toast.toast-center {
margin-left: 0;
}
}
@media (min-width: 1024px) {
.md .toast {
margin-left: 0;
width: auto;
}
.md .toast.toast-bottom,
.md .toast.toast-top {
left: 24px;
}
.md .toast.toast-bottom {
bottom: 24px;
}
.md .toast.toast-top {
top: 24px;
}
}
.md .toast-content {
padding: 14px 24px;
}
.md .toast-button {
margin-top: -8px;
margin-bottom: -8px;
margin-left: 16px;
margin-right: -8px;
}
@media (max-width: 568px) {
.md.device-iphone-x .toast-bottom .toast-content {
padding-bottom: calc(14px + constant(safe-area-inset-bottom));
padding-bottom: calc(14px + env(safe-area-inset-bottom));
}
}
@media (min-width: 1024px) {
.md.device-iphone-x .toast-bottom.modal-in {
margin-bottom: constant(safe-area-inset-bottom);
margin-bottom: env(safe-area-inset-bottom);
}
}
/* === Preloader === */
.preloader {
display: inline-block;
vertical-align: middle;
}
/* === Preloader Modal === */
.preloader-backdrop {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
z-index: 13000;
visibility: hidden;
-webkit-transition-duration: 400ms;
transition-duration: 400ms;
visibility: visible;
opacity: 0;
background: none;
}
.preloader-backdrop.not-animated {
-webkit-transition-duration: 0ms;
transition-duration: 0ms;
}
.preloader-backdrop.backdrop-in {
visibility: visible;
opacity: 1;
}
.preloader-modal {
position: absolute;
left: 50%;
top: 50%;
padding: 8px;
background: rgba(0, 0, 0, 0.8);
z-index: 13500;
-webkit-transform: translateX(-50%) translateY(-50%);
transform: translateX(-50%) translateY(-50%);
}
.preloader-modal .preloader {
display: block !important;
}
html.with-modal-preloader .page-content {
overflow: hidden;
-webkit-overflow-scrolling: auto;
}
.md .preloader {
font-size: 0;
display: inline-block;
width: 32px;
height: 32px;
-webkit-animation: md-preloader-outer 3300ms linear infinite;
animation: md-preloader-outer 3300ms linear infinite;
}
@-webkit-keyframes md-preloader-outer {
0% {
-webkit-transform: rotate(0);
transform: rotate(0);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes md-preloader-outer {
0% {
-webkit-transform: rotate(0);
transform: rotate(0);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.md .preloader-inner {
position: relative;
display: block;
width: 100%;
height: 100%;
-webkit-animation: md-preloader-inner-rotate 5.25s cubic-bezier(0.35, 0, 0.25, 1) infinite;
animation: md-preloader-inner-rotate 5.25s cubic-bezier(0.35, 0, 0.25, 1) infinite;
}
.md .preloader-inner .preloader-inner-gap {
position: absolute;
width: 2px;
left: 50%;
margin-left: -1px;
top: 0;
bottom: 0;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border-top: 4px solid #757575;
}
.md .preloader-inner .preloader-inner-left,
.md .preloader-inner .preloader-inner-right {
position: absolute;
top: 0;
height: 100%;
width: 50%;
overflow: hidden;
}
.md .preloader-inner .preloader-inner-half-circle {
position: absolute;
top: 0;
height: 100%;
width: 200%;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border: 4px solid #757575;
border-bottom-color: transparent !important;
border-radius: 50%;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
-webkit-animation-duration: 1.3125s;
animation-duration: 1.3125s;
-webkit-animation-timing-function: cubic-bezier(0.35, 0, 0.25, 1);
animation-timing-function: cubic-bezier(0.35, 0, 0.25, 1);
}
.md .preloader-inner .preloader-inner-left {
left: 0;
}
.md .preloader-inner .preloader-inner-left .preloader-inner-half-circle {
left: 0;
border-right-color: transparent !important;
-webkit-animation-name: md-preloader-left-rotate;
animation-name: md-preloader-left-rotate;
}
.md .preloader-inner .preloader-inner-right {
right: 0;
}
.md .preloader-inner .preloader-inner-right .preloader-inner-half-circle {
right: 0;
border-left-color: transparent !important;
-webkit-animation-name: md-preloader-right-rotate;
animation-name: md-preloader-right-rotate;
}
.md .preloader-modal {
border-radius: 4px;
}
.md .preloader.color-red .preloader-inner-gap,
.md .preloader.preloader-red .preloader-inner-gap,
.md .preloader.color-red .preloader-inner-half-circle,
.md .preloader.preloader-red .preloader-inner-half-circle {
border-color: #f44336;
}
.md .preloader.color-green .preloader-inner-gap,
.md .preloader.preloader-green .preloader-inner-gap,
.md .preloader.color-green .preloader-inner-half-circle,
.md .preloader.preloader-green .preloader-inner-half-circle {
border-color: #4caf50;
}
.md .preloader.color-blue .preloader-inner-gap,
.md .preloader.preloader-blue .preloader-inner-gap,
.md .preloader.color-blue .preloader-inner-half-circle,
.md .preloader.preloader-blue .preloader-inner-half-circle {
border-color: #2196f3;
}
.md .preloader.color-pink .preloader-inner-gap,
.md .preloader.preloader-pink .preloader-inner-gap,
.md .preloader.color-pink .preloader-inner-half-circle,
.md .preloader.preloader-pink .preloader-inner-half-circle {
border-color: #e91e63;
}
.md .preloader.color-yellow .preloader-inner-gap,
.md .preloader.preloader-yellow .preloader-inner-gap,
.md .preloader.color-yellow .preloader-inner-half-circle,
.md .preloader.preloader-yellow .preloader-inner-half-circle {
border-color: #ffeb3b;
}
.md .preloader.color-orange .preloader-inner-gap,
.md .preloader.preloader-orange .preloader-inner-gap,
.md .preloader.color-orange .preloader-inner-half-circle,
.md .preloader.preloader-orange .preloader-inner-half-circle {
border-color: #ff9800;
}
.md .preloader.color-gray .preloader-inner-gap,
.md .preloader.preloader-gray .preloader-inner-gap,
.md .preloader.color-gray .preloader-inner-half-circle,
.md .preloader.preloader-gray .preloader-inner-half-circle {
border-color: #9e9e9e;
}
.md .preloader.color-white .preloader-inner-gap,
.md .preloader.preloader-white .preloader-inner-gap,
.md .preloader.color-white .preloader-inner-half-circle,
.md .preloader.preloader-white .preloader-inner-half-circle {
border-color: #ffffff;
}
.md .preloader.color-black .preloader-inner-gap,
.md .preloader.preloader-black .preloader-inner-gap,
.md .preloader.color-black .preloader-inner-half-circle,
.md .preloader.preloader-black .preloader-inner-half-circle {
border-color: #000000;
}
.md .preloader.color-multi .preloader-inner-left .preloader-inner-half-circle {
-webkit-animation-name: md-preloader-left-rotate-multicolor;
animation-name: md-preloader-left-rotate-multicolor;
}
.md .preloader.color-multi .preloader-inner-right .preloader-inner-half-circle {
-webkit-animation-name: md-preloader-right-rotate-multicolor;
animation-name: md-preloader-right-rotate-multicolor;
}
@-webkit-keyframes md-preloader-left-rotate {
0%,
100% {
-webkit-transform: rotate(130deg);
transform: rotate(130deg);
}
50% {
-webkit-transform: rotate(-5deg);
transform: rotate(-5deg);
}
}
@keyframes md-preloader-left-rotate {
0%,
100% {
-webkit-transform: rotate(130deg);
transform: rotate(130deg);
}
50% {
-webkit-transform: rotate(-5deg);
transform: rotate(-5deg);
}
}
@-webkit-keyframes md-preloader-right-rotate {
0%,
100% {
-webkit-transform: rotate(-130deg);
transform: rotate(-130deg);
}
50% {
-webkit-transform: rotate(5deg);
transform: rotate(5deg);
}
}
@keyframes md-preloader-right-rotate {
0%,
100% {
-webkit-transform: rotate(-130deg);
transform: rotate(-130deg);
}
50% {
-webkit-transform: rotate(5deg);
transform: rotate(5deg);
}
}
@-webkit-keyframes md-preloader-inner-rotate {
12.5% {
-webkit-transform: rotate(135deg);
transform: rotate(135deg);
}
25% {
-webkit-transform: rotate(270deg);
transform: rotate(270deg);
}
37.5% {
-webkit-transform: rotate(405deg);
transform: rotate(405deg);
}
50% {
-webkit-transform: rotate(540deg);
transform: rotate(540deg);
}
62.5% {
-webkit-transform: rotate(675deg);
transform: rotate(675deg);
}
75% {
-webkit-transform: rotate(810deg);
transform: rotate(810deg);
}
87.5% {
-webkit-transform: rotate(945deg);
transform: rotate(945deg);
}
100% {
-webkit-transform: rotate(1080deg);
transform: rotate(1080deg);
}
}
@keyframes md-preloader-inner-rotate {
12.5% {
-webkit-transform: rotate(135deg);
transform: rotate(135deg);
}
25% {
-webkit-transform: rotate(270deg);
transform: rotate(270deg);
}
37.5% {
-webkit-transform: rotate(405deg);
transform: rotate(405deg);
}
50% {
-webkit-transform: rotate(540deg);
transform: rotate(540deg);
}
62.5% {
-webkit-transform: rotate(675deg);
transform: rotate(675deg);
}
75% {
-webkit-transform: rotate(810deg);
transform: rotate(810deg);
}
87.5% {
-webkit-transform: rotate(945deg);
transform: rotate(945deg);
}
100% {
-webkit-transform: rotate(1080deg);
transform: rotate(1080deg);
}
}
@-webkit-keyframes md-preloader-left-rotate-multicolor {
0%,
100% {
border-left-color: #4285F4;
-webkit-transform: rotate(130deg);
transform: rotate(130deg);
}
75% {
border-left-color: #1B9A59;
border-top-color: #1B9A59;
}
50% {
border-left-color: #F7C223;
border-top-color: #F7C223;
-webkit-transform: rotate(-5deg);
transform: rotate(-5deg);
}
25% {
border-left-color: #DE3E35;
border-top-color: #DE3E35;
}
}
@keyframes md-preloader-left-rotate-multicolor {
0%,
100% {
border-left-color: #4285F4;
-webkit-transform: rotate(130deg);
transform: rotate(130deg);
}
75% {
border-left-color: #1B9A59;
border-top-color: #1B9A59;
}
50% {
border-left-color: #F7C223;
border-top-color: #F7C223;
-webkit-transform: rotate(-5deg);
transform: rotate(-5deg);
}
25% {
border-left-color: #DE3E35;
border-top-color: #DE3E35;
}
}
@-webkit-keyframes md-preloader-right-rotate-multicolor {
0%,
100% {
border-right-color: #4285F4;
-webkit-transform: rotate(-130deg);
transform: rotate(-130deg);
}
75% {
border-right-color: #1B9A59;
border-top-color: #1B9A59;
}
50% {
border-right-color: #F7C223;
border-top-color: #F7C223;
-webkit-transform: rotate(5deg);
transform: rotate(5deg);
}
25% {
border-top-color: #DE3E35;
border-right-color: #DE3E35;
}
}
@keyframes md-preloader-right-rotate-multicolor {
0%,
100% {
border-right-color: #4285F4;
-webkit-transform: rotate(-130deg);
transform: rotate(-130deg);
}
75% {
border-right-color: #1B9A59;
border-top-color: #1B9A59;
}
50% {
border-right-color: #F7C223;
border-top-color: #F7C223;
-webkit-transform: rotate(5deg);
transform: rotate(5deg);
}
25% {
border-top-color: #DE3E35;
border-right-color: #DE3E35;
}
}
/* === Progressbar === */
.progressbar,
.progressbar-infinite {
width: 100%;
overflow: hidden;
position: relative;
display: block;
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
}
body > .progressbar,
.view > .progressbar,
.views > .progressbar,
.page > .progressbar,
.panel > .progressbar,
.popup > .progressbar,
.framework7-root > .progressbar,
body > .progressbar-infinite,
.view > .progressbar-infinite,
.views > .progressbar-infinite,
.page > .progressbar-infinite,
.panel > .progressbar-infinite,
.popup > .progressbar-infinite,
.framework7-root > .progressbar-infinite {
position: absolute;
left: 0;
top: 0;
z-index: 15000;
border-radius: 0 !important;
-webkit-transform-origin: center top !important;
transform-origin: center top !important;
}
.with-statusbar.device-ios body > .progressbar,
.with-statusbar.ios:not(.device-ios):not(.device-android) body > .progressbar,
.with-statusbar.device-ios .framework7-root > .progressbar,
.with-statusbar.ios:not(.device-ios):not(.device-android) .framework7-root > .progressbar,
.with-statusbar.device-ios body > .progressbar-infinite,
.with-statusbar.ios:not(.device-ios):not(.device-android) body > .progressbar-infinite,
.with-statusbar.device-ios .framework7-root > .progressbar-infinite,
.with-statusbar.ios:not(.device-ios):not(.device-android) .framework7-root > .progressbar-infinite {
top: 20px;
}
.with-statusbar.device-android body > .progressbar,
.with-statusbar.md:not(.device-ios):not(.device-android) body > .progressbar,
.with-statusbar.device-android .framework7-root > .progressbar,
.with-statusbar.md:not(.device-ios):not(.device-android) .framework7-root > .progressbar,
.with-statusbar.device-android body > .progressbar-infinite,
.with-statusbar.md:not(.device-ios):not(.device-android) body > .progressbar-infinite,
.with-statusbar.device-android .framework7-root > .progressbar-infinite,
.with-statusbar.md:not(.device-ios):not(.device-android) .framework7-root > .progressbar-infinite {
top: 24px;
}
.with-statusbar.device-iphone-x body > .progressbar,
.with-statusbar.device-iphone-x .framework7-root > .progressbar,
.with-statusbar.device-iphone-x body > .progressbar-infinite,
.with-statusbar.device-iphone-x .framework7-root > .progressbar-infinite {
top: constant(safe-area-inset-top);
top: env(safe-area-inset-top);
}
.progressbar {
vertical-align: middle;
}
.progressbar span {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
-webkit-transition-duration: 150ms;
transition-duration: 150ms;
}
.progressbar-infinite:before,
.progressbar-infinite:after {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
-webkit-transform-origin: left center;
transform-origin: left center;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
display: block;
}
.progressbar-infinite.color-multi {
background: none !important;
}
.progressbar-in {
-webkit-animation: progressbar-in 150ms forwards;
animation: progressbar-in 150ms forwards;
}
.progressbar-out {
-webkit-animation: progressbar-out 150ms forwards;
animation: progressbar-out 150ms forwards;
}
@-webkit-keyframes progressbar-in {
from {
opacity: 0;
-webkit-transform: scaleY(0);
transform: scaleY(0);
}
to {
opacity: 1;
-webkit-transform: scaleY(1);
transform: scaleY(1);
}
}
@keyframes progressbar-in {
from {
opacity: 0;
-webkit-transform: scaleY(0);
transform: scaleY(0);
}
to {
opacity: 1;
-webkit-transform: scaleY(1);
transform: scaleY(1);
}
}
@-webkit-keyframes progressbar-out {
from {
opacity: 1;
-webkit-transform: scaleY(1);
transform: scaleY(1);
}
to {
opacity: 0;
-webkit-transform: scaleY(0);
transform: scaleY(0);
}
}
@keyframes progressbar-out {
from {
opacity: 1;
-webkit-transform: scaleY(1);
transform: scaleY(1);
}
to {
opacity: 0;
-webkit-transform: scaleY(0);
transform: scaleY(0);
}
}
.md .progressbar,
.md .progressbar-infinite {
height: 4px;
background: rgba(33, 150, 243, 0.5);
-webkit-transform-origin: center bottom;
transform-origin: center bottom;
}
.md .progressbar span {
background: #2196f3;
}
.md .progressbar-infinite {
z-index: 15000;
}
.md .progressbar-infinite:before,
.md .progressbar-infinite:after {
content: '';
background: #2196f3;
}
.md .progressbar-infinite:before {
-webkit-animation: md-progressbar-infinite-1 2s linear infinite;
animation: md-progressbar-infinite-1 2s linear infinite;
}
.md .progressbar-infinite:after {
-webkit-animation: md-progressbar-infinite-2 2s linear infinite;
animation: md-progressbar-infinite-2 2s linear infinite;
}
.md .progressbar-infinite.color-multi:before {
background: none;
-webkit-animation: md-progressbar-infinite-multicolor-bg 3s step-end infinite;
animation: md-progressbar-infinite-multicolor-bg 3s step-end infinite;
}
.md .progressbar-infinite.color-multi:after {
background: none;
-webkit-animation: md-progressbar-infinite-multicolor-fill 3s linear infinite;
animation: md-progressbar-infinite-multicolor-fill 3s linear infinite;
-webkit-transform-origin: center center;
transform-origin: center center;
}
.md .color-theme-red .progressbar,
.md .color-theme-red .progressbar-infinite {
background: rgba(244, 67, 54, 0.5);
}
.md .color-theme-red .progressbar span {
background: #f44336;
}
.md .color-theme-red .progressbar-infinite:before,
.md .color-theme-red .progressbar-infinite:after {
background: #f44336;
}
.md .color-theme-green .progressbar,
.md .color-theme-green .progressbar-infinite {
background: rgba(76, 175, 80, 0.5);
}
.md .color-theme-green .progressbar span {
background: #4caf50;
}
.md .color-theme-green .progressbar-infinite:before,
.md .color-theme-green .progressbar-infinite:after {
background: #4caf50;
}
.md .color-theme-blue .progressbar,
.md .color-theme-blue .progressbar-infinite {
background: rgba(33, 150, 243, 0.5);
}
.md .color-theme-blue .progressbar span {
background: #2196f3;
}
.md .color-theme-blue .progressbar-infinite:before,
.md .color-theme-blue .progressbar-infinite:after {
background: #2196f3;
}
.md .color-theme-pink .progressbar,
.md .color-theme-pink .progressbar-infinite {
background: rgba(233, 30, 99, 0.5);
}
.md .color-theme-pink .progressbar span {
background: #e91e63;
}
.md .color-theme-pink .progressbar-infinite:before,
.md .color-theme-pink .progressbar-infinite:after {
background: #e91e63;
}
.md .color-theme-yellow .progressbar,
.md .color-theme-yellow .progressbar-infinite {
background: rgba(255, 235, 59, 0.5);
}
.md .color-theme-yellow .progressbar span {
background: #ffeb3b;
}
.md .color-theme-yellow .progressbar-infinite:before,
.md .color-theme-yellow .progressbar-infinite:after {
background: #ffeb3b;
}
.md .color-theme-orange .progressbar,
.md .color-theme-orange .progressbar-infinite {
background: rgba(255, 152, 0, 0.5);
}
.md .color-theme-orange .progressbar span {
background: #ff9800;
}
.md .color-theme-orange .progressbar-infinite:before,
.md .color-theme-orange .progressbar-infinite:after {
background: #ff9800;
}
.md .color-theme-gray .progressbar,
.md .color-theme-gray .progressbar-infinite {
background: rgba(158, 158, 158, 0.5);
}
.md .color-theme-gray .progressbar span {
background: #9e9e9e;
}
.md .color-theme-gray .progressbar-infinite:before,
.md .color-theme-gray .progressbar-infinite:after {
background: #9e9e9e;
}
.md .color-theme-white .progressbar,
.md .color-theme-white .progressbar-infinite {
background: rgba(255, 255, 255, 0.5);
}
.md .color-theme-white .progressbar span {
background: #ffffff;
}
.md .color-theme-white .progressbar-infinite:before,
.md .color-theme-white .progressbar-infinite:after {
background: #ffffff;
}
.md .color-theme-black .progressbar,
.md .color-theme-black .progressbar-infinite {
background: rgba(0, 0, 0, 0.5);
}
.md .color-theme-black .progressbar span {
background: #000000;
}
.md .color-theme-black .progressbar-infinite:before,
.md .color-theme-black .progressbar-infinite:after {
background: #000000;
}
.md .progressbar.color-red,
.md .progressbar-infinite.color-red {
background: rgba(244, 67, 54, 0.5);
}
.md .progressbar.color-red span {
background: #f44336;
}
.md .progressbar-infinite.color-red:before,
.md .progressbar-infinite.color-red:after {
background: #f44336;
}
.md .progressbar.color-green,
.md .progressbar-infinite.color-green {
background: rgba(76, 175, 80, 0.5);
}
.md .progressbar.color-green span {
background: #4caf50;
}
.md .progressbar-infinite.color-green:before,
.md .progressbar-infinite.color-green:after {
background: #4caf50;
}
.md .progressbar.color-blue,
.md .progressbar-infinite.color-blue {
background: rgba(33, 150, 243, 0.5);
}
.md .progressbar.color-blue span {
background: #2196f3;
}
.md .progressbar-infinite.color-blue:before,
.md .progressbar-infinite.color-blue:after {
background: #2196f3;
}
.md .progressbar.color-pink,
.md .progressbar-infinite.color-pink {
background: rgba(233, 30, 99, 0.5);
}
.md .progressbar.color-pink span {
background: #e91e63;
}
.md .progressbar-infinite.color-pink:before,
.md .progressbar-infinite.color-pink:after {
background: #e91e63;
}
.md .progressbar.color-yellow,
.md .progressbar-infinite.color-yellow {
background: rgba(255, 235, 59, 0.5);
}
.md .progressbar.color-yellow span {
background: #ffeb3b;
}
.md .progressbar-infinite.color-yellow:before,
.md .progressbar-infinite.color-yellow:after {
background: #ffeb3b;
}
.md .progressbar.color-orange,
.md .progressbar-infinite.color-orange {
background: rgba(255, 152, 0, 0.5);
}
.md .progressbar.color-orange span {
background: #ff9800;
}
.md .progressbar-infinite.color-orange:before,
.md .progressbar-infinite.color-orange:after {
background: #ff9800;
}
.md .progressbar.color-gray,
.md .progressbar-infinite.color-gray {
background: rgba(158, 158, 158, 0.5);
}
.md .progressbar.color-gray span {
background: #9e9e9e;
}
.md .progressbar-infinite.color-gray:before,
.md .progressbar-infinite.color-gray:after {
background: #9e9e9e;
}
.md .progressbar.color-white,
.md .progressbar-infinite.color-white {
background: rgba(255, 255, 255, 0.5);
}
.md .progressbar.color-white span {
background: #ffffff;
}
.md .progressbar-infinite.color-white:before,
.md .progressbar-infinite.color-white:after {
background: #ffffff;
}
.md .progressbar.color-black,
.md .progressbar-infinite.color-black {
background: rgba(0, 0, 0, 0.5);
}
.md .progressbar.color-black span {
background: #000000;
}
.md .progressbar-infinite.color-black:before,
.md .progressbar-infinite.color-black:after {
background: #000000;
}
@-webkit-keyframes md-progressbar-infinite-1 {
0% {
-webkit-transform: translateX(-10%) scaleX(0.1);
transform: translateX(-10%) scaleX(0.1);
}
25% {
-webkit-transform: translateX(30%) scaleX(0.6);
transform: translateX(30%) scaleX(0.6);
}
50% {
-webkit-transform: translateX(100%) scaleX(1);
transform: translateX(100%) scaleX(1);
}
100% {
-webkit-transform: translateX(100%) scaleX(1);
transform: translateX(100%) scaleX(1);
}
}
@keyframes md-progressbar-infinite-1 {
0% {
-webkit-transform: translateX(-10%) scaleX(0.1);
transform: translateX(-10%) scaleX(0.1);
}
25% {
-webkit-transform: translateX(30%) scaleX(0.6);
transform: translateX(30%) scaleX(0.6);
}
50% {
-webkit-transform: translateX(100%) scaleX(1);
transform: translateX(100%) scaleX(1);
}
100% {
-webkit-transform: translateX(100%) scaleX(1);
transform: translateX(100%) scaleX(1);
}
}
@-webkit-keyframes md-progressbar-infinite-2 {
0% {
-webkit-transform: translateX(-100%) scaleX(1);
transform: translateX(-100%) scaleX(1);
}
40% {
-webkit-transform: translateX(-100%) scaleX(1);
transform: translateX(-100%) scaleX(1);
}
75% {
-webkit-transform: translateX(60%) scaleX(0.35);
transform: translateX(60%) scaleX(0.35);
}
90% {
-webkit-transform: translateX(100%) scaleX(0.1);
transform: translateX(100%) scaleX(0.1);
}
100% {
-webkit-transform: translateX(100%) scaleX(0.1);
transform: translateX(100%) scaleX(0.1);
}
}
@keyframes md-progressbar-infinite-2 {
0% {
-webkit-transform: translateX(-100%) scaleX(1);
transform: translateX(-100%) scaleX(1);
}
40% {
-webkit-transform: translateX(-100%) scaleX(1);
transform: translateX(-100%) scaleX(1);
}
75% {
-webkit-transform: translateX(60%) scaleX(0.35);
transform: translateX(60%) scaleX(0.35);
}
90% {
-webkit-transform: translateX(100%) scaleX(0.1);
transform: translateX(100%) scaleX(0.1);
}
100% {
-webkit-transform: translateX(100%) scaleX(0.1);
transform: translateX(100%) scaleX(0.1);
}
}
@-webkit-keyframes md-progressbar-infinite-multicolor-bg {
0% {
background-color: #4caf50;
}
25% {
background-color: #f44336;
}
50% {
background-color: #2196f3;
}
75% {
background-color: #ffeb3b;
}
}
@keyframes md-progressbar-infinite-multicolor-bg {
0% {
background-color: #4caf50;
}
25% {
background-color: #f44336;
}
50% {
background-color: #2196f3;
}
75% {
background-color: #ffeb3b;
}
}
@-webkit-keyframes md-progressbar-infinite-multicolor-fill {
0% {
-webkit-transform: scaleX(0);
transform: scaleX(0);
background-color: #f44336;
}
24.9% {
-webkit-transform: scaleX(1);
transform: scaleX(1);
background-color: #f44336;
}
25% {
-webkit-transform: scaleX(0);
transform: scaleX(0);
background-color: #2196f3;
}
49.9% {
-webkit-transform: scaleX(1);
transform: scaleX(1);
background-color: #2196f3;
}
50% {
-webkit-transform: scaleX(0);
transform: scaleX(0);
background-color: #ffeb3b;
}
74.9% {
-webkit-transform: scaleX(1);
transform: scaleX(1);
background-color: #ffeb3b;
}
75% {
-webkit-transform: scaleX(0);
transform: scaleX(0);
background-color: #4caf50;
}
100% {
-webkit-transform: scaleX(1);
transform: scaleX(1);
background-color: #4caf50;
}
}
@keyframes md-progressbar-infinite-multicolor-fill {
0% {
-webkit-transform: scaleX(0);
transform: scaleX(0);
background-color: #f44336;
}
24.9% {
-webkit-transform: scaleX(1);
transform: scaleX(1);
background-color: #f44336;
}
25% {
-webkit-transform: scaleX(0);
transform: scaleX(0);
background-color: #2196f3;
}
49.9% {
-webkit-transform: scaleX(1);
transform: scaleX(1);
background-color: #2196f3;
}
50% {
-webkit-transform: scaleX(0);
transform: scaleX(0);
background-color: #ffeb3b;
}
74.9% {
-webkit-transform: scaleX(1);
transform: scaleX(1);
background-color: #ffeb3b;
}
75% {
-webkit-transform: scaleX(0);
transform: scaleX(0);
background-color: #4caf50;
}
100% {
-webkit-transform: scaleX(1);
transform: scaleX(1);
background-color: #4caf50;
}
}
/* === Sortable === */
.sortable .sortable-handler {
position: absolute;
top: 0;
bottom: 1px;
z-index: 10;
background-repeat: no-repeat;
background-size: 18px 12px;
opacity: 0;
pointer-events: none;
cursor: move;
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
right: 0;
background-position: 100% 50%;
}
.sortable .item-inner {
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
}
.sortable li.sorting {
z-index: 50;
background: rgba(255, 255, 255, 0.8);
-webkit-transition-duration: 0ms;
transition-duration: 0ms;
}
.sortable li.sorting .item-inner:after {
display: none !important;
}
.sortable-sorting li {
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
}
.sortable-enabled .sortable-handler {
pointer-events: auto;
opacity: 1;
background-position: 50% 50%;
}
.sortable-enabled .item-link .item-inner,
.sortable-enabled .item-link .item-title-row {
background-image: none !important;
}
.theme-dark .sortable li.sorting,
.sortable.theme-dark li.sorting {
background-color: rgba(50, 50, 50, 0.8);
}
.md .sortable-handler {
width: 50px;
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2018%208'%3E%3Crect%20x%3D'0'%20y%3D'0'%20width%3D'18'%20height%3D'2'%20fill%3D'%23c7c7cc'%3E%3C%2Frect%3E%3Crect%20x%3D'0'%20y%3D'6'%20width%3D'18'%20height%3D'2'%20fill%3D'%23c7c7cc'%3E%3C%2Frect%3E%3C%2Fsvg%3E");
}
.md .sortable li.sorting {
-webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}
.md .sortable-enabled .item-inner,
.md .sortable-enabled .item-link .item-inner {
padding-right: 50px;
}
.md .list.sortable-enabled .item-link.no-chevron .item-inner,
.md .list.sortable-enabled.no-chevron .item-link .item-inner,
.md .list.sortable-enabled .no-chevron .item-link .item-inner,
.md .no-chevron .list.sortable-enabled .item-link .item-inner {
padding-right: 50px;
}
@media (orientation: landscape) {
.md.device-iphone-x .ios-right-edge .sortable-handler,
.md.device-iphone-x .ios-edges .sortable-handler,
.md.device-iphone-x .popup .sortable-handler,
.md.device-iphone-x .sheet-modal .sortable-handler,
.md.device-iphone-x .panel-right .sortable-handler {
right: constant(safe-area-inset-right);
right: env(safe-area-inset-right);
}
.md.device-iphone-x .ios-right-edge .sortable-enabled:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-inner,
.md.device-iphone-x .ios-edges .sortable-enabled:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-inner,
.md.device-iphone-x .popup .sortable-enabled:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-inner,
.md.device-iphone-x .sheet-modal .sortable-enabled:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-inner,
.md.device-iphone-x .panel-right .sortable-enabled:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-inner,
.md.device-iphone-x .ios-right-edge .sortable-enabled:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-link .item-inner,
.md.device-iphone-x .ios-edges .sortable-enabled:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-link .item-inner,
.md.device-iphone-x .popup .sortable-enabled:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-link .item-inner,
.md.device-iphone-x .sheet-modal .sortable-enabled:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-link .item-inner,
.md.device-iphone-x .panel-right .sortable-enabled:not(.inset):not(.tablet-inset):not(.no-ios-edges):not(.no-ios-right-edge) .item-link .item-inner {
padding-right: calc(42px + constant(safe-area-inset-right));
padding-right: calc(42px + env(safe-area-inset-right));
}
}
/* === Swipeout === */
.swipeout {
overflow: hidden;
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
}
.swipeout-deleting {
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
}
.swipeout-deleting .swipeout-content {
-webkit-transform: translateX(-100%);
transform: translateX(-100%);
}
.swipeout-transitioning .swipeout-content,
.swipeout-transitioning .swipeout-actions-right a,
.swipeout-transitioning .swipeout-actions-left a,
.swipeout-transitioning .swipeout-overswipe {
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
-webkit-transition-property: left, -webkit-transform;
transition-property: left, -webkit-transform;
transition-property: transform, left;
transition-property: transform, left, -webkit-transform;
}
.swipeout-content {
position: relative;
z-index: 10;
}
.swipeout-overswipe {
-webkit-transition-duration: 200ms;
transition-duration: 200ms;
-webkit-transition-property: left;
transition-property: left;
}
.swipeout-actions-left,
.swipeout-actions-right {
position: absolute;
top: 0;
height: 100%;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
direction: ltr;
}
.swipeout-actions-left > a,
.swipeout-actions-right > a,
.swipeout-actions-left > button,
.swipeout-actions-right > button,
.swipeout-actions-left > span,
.swipeout-actions-right > span,
.swipeout-actions-left > div,
.swipeout-actions-right > div {
color: #fff;
background: #c7c7cc;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
position: relative;
left: 0;
}
.swipeout-actions-left > a:after,
.swipeout-actions-right > a:after,
.swipeout-actions-left > button:after,
.swipeout-actions-right > button:after,
.swipeout-actions-left > span:after,
.swipeout-actions-right > span:after,
.swipeout-actions-left > div:after,
.swipeout-actions-right > div:after {
content: '';
position: absolute;
top: 0;
width: 600%;
height: 100%;
background: inherit;
z-index: -1;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.swipeout-actions-right {
right: 0%;
-webkit-transform: translateX(100%);
transform: translateX(100%);
}
.swipeout-actions-right > a:after,
.swipeout-actions-right > button:after,
.swipeout-actions-right > span:after,
.swipeout-actions-right > div:after {
left: 100%;
margin-left: -1px;
}
.swipeout-actions-left {
left: 0%;
-webkit-transform: translateX(-100%);
transform: translateX(-100%);
}
.swipeout-actions-left > a:after,
.swipeout-actions-left > button:after,
.swipeout-actions-left > span:after,
.swipeout-actions-left > div:after {
right: 100%;
margin-right: -1px;
}
.md .swipeout-actions-left > a,
.md .swipeout-actions-right > a,
.md .swipeout-actions-left > button,
.md .swipeout-actions-right > button,
.md .swipeout-actions-left > span,
.md .swipeout-actions-right > span,
.md .swipeout-actions-left > div,
.md .swipeout-actions-right > div {
padding: 0 24px;
color: #fff;
}
.md .swipeout-actions-left .swipeout-delete,
.md .swipeout-actions-right .swipeout-delete {
background: #f44336;
}
.md .swipeout-actions-left > a.color-red,
.md .swipeout-actions-right > a.color-red,
.md .swipeout-actions-left > button.color-red,
.md .swipeout-actions-right > button.color-red,
.md .swipeout-actions-left > span.color-red,
.md .swipeout-actions-right > span.color-red,
.md .swipeout-actions-left > div.color-red,
.md .swipeout-actions-right > div.color-red {
background-color: #f44336;
}
.md .swipeout-actions-left > a.color-green,
.md .swipeout-actions-right > a.color-green,
.md .swipeout-actions-left > button.color-green,
.md .swipeout-actions-right > button.color-green,
.md .swipeout-actions-left > span.color-green,
.md .swipeout-actions-right > span.color-green,
.md .swipeout-actions-left > div.color-green,
.md .swipeout-actions-right > div.color-green {
background-color: #4caf50;
}
.md .swipeout-actions-left > a.color-blue,
.md .swipeout-actions-right > a.color-blue,
.md .swipeout-actions-left > button.color-blue,
.md .swipeout-actions-right > button.color-blue,
.md .swipeout-actions-left > span.color-blue,
.md .swipeout-actions-right > span.color-blue,
.md .swipeout-actions-left > div.color-blue,
.md .swipeout-actions-right > div.color-blue {
background-color: #2196f3;
}
.md .swipeout-actions-left > a.color-pink,
.md .swipeout-actions-right > a.color-pink,
.md .swipeout-actions-left > button.color-pink,
.md .swipeout-actions-right > button.color-pink,
.md .swipeout-actions-left > span.color-pink,
.md .swipeout-actions-right > span.color-pink,
.md .swipeout-actions-left > div.color-pink,
.md .swipeout-actions-right > div.color-pink {
background-color: #e91e63;
}
.md .swipeout-actions-left > a.color-yellow,
.md .swipeout-actions-right > a.color-yellow,
.md .swipeout-actions-left > button.color-yellow,
.md .swipeout-actions-right > button.color-yellow,
.md .swipeout-actions-left > span.color-yellow,
.md .swipeout-actions-right > span.color-yellow,
.md .swipeout-actions-left > div.color-yellow,
.md .swipeout-actions-right > div.color-yellow {
background-color: #ffeb3b;
}
.md .swipeout-actions-left > a.color-orange,
.md .swipeout-actions-right > a.color-orange,
.md .swipeout-actions-left > button.color-orange,
.md .swipeout-actions-right > button.color-orange,
.md .swipeout-actions-left > span.color-orange,
.md .swipeout-actions-right > span.color-orange,
.md .swipeout-actions-left > div.color-orange,
.md .swipeout-actions-right > div.color-orange {
background-color: #ff9800;
}
.md .swipeout-actions-left > a.color-gray,
.md .swipeout-actions-right > a.color-gray,
.md .swipeout-actions-left > button.color-gray,
.md .swipeout-actions-right > button.color-gray,
.md .swipeout-actions-left > span.color-gray,
.md .swipeout-actions-right > span.color-gray,
.md .swipeout-actions-left > div.color-gray,
.md .swipeout-actions-right > div.color-gray {
background-color: #9e9e9e;
}
.md .swipeout-actions-left > a.color-white,
.md .swipeout-actions-right > a.color-white,
.md .swipeout-actions-left > button.color-white,
.md .swipeout-actions-right > button.color-white,
.md .swipeout-actions-left > span.color-white,
.md .swipeout-actions-right > span.color-white,
.md .swipeout-actions-left > div.color-white,
.md .swipeout-actions-right > div.color-white {
background-color: #ffffff;
}
.md .swipeout-actions-left > a.color-black,
.md .swipeout-actions-right > a.color-black,
.md .swipeout-actions-left > button.color-black,
.md .swipeout-actions-right > button.color-black,
.md .swipeout-actions-left > span.color-black,
.md .swipeout-actions-right > span.color-black,
.md .swipeout-actions-left > div.color-black,
.md .swipeout-actions-right > div.color-black {
background-color: #000000;
}
/* === Accordion === */
.accordion-item-toggle {
cursor: pointer;
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
}
.accordion-item-toggle.active-state {
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
}
.accordion-item-toggle.active-state > .item-inner:after {
background-color: transparent;
}
.accordion-item-toggle .item-inner {
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
-webkit-transition-property: background-color;
transition-property: background-color;
}
.accordion-item-toggle .item-inner:after {
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
}
.accordion-item .item-link .item-inner:after {
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
}
.accordion-item .list,
.accordion-item .block {
margin-top: 0;
margin-bottom: 0;
}
.accordion-item .block > h1:first-child,
.accordion-item .block > h2:first-child,
.accordion-item .block > h3:first-child,
.accordion-item .block > h4:first-child,
.accordion-item .block > p:first-child {
margin-top: 10px;
}
.accordion-item .block > h1:last-child,
.accordion-item .block > h2:last-child,
.accordion-item .block > h3:last-child,
.accordion-item .block > h4:last-child,
.accordion-item .block > p:last-child {
margin-bottom: 10px;
}
.accordion-item-opened .accordion-item-toggle .item-inner:after,
.accordion-item-opened > .item-link .item-inner:after {
background-color: transparent;
}
.list li.accordion-item ul {
padding-left: 0;
}
.accordion-item-content {
position: relative;
overflow: hidden;
height: 0;
font-size: 14px;
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
}
.accordion-item-opened > .accordion-item-content {
height: auto;
}
html.device-android-4 .accordion-item-content {
-webkit-transform: none;
transform: none;
}
.md .list .accordion-item-toggle .item-inner {
padding-right: 42px;
background: no-repeat calc(100% - 16px) center;
}
.md .list .accordion-item-toggle.active-state {
background-color: rgba(0, 0, 0, 0.1);
}
.md .list .accordion-item-toggle .item-inner,
.md .list:not(.media-list) .accordion-item:not(.media-item) .accordion-item-toggle .item-inner,
.md .list:not(.media-list) .accordion-item:not(.media-item) > .item-link .item-inner,
.md .media-list .accordion-item .accordion-item-toggle .item-title-row,
.md .media-list .accordion-item > .item-link .item-title-row,
.md .accordion-item.media-item .accordion-item-toggle .item-title-row,
.md .accordion-item.media-item > .item-link .item-title-row,
.md .links-list .accordion-item > a {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D'13px'%20height%3D'8px'%20viewBox%3D'0%200%208%2013'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpolygon%20fill%3D'%23c7c7cc'%20transform%3D'translate(6.5%2C%206.5)%20rotate(-315)%20translate(-10%2C%20-6.5)'%20points%3D'11%2011%2011%202%209%202%209%209%202%209%202%2011%2010%2011'%3E%3C%2Fpolygon%3E%3C%2Fsvg%3E");
background-size: 13px 13px;
}
.md .list .accordion-item-toggle.accordion-item-opened .item-inner,
.md .list:not(.media-list) .accordion-item-opened:not(.media-item) .accordion-item-toggle .item-inner,
.md .list:not(.media-list) .accordion-item-opened:not(.media-item) > .item-link .item-inner,
.md .media-list .accordion-item-opened .accordion-item-toggle .item-title-row,
.md .media-list .accordion-item-opened > .item-link .item-title-row,
.md .accordion-item-opened.media-item .accordion-item-toggle .item-title-row,
.md .accordion-item-opened.media-item > .item-link .item-title-row,
.md .links-list .accordion-item-opened > a {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D'13px'%20height%3D'8px'%20viewBox%3D'0%200%208%2013'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpolygon%20fill%3D'%23c7c7cc'%20transform%3D'translate(1.5%2C%206.5)%20rotate(-135)%20translate(-10%2C%20-6.5)'%20points%3D'11%2011%2011%202%209%202%209%209%202%209%202%2011%2010%2011'%3E%3C%2Fpolygon%3E%3C%2Fsvg%3E");
}
.md .theme-dark .list .accordion-item-toggle .item-inner,
.md .theme-dark .list:not(.media-list) .accordion-item:not(.media-item) .accordion-item-toggle .item-inner,
.md .theme-dark .list:not(.media-list) .accordion-item:not(.media-item) > .item-link .item-inner,
.md .theme-dark .media-list .accordion-item .accordion-item-toggle .item-title-row,
.md .theme-dark .media-list .accordion-item > .item-link .item-title-row,
.md .theme-dark .accordion-item.media-item .accordion-item-toggle .item-title-row,
.md .theme-dark .accordion-item.media-item > .item-link .item-title-row,
.md .theme-dark .links-list .accordion-item > a {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D'13px'%20height%3D'8px'%20viewBox%3D'0%200%208%2013'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpolygon%20fill%3D'%23434345'%20transform%3D'translate(6.5%2C%206.5)%20rotate(-315)%20translate(-10%2C%20-6.5)'%20points%3D'11%2011%2011%202%209%202%209%209%202%209%202%2011%2010%2011'%3E%3C%2Fpolygon%3E%3C%2Fsvg%3E");
}
.md .theme-dark .list .accordion-item-toggle.accordion-item-opened .item-inner,
.md .theme-dark .list:not(.media-list) .accordion-item-opened:not(.media-item) .accordion-item-toggle .item-inner,
.md .theme-dark .list:not(.media-list) .accordion-item-opened:not(.media-item) > .item-link .item-inner,
.md .theme-dark .media-list .accordion-item-opened .accordion-item-toggle .item-title-row,
.md .theme-dark .media-list .accordion-item-opened > .item-link .item-title-row,
.md .theme-dark .accordion-item-opened.media-item .accordion-item-toggle .item-title-row,
.md .theme-dark .accordion-item-opened.media-item > .item-link .item-title-row,
.md .theme-dark .links-list .accordion-item-opened > a {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D'13px'%20height%3D'8px'%20viewBox%3D'0%200%208%2013'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpolygon%20fill%3D'%23434345'%20transform%3D'translate(1.5%2C%206.5)%20rotate(-135)%20translate(-10%2C%20-6.5)'%20points%3D'11%2011%2011%202%209%202%209%209%202%209%202%2011%2010%2011'%3E%3C%2Fpolygon%3E%3C%2Fsvg%3E");
}
/* === Contacts === */
.contacts-list .list-group:first-child ul:before {
display: none !important;
}
.contacts-list .list-group:last-child ul:after {
display: none !important;
}
.md .contacts-list {
margin: 0;
}
.md .contacts-list .list-group-title {
padding: 0 16px;
pointer-events: none;
background: none;
color: #2196f3;
font-weight: 500;
line-height: 48px;
height: 48px;
font-size: 20px;
overflow: visible;
width: 56px;
}
.md .contacts-list .list-group-title + li {
margin-top: -48px;
}
.md .contacts-list li:not(.list-group-title) {
padding-left: 56px;
}
.md .theme-dark .contacts-list .list-group-title {
color: #fff;
}
/* === Virtual List === */
/* === Indexed List === */
.list-index {
position: absolute;
top: 0;
bottom: 0;
right: 0;
text-align: center;
z-index: 10;
width: 16px;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.list-index:before {
content: '';
position: absolute;
width: 20px;
top: 0;
right: 100%;
height: 100%;
}
.list-index ul {
font-size: 11px;
font-weight: 600;
list-style: none;
margin: 0;
padding: 0;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
height: 100%;
width: 100%;
position: relative;
}
.list-index li {
margin: 0;
padding: 0;
list-style: none;
position: relative;
height: 14px;
line-height: 14px;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
display: block;
width: 100%;
}
.list-index .list-index-skip-placeholder:after {
content: '';
position: absolute;
left: 50%;
top: 50%;
border-radius: 50%;
}
.list-index .list-index-label {
position: absolute;
bottom: 0;
right: 100%;
text-align: center;
border-radius: 50%;
color: #fff;
font-weight: 500;
}
.md .list-index ul {
color: #2196f3;
}
.md .list-index .list-index-skip-placeholder:after {
content: '';
width: 4px;
height: 4px;
margin-left: -2px;
margin-top: -2px;
background: #2196f3;
}
.md .list-index .list-index-label {
width: 56px;
height: 56px;
line-height: 56px;
border-radius: 50% 50% 0 50%;
background: #2196f3;
font-size: 20px;
}
.md .navbar ~ .list-index {
top: 56px;
}
@media (min-width: 768px) {
.md .navbar ~ .list-index {
top: 64px;
}
}
.md .navbar ~ .toolbar:not(.toolbar-bottom-md) ~ .list-index,
.md .navbar ~ .subnavbar ~ .list-index,
.md .page-with-subnavbar .navbar ~ .list-index {
top: 104px;
}
.md .navbar ~ .tabbar-labels:not(.toolbar-bottom-md) ~ .list-index {
top: 128px;
}
.md .toolbar-bottom-md ~ .page > .list-index,
.md .toolbar-bottom-md ~ * .page > .list-index,
.md .toolbar-bottom-md ~ * .page > .list-index {
bottom: 48px;
}
.md .tabbar-labels.toolbar-bottom-md ~ .page > .list-index,
.md .tabbar-labels.toolbar-bottom-md ~ * .page > .list-index,
.md .tabbar-labels.toolbar-bottom-md ~ .list-index {
bottom: 56px;
}
.md.device-iphone-x .toolbar-bottom-md ~ .page > .list-index,
.md.device-iphone-x .toolbar-bottom-md ~ * .page > .list-index,
.md.device-iphone-x .toolbar-bottom-md ~ * .page > .list-index {
bottom: calc(48px + constant(safe-area-inset-bottom));
bottom: calc(48px + env(safe-area-inset-bottom));
}
.md.device-iphone-x .tabbar-labels.toolbar-bottom-md ~ .page > .list-index,
.md.device-iphone-x .tabbar-labels.toolbar-bottom-md ~ * .page > .list-index,
.md.device-iphone-x .tabbar-labels.toolbar-bottom-md ~ .list-index {
bottom: calc(56px + constant(safe-area-inset-bottom));
bottom: calc(56px + env(safe-area-inset-bottom));
}
.md .color-theme-red .list-index ul,
.md .list-index.color-theme-red ul {
color: #f44336;
}
.md .color-theme-red .list-index .list-index-skip-placeholder:after,
.md .list-index.color-theme-red .list-index-skip-placeholder:after,
.md .color-theme-red .list-index .list-index-label,
.md .list-index.color-theme-red .list-index-label {
background-color: #f44336;
}
.md .color-theme-green .list-index ul,
.md .list-index.color-theme-green ul {
color: #4caf50;
}
.md .color-theme-green .list-index .list-index-skip-placeholder:after,
.md .list-index.color-theme-green .list-index-skip-placeholder:after,
.md .color-theme-green .list-index .list-index-label,
.md .list-index.color-theme-green .list-index-label {
background-color: #4caf50;
}
.md .color-theme-blue .list-index ul,
.md .list-index.color-theme-blue ul {
color: #2196f3;
}
.md .color-theme-blue .list-index .list-index-skip-placeholder:after,
.md .list-index.color-theme-blue .list-index-skip-placeholder:after,
.md .color-theme-blue .list-index .list-index-label,
.md .list-index.color-theme-blue .list-index-label {
background-color: #2196f3;
}
.md .color-theme-pink .list-index ul,
.md .list-index.color-theme-pink ul {
color: #e91e63;
}
.md .color-theme-pink .list-index .list-index-skip-placeholder:after,
.md .list-index.color-theme-pink .list-index-skip-placeholder:after,
.md .color-theme-pink .list-index .list-index-label,
.md .list-index.color-theme-pink .list-index-label {
background-color: #e91e63;
}
.md .color-theme-yellow .list-index ul,
.md .list-index.color-theme-yellow ul {
color: #ffeb3b;
}
.md .color-theme-yellow .list-index .list-index-skip-placeholder:after,
.md .list-index.color-theme-yellow .list-index-skip-placeholder:after,
.md .color-theme-yellow .list-index .list-index-label,
.md .list-index.color-theme-yellow .list-index-label {
background-color: #ffeb3b;
}
.md .color-theme-orange .list-index ul,
.md .list-index.color-theme-orange ul {
color: #ff9800;
}
.md .color-theme-orange .list-index .list-index-skip-placeholder:after,
.md .list-index.color-theme-orange .list-index-skip-placeholder:after,
.md .color-theme-orange .list-index .list-index-label,
.md .list-index.color-theme-orange .list-index-label {
background-color: #ff9800;
}
.md .color-theme-gray .list-index ul,
.md .list-index.color-theme-gray ul {
color: #9e9e9e;
}
.md .color-theme-gray .list-index .list-index-skip-placeholder:after,
.md .list-index.color-theme-gray .list-index-skip-placeholder:after,
.md .color-theme-gray .list-index .list-index-label,
.md .list-index.color-theme-gray .list-index-label {
background-color: #9e9e9e;
}
.md .color-theme-white .list-index ul,
.md .list-index.color-theme-white ul {
color: #ffffff;
}
.md .color-theme-white .list-index .list-index-skip-placeholder:after,
.md .list-index.color-theme-white .list-index-skip-placeholder:after,
.md .color-theme-white .list-index .list-index-label,
.md .list-index.color-theme-white .list-index-label {
background-color: #ffffff;
}
.md .color-theme-black .list-index ul,
.md .list-index.color-theme-black ul {
color: #000000;
}
.md .color-theme-black .list-index .list-index-skip-placeholder:after,
.md .list-index.color-theme-black .list-index-skip-placeholder:after,
.md .color-theme-black .list-index .list-index-label,
.md .list-index.color-theme-black .list-index-label {
background-color: #000000;
}
.md .list-index.color-red ul {
color: #f44336;
}
.md .list-index.color-red .list-index-skip-placeholder:after,
.md .list-index.color-red .list-index-label {
background-color: #f44336;
}
.md .list-index.color-green ul {
color: #4caf50;
}
.md .list-index.color-green .list-index-skip-placeholder:after,
.md .list-index.color-green .list-index-label {
background-color: #4caf50;
}
.md .list-index.color-blue ul {
color: #2196f3;
}
.md .list-index.color-blue .list-index-skip-placeholder:after,
.md .list-index.color-blue .list-index-label {
background-color: #2196f3;
}
.md .list-index.color-pink ul {
color: #e91e63;
}
.md .list-index.color-pink .list-index-skip-placeholder:after,
.md .list-index.color-pink .list-index-label {
background-color: #e91e63;
}
.md .list-index.color-yellow ul {
color: #ffeb3b;
}
.md .list-index.color-yellow .list-index-skip-placeholder:after,
.md .list-index.color-yellow .list-index-label {
background-color: #ffeb3b;
}
.md .list-index.color-orange ul {
color: #ff9800;
}
.md .list-index.color-orange .list-index-skip-placeholder:after,
.md .list-index.color-orange .list-index-label {
background-color: #ff9800;
}
.md .list-index.color-gray ul {
color: #9e9e9e;
}
.md .list-index.color-gray .list-index-skip-placeholder:after,
.md .list-index.color-gray .list-index-label {
background-color: #9e9e9e;
}
.md .list-index.color-white ul {
color: #ffffff;
}
.md .list-index.color-white .list-index-skip-placeholder:after,
.md .list-index.color-white .list-index-label {
background-color: #ffffff;
}
.md .list-index.color-black ul {
color: #000000;
}
.md .list-index.color-black .list-index-skip-placeholder:after,
.md .list-index.color-black .list-index-label {
background-color: #000000;
}
/* === Timeline === */
.timeline {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.block-strong .timeline {
padding: 0;
margin: 0;
}
.timeline-item {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
overflow: hidden;
-webkit-box-sizing: border-box;
box-sizing: border-box;
position: relative;
}
.timeline-item-date {
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
width: 50px;
text-align: right;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.timeline-item-date small {
font-size: 10px;
}
.timeline-item-content {
margin: 2px;
min-width: 0;
position: relative;
-webkit-flex-shrink: 10;
-ms-flex-negative: 10;
flex-shrink: 10;
}
.timeline-item-content p:first-child,
.timeline-item-content ul:first-child,
.timeline-item-content ol:first-child,
.timeline-item-content h1:first-child,
.timeline-item-content h2:first-child,
.timeline-item-content h3:first-child,
.timeline-item-content h4:first-child {
margin-top: 0;
}
.timeline-item-content p:last-child,
.timeline-item-content ul:last-child,
.timeline-item-content ol:last-child,
.timeline-item-content h1:last-child,
.timeline-item-content h2:last-child,
.timeline-item-content h3:last-child,
.timeline-item-content h4:last-child {
margin-bottom: 0;
}
.timeline-item-inner {
background: #fff;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.timeline-item-inner .block {
padding: 0;
color: inherit;
}
.timeline-item-inner .block-strong {
padding-left: 0;
padding-right: 0;
margin: 0;
}
.timeline-item-inner .block-strong:before {
display: none !important;
}
.timeline-item-inner .block-strong:after {
display: none !important;
}
.timeline-item-inner .list ul:before {
display: none !important;
}
.timeline-item-inner .list ul:after {
display: none !important;
}
.timeline-item-divider {
width: 1px;
position: relative;
width: 10px;
height: 10px;
background: #bbb;
border-radius: 50%;
margin-top: 3px;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
}
.timeline-item-divider:after,
.timeline-item-divider:before {
content: ' ';
width: 1px;
height: 100vh;
position: absolute;
left: 50%;
background: inherit;
-webkit-transform: translate3d(-50%, 0, 0);
transform: translate3d(-50%, 0, 0);
}
.timeline-item-divider:after {
top: 100%;
}
.timeline-item-divider:before {
bottom: 100%;
}
.timeline-item:last-child .timeline-item-divider:after {
display: none;
}
.timeline-item:first-child .timeline-item-divider:before {
display: none;
}
.timeline-item-time {
font-size: 13px;
}
.timeline-item-time:first-child,
.timeline-item-time:last-child {
margin-top: 0;
}
.timeline-item-title + .timeline-item-time {
margin-top: 0;
}
.timeline-horizontal {
height: 100%;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
.timeline-horizontal .timeline-item {
display: block;
width: 33.33333333vw;
margin: 0;
padding: 0;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
position: relative;
height: 100%;
}
.timeline-horizontal .timeline-item-date {
width: auto;
line-height: 34px;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 34px;
text-align: left;
}
.timeline-horizontal .timeline-item-content {
overflow: auto;
-webkit-overflow-scrolling: touch;
margin: 0;
}
.timeline-horizontal .timeline-item-divider {
display: none;
}
.timeline-horizontal.col-100 .timeline-item {
width: 100vw;
}
.timeline-horizontal.col-95 .timeline-item {
width: 95vw;
}
.timeline-horizontal.col-90 .timeline-item {
width: 90vw;
}
.timeline-horizontal.col-85 .timeline-item {
width: 85vw;
}
.timeline-horizontal.col-80 .timeline-item {
width: 80vw;
}
.timeline-horizontal.col-75 .timeline-item {
width: 75vw;
}
.timeline-horizontal.col-70 .timeline-item {
width: 70vw;
}
.timeline-horizontal.col-66 .timeline-item {
width: 66.66666666666666vw;
}
.timeline-horizontal.col-65 .timeline-item {
width: 65vw;
}
.timeline-horizontal.col-60 .timeline-item {
width: 60vw;
}
.timeline-horizontal.col-55 .timeline-item {
width: 55vw;
}
.timeline-horizontal.col-50 .timeline-item {
width: 50vw;
}
.timeline-horizontal.col-45 .timeline-item {
width: 45vw;
}
.timeline-horizontal.col-40 .timeline-item {
width: 40vw;
}
.timeline-horizontal.col-35 .timeline-item {
width: 35vw;
}
.timeline-horizontal.col-33 .timeline-item {
width: 33.333333333333336vw;
}
.timeline-horizontal.col-30 .timeline-item {
width: 30vw;
}
.timeline-horizontal.col-25 .timeline-item {
width: 25vw;
}
.timeline-horizontal.col-20 .timeline-item {
width: 20vw;
}
.timeline-horizontal.col-15 .timeline-item {
width: 15vw;
}
.timeline-horizontal.col-10 .timeline-item {
width: 10vw;
}
.timeline-horizontal.col-5 .timeline-item {
width: 5vw;
}
@media (min-width: 768px) {
.timeline-horizontal.tablet-100 .timeline-item {
width: 100vw;
}
.timeline-horizontal.tablet-95 .timeline-item {
width: 95vw;
}
.timeline-horizontal.tablet-90 .timeline-item {
width: 90vw;
}
.timeline-horizontal.tablet-85 .timeline-item {
width: 85vw;
}
.timeline-horizontal.tablet-80 .timeline-item {
width: 80vw;
}
.timeline-horizontal.tablet-75 .timeline-item {
width: 75vw;
}
.timeline-horizontal.tablet-70 .timeline-item {
width: 70vw;
}
.timeline-horizontal.tablet-66 .timeline-item {
width: 66.66666666666666vw;
}
.timeline-horizontal.tablet-65 .timeline-item {
width: 65vw;
}
.timeline-horizontal.tablet-60 .timeline-item {
width: 60vw;
}
.timeline-horizontal.tablet-55 .timeline-item {
width: 55vw;
}
.timeline-horizontal.tablet-50 .timeline-item {
width: 50vw;
}
.timeline-horizontal.tablet-45 .timeline-item {
width: 45vw;
}
.timeline-horizontal.tablet-40 .timeline-item {
width: 40vw;
}
.timeline-horizontal.tablet-35 .timeline-item {
width: 35vw;
}
.timeline-horizontal.tablet-33 .timeline-item {
width: 33.333333333333336vw;
}
.timeline-horizontal.tablet-30 .timeline-item {
width: 30vw;
}
.timeline-horizontal.tablet-25 .timeline-item {
width: 25vw;
}
.timeline-horizontal.tablet-20 .timeline-item {
width: 20vw;
}
.timeline-horizontal.tablet-15 .timeline-item {
width: 15vw;
}
.timeline-horizontal.tablet-10 .timeline-item {
width: 10vw;
}
.timeline-horizontal.tablet-5 .timeline-item {
width: 5vw;
}
}
.timeline-horizontal .timeline-year,
.timeline-horizontal .timeline-month {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
padding-top: 24px;
position: relative;
-webkit-box-sizing: border-box;
box-sizing: border-box;
height: 100%;
}
.timeline-horizontal .timeline-year-title,
.timeline-horizontal .timeline-month-title {
position: absolute;
left: 0;
top: 0;
width: 100%;
line-height: 24px;
height: 24px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.timeline-horizontal .timeline-year-title span,
.timeline-horizontal .timeline-month-title span {
display: inline-block;
position: -webkit-sticky;
position: sticky;
}
.timeline-horizontal .timeline-year-title {
font-size: 16px;
}
.timeline-horizontal .timeline-month-title span {
margin-top: -2px;
}
/* === Timeline MD === */
.md .timeline {
margin: 32px 0;
padding: 0 16px;
}
.md .block-strong .timeline {
padding: 0;
margin: 0;
}
.md .timeline-item {
padding: 2px 0px 16px;
}
.md .timeline-item:last-child {
padding-bottom: 2px;
}
.md .timeline-item-content .card,
.md .timeline-item-content.card,
.md .timeline-item-content .list,
.md .timeline-item-content.list,
.md .timeline-item-content .block,
.md .timeline-item-content.block {
margin: 0;
width: 100%;
}
.md .timeline-item-content .card + .card,
.md .timeline-item-content .list + .card,
.md .timeline-item-content .block + .card,
.md .timeline-item-content .card + .list,
.md .timeline-item-content .list + .list,
.md .timeline-item-content .block + .list,
.md .timeline-item-content .card + .block,
.md .timeline-item-content .list + .block,
.md .timeline-item-content .block + .block {
margin: 16px 0 0;
}
.md .timeline-item-inner {
border-radius: 2px;
padding: 8px 16px;
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.md .timeline-item-inner + .timeline-item-inner {
margin-top: 16px;
}
.md .timeline-item-divider {
margin-left: 16px;
margin-right: 16px;
}
.md .timeline-item-time {
margin-top: 16px;
color: rgba(0, 0, 0, 0.54);
}
.md .timeline-item-time:first-child {
margin-top: 0;
}
.md .timeline-item-title {
font-size: 16px;
}
.md .timeline-sides .timeline-item {
margin-left: calc(50% - (32px + 10px) / 2 - 50px);
margin-right: 0;
}
.md .timeline-sides .timeline-item .timeline-item-date {
text-align: right;
}
.md .timeline-sides .timeline-item:not(.timeline-item-right):nth-child(2n) {
-webkit-box-orient: horizontal;
-webkit-box-direction: reverse;
-webkit-flex-direction: row-reverse;
-ms-flex-direction: row-reverse;
flex-direction: row-reverse;
margin-right: calc(50% - (32px + 10px) / 2 - 50px);
margin-left: 0;
}
.md .timeline-sides .timeline-item:not(.timeline-item-right):nth-child(2n) .timeline-item-date {
text-align: left;
}
.md .timeline-sides .timeline-item-left {
-webkit-box-orient: horizontal;
-webkit-box-direction: reverse;
-webkit-flex-direction: row-reverse;
-ms-flex-direction: row-reverse;
flex-direction: row-reverse;
margin-right: calc(50% - (32px + 10px) / 2 - 50px);
margin-left: 0;
}
.md .timeline-sides .timeline-item-left .timeline-item-date {
text-align: left;
}
.md .timeline-sides .timeline-item-right {
margin-left: calc(50% - (32px + 10px) / 2 - 50px);
margin-right: 0;
}
.md .timeline-sides .timeline-item-right .timeline-item-date {
text-align: right;
}
@media (min-width: 768px) {
.md .tablet-sides .timeline-item {
margin-left: calc(50% - (32px + 10px) / 2 - 50px);
margin-right: 0;
}
.md .tablet-sides .timeline-item .timeline-item-date {
text-align: right;
}
.md .tablet-sides .timeline-item:not(.timeline-item-right):nth-child(2n) {
-webkit-box-orient: horizontal;
-webkit-box-direction: reverse;
-webkit-flex-direction: row-reverse;
-ms-flex-direction: row-reverse;
flex-direction: row-reverse;
margin-right: calc(50% - (32px + 10px) / 2 - 50px);
margin-left: 0;
}
.md .tablet-sides .timeline-item:not(.timeline-item-right):nth-child(2n) .timeline-item-date {
text-align: left;
}
.md .tablet-sides .timeline-item-left {
-webkit-box-orient: horizontal;
-webkit-box-direction: reverse;
-webkit-flex-direction: row-reverse;
-ms-flex-direction: row-reverse;
flex-direction: row-reverse;
margin-right: calc(50% - (32px + 10px) / 2 - 50px);
margin-left: 0;
}
.md .tablet-sides .timeline-item-left .timeline-item-date {
text-align: left;
}
.md .tablet-sides .timeline-item-right {
margin-left: calc(50% - (32px + 10px) / 2 - 50px);
margin-right: 0;
}
.md .tablet-sides .timeline-item-right .timeline-item-date {
text-align: right;
}
}
.md .timeline-horizontal {
padding: 0;
margin: 0;
position: relative;
}
.md .timeline-horizontal .timeline-item {
padding-top: 34px !important;
padding-bottom: 12px;
}
.md .timeline-horizontal .timeline-item-date {
background: #2196f3;
padding: 0px 12px;
color: #fff;
}
.md .timeline-horizontal .timeline-item-date:after {
content: '';
position: absolute;
right: 0;
width: 100%;
top: 100%;
bottom: auto;
height: 10px;
pointer-events: none;
background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.3)), color-stop(40%, rgba(0, 0, 0, 0.1)), color-stop(50%, rgba(0, 0, 0, 0.05)), color-stop(80%, rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0)));
background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0) 100%);
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0) 100%);
}
.md .timeline-horizontal .timeline-item-content {
padding: 12px;
height: calc(100% - 12px);
}
.md .timeline-horizontal.no-shadow .timeline-item-date:after {
display: none;
}
.md .timeline-horizontal .timeline-item:after {
content: '';
position: absolute;
background-color: rgba(0, 0, 0, 0.12);
display: block;
z-index: 15;
top: 0;
right: 0;
bottom: auto;
left: auto;
width: 1px;
height: 100%;
-webkit-transform-origin: 100% 50%;
transform-origin: 100% 50%;
}
.md.device-pixel-ratio-2 .timeline-horizontal .timeline-item:after {
-webkit-transform: scaleX(0.5);
transform: scaleX(0.5);
}
.md.device-pixel-ratio-3 .timeline-horizontal .timeline-item:after {
-webkit-transform: scaleX(0.33);
transform: scaleX(0.33);
}
.md .timeline-horizontal .timeline-item:before {
content: '';
position: absolute;
background-color: rgba(0, 0, 0, 0.12);
display: block;
z-index: 15;
top: 0;
right: auto;
bottom: auto;
left: 0;
height: 1px;
width: 100%;
-webkit-transform-origin: 50% 0%;
transform-origin: 50% 0%;
}
.md.device-pixel-ratio-2 .timeline-horizontal .timeline-item:before {
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.md.device-pixel-ratio-3 .timeline-horizontal .timeline-item:before {
-webkit-transform: scaleY(0.33);
transform: scaleY(0.33);
}
.md .timeline-year-title,
.md .timeline-month-title {
padding: 0 12px;
color: #fff;
background: #2196f3;
}
.md .timeline-year-title span,
.md .timeline-month-title span {
left: 12px;
}
.md .timeline-year-title span {
margin-top: 2px;
}
@media (orientation: landscape) {
.md.device-iphone-x .ios-left-edge .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .ios-edges .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .popup .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .sheet-modal .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .panel-left .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) {
padding-left: constant(safe-area-inset-left);
padding-left: env(safe-area-inset-left);
}
.md.device-iphone-x .ios-left-edge .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year-title span,
.md.device-iphone-x .ios-edges .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year-title span,
.md.device-iphone-x .popup .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year-title span,
.md.device-iphone-x .sheet-modal .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year-title span,
.md.device-iphone-x .panel-left .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year-title span,
.md.device-iphone-x .ios-left-edge .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-month-title span,
.md.device-iphone-x .ios-edges .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-month-title span,
.md.device-iphone-x .popup .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-month-title span,
.md.device-iphone-x .sheet-modal .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-month-title span,
.md.device-iphone-x .panel-left .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-month-title span {
left: calc(12px + constant(safe-area-inset-left));
left: calc(12px + env(safe-area-inset-left));
}
.md.device-iphone-x .ios-left-edge .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title,
.md.device-iphone-x .ios-edges .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title,
.md.device-iphone-x .popup .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title,
.md.device-iphone-x .sheet-modal .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title,
.md.device-iphone-x .panel-left .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title,
.md.device-iphone-x .ios-left-edge .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-month:first-child .timeline-month-title,
.md.device-iphone-x .ios-edges .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-month:first-child .timeline-month-title,
.md.device-iphone-x .popup .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-month:first-child .timeline-month-title,
.md.device-iphone-x .sheet-modal .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-month:first-child .timeline-month-title,
.md.device-iphone-x .panel-left .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-month:first-child .timeline-month-title,
.md.device-iphone-x .ios-left-edge .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title + .timeline-month .timeline-month-title,
.md.device-iphone-x .ios-edges .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title + .timeline-month .timeline-month-title,
.md.device-iphone-x .popup .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title + .timeline-month .timeline-month-title,
.md.device-iphone-x .sheet-modal .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title + .timeline-month .timeline-month-title,
.md.device-iphone-x .panel-left .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title + .timeline-month .timeline-month-title {
left: -44px;
right: 0;
width: auto;
}
.md.device-iphone-x .ios-left-edge .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) > .timeline-item:first-child,
.md.device-iphone-x .ios-edges .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) > .timeline-item:first-child,
.md.device-iphone-x .popup .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) > .timeline-item:first-child,
.md.device-iphone-x .sheet-modal .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) > .timeline-item:first-child,
.md.device-iphone-x .panel-left .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) > .timeline-item:first-child,
.md.device-iphone-x .ios-left-edge .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-month:first-child .timeline-item:first-child,
.md.device-iphone-x .ios-edges .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-month:first-child .timeline-item:first-child,
.md.device-iphone-x .popup .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-month:first-child .timeline-item:first-child,
.md.device-iphone-x .sheet-modal .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-month:first-child .timeline-item:first-child,
.md.device-iphone-x .panel-left .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-month:first-child .timeline-item:first-child,
.md.device-iphone-x .ios-left-edge .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title + .timeline-month .timeline-item:first-child,
.md.device-iphone-x .ios-edges .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title + .timeline-month .timeline-item:first-child,
.md.device-iphone-x .popup .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title + .timeline-month .timeline-item:first-child,
.md.device-iphone-x .sheet-modal .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title + .timeline-month .timeline-item:first-child,
.md.device-iphone-x .panel-left .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title + .timeline-month .timeline-item:first-child,
.md.device-iphone-x .ios-left-edge .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title + .timeline-month .timeline-month-title + .timeline-item,
.md.device-iphone-x .ios-edges .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title + .timeline-month .timeline-month-title + .timeline-item,
.md.device-iphone-x .popup .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title + .timeline-month .timeline-month-title + .timeline-item,
.md.device-iphone-x .sheet-modal .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title + .timeline-month .timeline-month-title + .timeline-item,
.md.device-iphone-x .panel-left .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title + .timeline-month .timeline-month-title + .timeline-item {
overflow: visible;
}
.md.device-iphone-x .ios-left-edge .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) > .timeline-item:first-child .timeline-item-date,
.md.device-iphone-x .ios-edges .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) > .timeline-item:first-child .timeline-item-date,
.md.device-iphone-x .popup .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) > .timeline-item:first-child .timeline-item-date,
.md.device-iphone-x .sheet-modal .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) > .timeline-item:first-child .timeline-item-date,
.md.device-iphone-x .panel-left .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) > .timeline-item:first-child .timeline-item-date,
.md.device-iphone-x .ios-left-edge .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-month:first-child .timeline-item:first-child .timeline-item-date,
.md.device-iphone-x .ios-edges .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-month:first-child .timeline-item:first-child .timeline-item-date,
.md.device-iphone-x .popup .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-month:first-child .timeline-item:first-child .timeline-item-date,
.md.device-iphone-x .sheet-modal .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-month:first-child .timeline-item:first-child .timeline-item-date,
.md.device-iphone-x .panel-left .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-month:first-child .timeline-item:first-child .timeline-item-date,
.md.device-iphone-x .ios-left-edge .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title + .timeline-month .timeline-item:first-child .timeline-item-date,
.md.device-iphone-x .ios-edges .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title + .timeline-month .timeline-item:first-child .timeline-item-date,
.md.device-iphone-x .popup .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title + .timeline-month .timeline-item:first-child .timeline-item-date,
.md.device-iphone-x .sheet-modal .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title + .timeline-month .timeline-item:first-child .timeline-item-date,
.md.device-iphone-x .panel-left .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title + .timeline-month .timeline-item:first-child .timeline-item-date,
.md.device-iphone-x .ios-left-edge .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title + .timeline-month .timeline-month-title + .timeline-item .timeline-item-date,
.md.device-iphone-x .ios-edges .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title + .timeline-month .timeline-month-title + .timeline-item .timeline-item-date,
.md.device-iphone-x .popup .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title + .timeline-month .timeline-month-title + .timeline-item .timeline-item-date,
.md.device-iphone-x .sheet-modal .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title + .timeline-month .timeline-month-title + .timeline-item .timeline-item-date,
.md.device-iphone-x .panel-left .timeline-horizontal:not(.no-ios-edges):not(.no-ios-left-edge) .timeline-year:first-child .timeline-year-title + .timeline-month .timeline-month-title + .timeline-item .timeline-item-date {
width: auto;
padding-left: calc(12px + constant(safe-area-inset-left));
padding-left: calc(12px + env(safe-area-inset-left));
left: calc(0px - constant(safe-area-inset-left));
left: calc(0px - env(safe-area-inset-left));
right: 0;
}
.md.device-iphone-x .ios-left-edge .timeline:not(.no-ios-edges):not(.no-ios-left-edge):not(.timeline-horizontal),
.md.device-iphone-x .ios-edges .timeline:not(.no-ios-edges):not(.no-ios-left-edge):not(.timeline-horizontal),
.md.device-iphone-x .popup .timeline:not(.no-ios-edges):not(.no-ios-left-edge):not(.timeline-horizontal),
.md.device-iphone-x .sheet-modal .timeline:not(.no-ios-edges):not(.no-ios-left-edge):not(.timeline-horizontal),
.md.device-iphone-x .panel-left .timeline:not(.no-ios-edges):not(.no-ios-left-edge):not(.timeline-horizontal) {
padding-left: calc(16px + constant(safe-area-inset-left));
padding-left: calc(16px + env(safe-area-inset-left));
}
.md.device-iphone-x .ios-right-edge .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) .timeline-year:last-child .timeline-year-title,
.md.device-iphone-x .ios-edges .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) .timeline-year:last-child .timeline-year-title,
.md.device-iphone-x .popup .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) .timeline-year:last-child .timeline-year-title,
.md.device-iphone-x .sheet-modal .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) .timeline-year:last-child .timeline-year-title,
.md.device-iphone-x .panel-right .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) .timeline-year:last-child .timeline-year-title,
.md.device-iphone-x .ios-right-edge .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) .timeline-year:last-child .timeline-month:last-child .timeline-month-title,
.md.device-iphone-x .ios-edges .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) .timeline-year:last-child .timeline-month:last-child .timeline-month-title,
.md.device-iphone-x .popup .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) .timeline-year:last-child .timeline-month:last-child .timeline-month-title,
.md.device-iphone-x .sheet-modal .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) .timeline-year:last-child .timeline-month:last-child .timeline-month-title,
.md.device-iphone-x .panel-right .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) .timeline-year:last-child .timeline-month:last-child .timeline-month-title {
width: auto;
right: calc(0px - constant(safe-area-inset-right));
right: calc(0px - env(safe-area-inset-right));
}
.md.device-iphone-x .ios-right-edge .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) > .timeline-item:last-child,
.md.device-iphone-x .ios-edges .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) > .timeline-item:last-child,
.md.device-iphone-x .popup .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) > .timeline-item:last-child,
.md.device-iphone-x .sheet-modal .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) > .timeline-item:last-child,
.md.device-iphone-x .panel-right .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) > .timeline-item:last-child,
.md.device-iphone-x .ios-right-edge .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) .timeline-year:last-child .timeline-month:last-child .timeline-item:last-child,
.md.device-iphone-x .ios-edges .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) .timeline-year:last-child .timeline-month:last-child .timeline-item:last-child,
.md.device-iphone-x .popup .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) .timeline-year:last-child .timeline-month:last-child .timeline-item:last-child,
.md.device-iphone-x .sheet-modal .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) .timeline-year:last-child .timeline-month:last-child .timeline-item:last-child,
.md.device-iphone-x .panel-right .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) .timeline-year:last-child .timeline-month:last-child .timeline-item:last-child {
overflow: visible;
}
.md.device-iphone-x .ios-right-edge .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) > .timeline-item:last-child .timeline-item-date,
.md.device-iphone-x .ios-edges .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) > .timeline-item:last-child .timeline-item-date,
.md.device-iphone-x .popup .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) > .timeline-item:last-child .timeline-item-date,
.md.device-iphone-x .sheet-modal .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) > .timeline-item:last-child .timeline-item-date,
.md.device-iphone-x .panel-right .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) > .timeline-item:last-child .timeline-item-date,
.md.device-iphone-x .ios-right-edge .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) .timeline-year:last-child .timeline-month:last-child .timeline-item:last-child .timeline-item-date,
.md.device-iphone-x .ios-edges .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) .timeline-year:last-child .timeline-month:last-child .timeline-item:last-child .timeline-item-date,
.md.device-iphone-x .popup .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) .timeline-year:last-child .timeline-month:last-child .timeline-item:last-child .timeline-item-date,
.md.device-iphone-x .sheet-modal .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) .timeline-year:last-child .timeline-month:last-child .timeline-item:last-child .timeline-item-date,
.md.device-iphone-x .panel-right .timeline-horizontal:not(.no-ios-edges):not(.no-ios-right-edge) .timeline-year:last-child .timeline-month:last-child .timeline-item:last-child .timeline-item-date {
width: auto;
right: calc(0px - constant(safe-area-inset-right));
right: calc(0px - env(safe-area-inset-right));
left: 0;
}
.md.device-iphone-x .ios-right-edge .timeline:not(.no-ios-edges):not(.no-ios-right-edge):not(.timeline-horizontal),
.md.device-iphone-x .ios-edges .timeline:not(.no-ios-edges):not(.no-ios-right-edge):not(.timeline-horizontal),
.md.device-iphone-x .popup .timeline:not(.no-ios-edges):not(.no-ios-right-edge):not(.timeline-horizontal),
.md.device-iphone-x .sheet-modal .timeline:not(.no-ios-edges):not(.no-ios-right-edge):not(.timeline-horizontal),
.md.device-iphone-x .panel-right .timeline:not(.no-ios-edges):not(.no-ios-right-edge):not(.timeline-horizontal) {
padding-right: calc(16px + constant(safe-area-inset-right));
padding-right: calc(16px + env(safe-area-inset-right));
}
}
.md .theme-dark .timeline-item-inner {
background-color: rgba(255, 255, 255, 0.03);
}
.md .theme-dark .timeline-item-time {
color: rgba(255, 255, 255, 0.54);
}
.md .color-theme-red .timeline-item-date,
.md .color-theme-red .timeline-year-title,
.md .color-theme-red .timeline-month-title {
background: #f44336;
}
.md .color-theme-green .timeline-item-date,
.md .color-theme-green .timeline-year-title,
.md .color-theme-green .timeline-month-title {
background: #4caf50;
}
.md .color-theme-blue .timeline-item-date,
.md .color-theme-blue .timeline-year-title,
.md .color-theme-blue .timeline-month-title {
background: #2196f3;
}
.md .color-theme-pink .timeline-item-date,
.md .color-theme-pink .timeline-year-title,
.md .color-theme-pink .timeline-month-title {
background: #e91e63;
}
.md .color-theme-yellow .timeline-item-date,
.md .color-theme-yellow .timeline-year-title,
.md .color-theme-yellow .timeline-month-title {
background: #ffeb3b;
}
.md .color-theme-orange .timeline-item-date,
.md .color-theme-orange .timeline-year-title,
.md .color-theme-orange .timeline-month-title {
background: #ff9800;
}
.md .color-theme-gray .timeline-item-date,
.md .color-theme-gray .timeline-year-title,
.md .color-theme-gray .timeline-month-title {
background: #9e9e9e;
}
.md .color-theme-white .timeline-item-date,
.md .color-theme-white .timeline-year-title,
.md .color-theme-white .timeline-month-title {
background: #ffffff;
}
.md .color-theme-black .timeline-item-date,
.md .color-theme-black .timeline-year-title,
.md .color-theme-black .timeline-month-title {
background: #000000;
}
.md .timeline.color-theme-red .timeline-item-date,
.md .timeline.color-theme-red .timeline-year-title,
.md .timeline.color-theme-red .timeline-month-title {
background: #f44336;
}
.md .timeline.color-theme-green .timeline-item-date,
.md .timeline.color-theme-green .timeline-year-title,
.md .timeline.color-theme-green .timeline-month-title {
background: #4caf50;
}
.md .timeline.color-theme-blue .timeline-item-date,
.md .timeline.color-theme-blue .timeline-year-title,
.md .timeline.color-theme-blue .timeline-month-title {
background: #2196f3;
}
.md .timeline.color-theme-pink .timeline-item-date,
.md .timeline.color-theme-pink .timeline-year-title,
.md .timeline.color-theme-pink .timeline-month-title {
background: #e91e63;
}
.md .timeline.color-theme-yellow .timeline-item-date,
.md .timeline.color-theme-yellow .timeline-year-title,
.md .timeline.color-theme-yellow .timeline-month-title {
background: #ffeb3b;
}
.md .timeline.color-theme-orange .timeline-item-date,
.md .timeline.color-theme-orange .timeline-year-title,
.md .timeline.color-theme-orange .timeline-month-title {
background: #ff9800;
}
.md .timeline.color-theme-gray .timeline-item-date,
.md .timeline.color-theme-gray .timeline-year-title,
.md .timeline.color-theme-gray .timeline-month-title {
background: #9e9e9e;
}
.md .timeline.color-theme-white .timeline-item-date,
.md .timeline.color-theme-white .timeline-year-title,
.md .timeline.color-theme-white .timeline-month-title {
background: #ffffff;
}
.md .timeline.color-theme-black .timeline-item-date,
.md .timeline.color-theme-black .timeline-year-title,
.md .timeline.color-theme-black .timeline-month-title {
background: #000000;
}
/* === Tabs === */
.tabs .tab {
display: none;
}
.tabs .tab-active {
display: block;
}
.tabs-animated-wrap {
position: relative;
width: 100%;
overflow: hidden;
height: 100%;
}
.tabs-animated-wrap > .tabs {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
height: 100%;
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
}
.tabs-animated-wrap > .tabs > .tab {
width: 100%;
display: block;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
}
.tabs-animated-wrap.not-animated > .tabs {
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
}
.tabs-swipeable-wrap {
height: 100%;
}
.tabs-swipeable-wrap > .tabs {
height: 100%;
}
.tabs-swipeable-wrap > .tabs > .tab {
display: block;
}
.page > .tabs {
height: 100%;
}
/* === Panels === */
.panel-backdrop {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
opacity: 0;
z-index: 5999;
display: none;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.panel-backdrop.not-animated {
-webkit-transition-duration: 0ms !important;
transition-duration: 0ms !important;
}
.panel {
z-index: 1000;
display: none;
-webkit-box-sizing: border-box;
box-sizing: border-box;
position: absolute;
overflow: auto;
-webkit-overflow-scrolling: touch;
top: 0;
height: 100%;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
width: 260px;
background-color: #fff;
}
.panel.not-animated {
-webkit-transition-duration: 0ms !important;
transition-duration: 0ms !important;
}
.panel.panel-reveal.not-animated ~ .views,
.panel.panel-reveal.not-animated ~ .view {
-webkit-transition-duration: 0ms !important;
transition-duration: 0ms !important;
}
.panel-cover {
z-index: 6000;
}
.panel-left {
left: 0;
}
.panel-left.panel-cover {
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
}
.panel-right {
right: 0;
}
.panel-right.panel-cover {
-webkit-transform: translate3d(100%, 0, 0);
transform: translate3d(100%, 0, 0);
}
.panel-visible-by-breakpoint {
display: block;
-webkit-transform: translate3d(0, 0, 0) !important;
transform: translate3d(0, 0, 0) !important;
}
.panel-visible-by-breakpoint.panel-cover {
z-index: 5900;
}
html.with-panel .framework7-root > .views .page-content,
html.with-panel .framework7-root > .view .page-content {
overflow: hidden;
-webkit-overflow-scrolling: auto;
}
html.with-panel-left-cover .panel-backdrop,
html.with-panel-right-cover .panel-backdrop {
display: block;
opacity: 1;
}
html.with-panel-left-reveal .panel-backdrop,
html.with-panel-right-reveal .panel-backdrop,
html.with-panel-transitioning .panel-backdrop {
background: rgba(0, 0, 0, 0);
display: block;
opacity: 0;
}
html.with-panel-left-reveal .views,
html.with-panel-left-reveal .framework7-root > .view,
html.with-panel-left-reveal .panel-backdrop {
-webkit-transform: translate3d(260px, 0, 0);
transform: translate3d(260px, 0, 0);
}
html.with-panel-right-reveal .views,
html.with-panel-right-reveal .framework7-root > .view,
html.with-panel-right-reveal .panel-backdrop {
-webkit-transform: translate3d(-260px, 0, 0);
transform: translate3d(-260px, 0, 0);
}
html.with-panel-left-cover .panel-left {
-webkit-transform: translate3d(0px, 0, 0);
transform: translate3d(0px, 0, 0);
}
html.with-panel-right-cover .panel-right {
-webkit-transform: translate3d(0px, 0, 0);
transform: translate3d(0px, 0, 0);
}
html.with-statusbar.device-ios .panel,
html.with-statusbar.ios:not(.device-ios):not(.device-android) .panel {
top: 20px;
height: calc(100% - 20px);
}
html.with-statusbar.device-android .panel,
html.with-statusbar.md:not(.device-ios):not(.device-android) .panel {
top: 24px;
height: calc(100% - 24px);
}
html.with-statusbar.device-iphone-x .panel {
top: constant(safe-area-inset-top);
top: env(safe-area-inset-top);
height: calc(100% - constant(safe-area-inset-top));
height: calc(100% - env(safe-area-inset-top));
}
.md .panel-backdrop {
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
background: rgba(0, 0, 0, 0.2);
}
.md .panel {
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
}
.md .panel-visible {
display: block;
}
.md .panel-visible-by-breakpoint {
-webkit-box-shadow: none;
box-shadow: none;
}
.md.with-panel-left-cover .panel-cover,
.md.with-panel-right-cover .panel-cover {
-webkit-box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
}
.md.with-panel-left-reveal .views,
.md.with-panel-right-reveal .views,
.md.with-panel-left-reveal .framework7-root > .view,
.md.with-panel-right-reveal .framework7-root > .view {
-webkit-box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
}
.md.with-panel-left-reveal .views,
.md.with-panel-right-reveal .views,
.md.with-panel-transitioning .views,
.md.with-panel-left-reveal .framework7-root > .view,
.md.with-panel-right-reveal .framework7-root > .view,
.md.with-panel-transitioning .framework7-root > .view {
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
-webkit-transition-property: -webkit-transform, -webkit-box-shadow;
transition-property: -webkit-transform, -webkit-box-shadow;
transition-property: transform, box-shadow;
transition-property: transform, box-shadow, -webkit-transform, -webkit-box-shadow;
}
/* === Card === */
.cards-list > ul:before,
.card .list > ul:before {
display: none !important;
}
.cards-list > ul:after,
.card .list > ul:after {
display: none !important;
}
.card {
background: #fff;
position: relative;
border-radius: 4px;
font-size: 14px;
}
.card .list,
.card .block {
margin: 0;
}
.row:not(.no-gap) .col > .card {
margin-left: 0;
margin-right: 0;
}
.card-content {
position: relative;
}
.card-content-padding {
position: relative;
}
.card-content-padding > p:first-child {
margin-top: 0;
}
.card-content-padding > p:last-child {
margin-bottom: 0;
}
.card-header,
.card-footer {
min-height: 44px;
position: relative;
-webkit-box-sizing: border-box;
box-sizing: border-box;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.card-header[valign="top"],
.card-footer[valign="top"] {
-webkit-box-align: start;
-webkit-align-items: flex-start;
-ms-flex-align: start;
align-items: flex-start;
}
.card-header[valign="bottom"],
.card-footer[valign="bottom"] {
-webkit-box-align: end;
-webkit-align-items: flex-end;
-ms-flex-align: end;
align-items: flex-end;
}
.card-header a.link,
.card-footer a.link {
position: relative;
}
.card-header a.link i.icon,
.card-footer a.link i.icon {
display: block;
}
.card-header a.icon-only,
.card-footer a.icon-only {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
margin: 0;
}
.card-header {
border-radius: 4px 4px 0 0;
}
.card-header:after {
content: '';
position: absolute;
background-color: #e1e1e1;
display: block;
z-index: 15;
top: auto;
right: auto;
bottom: 0;
left: 0;
height: 1px;
width: 100%;
-webkit-transform-origin: 50% 100%;
transform-origin: 50% 100%;
}
html.device-pixel-ratio-2 .card-header:after {
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
html.device-pixel-ratio-3 .card-header:after {
-webkit-transform: scaleY(0.33);
transform: scaleY(0.33);
}
.card-header.no-hairline:after {
display: none !important;
}
.card-footer {
border-radius: 0 0 4px 4px;
}
.card-footer:before {
content: '';
position: absolute;
background-color: #e1e1e1;
display: block;
z-index: 15;
top: 0;
right: auto;
bottom: auto;
left: 0;
height: 1px;
width: 100%;
-webkit-transform-origin: 50% 0%;
transform-origin: 50% 0%;
}
html.device-pixel-ratio-2 .card-footer:before {
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
html.device-pixel-ratio-3 .card-footer:before {
-webkit-transform: scaleY(0.33);
transform: scaleY(0.33);
}
.card-footer.no-hairline:before {
display: none !important;
}
.md .cards-list ul,
.md .card .list ul {
background: none;
}
.md .card {
margin: 8px;
-webkit-box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
}
.md .card-outline {
-webkit-box-shadow: none;
box-shadow: none;
border: 1px solid rgba(0, 0, 0, 0.12);
}
.md .card-header a.link,
.md .card-footer a.link {
text-decoration: none;
text-align: center;
display: block;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background: none;
padding: 0 10px;
margin: 0;
white-space: nowrap;
text-overflow: ellipsis;
font-size: 14px;
position: relative;
overflow: hidden;
font-family: inherit;
cursor: pointer;
outline: 0;
-webkit-box-sizing: border-box;
box-sizing: border-box;
vertical-align: middle;
color: #2196f3;
border-radius: 4px;
line-height: 36px;
height: 36px;
text-transform: uppercase;
min-width: 64px;
padding: 0 8px;
border: none;
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
font-weight: 500;
letter-spacing: 0.03em;
}
input[type="submit"].md .card-header a.link,
input[type="submit"].md .card-footer a.link,
input[type="button"].md .card-header a.link,
input[type="button"].md .card-footer a.link {
width: 100%;
}
.md .card-header a.link.active-state,
.md .card-footer a.link.active-state {
background: rgba(0, 0, 0, 0.1);
}
.md .card-header a.icon-only,
.md .card-footer a.icon-only {
min-width: 48px;
}
.md .page-content > .card:last-child {
margin-bottom: 32px;
}
.md .card-content-padding {
padding: 16px;
}
.md .card-content-padding > .list,
.md .card-content-padding > .block {
margin: -16px;
}
.md .card-header,
.md .card-footer {
min-height: 48px;
padding: 4px 16px;
}
.md .card-header {
font-size: 16px;
}
.md .card-footer {
color: #757575;
}
.md .theme-dark .card {
background-color: rgba(255, 255, 255, 0.03);
}
.md .theme-dark .card-outline {
border-color: #282829;
}
.md .theme-dark .card-header:after {
background-color: rgba(255, 255, 255, 0.08);
}
.md .theme-dark .card-footer {
color: rgba(255, 255, 255, 0.54);
}
.md .theme-dark .card-footer:before {
background-color: rgba(255, 255, 255, 0.08);
}
@media (orientation: landscape) {
.md.device-iphone-x .ios-left-edge .card:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .ios-edges .card:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .popup .card:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .sheet-modal .card:not(.no-ios-edges):not(.no-ios-left-edge),
.md.device-iphone-x .panel-left .card:not(.no-ios-edges):not(.no-ios-left-edge) {
margin-left: calc(8px + constant(safe-area-inset-left));
margin-left: calc(8px + env(safe-area-inset-left));
}
.md.device-iphone-x .ios-right-edge .card:not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .ios-edges .card:not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .popup .card:not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .sheet-modal .card:not(.no-ios-edges):not(.no-ios-right-edge),
.md.device-iphone-x .panel-right .card:not(.no-ios-edges):not(.no-ios-right-edge) {
margin-right: calc(8px + constant(safe-area-inset-right));
margin-right: calc(8px + env(safe-area-inset-right));
}
}
.md .color-theme-red .card-header a.link,
.md .color-theme-red .card-footer a.link,
.md .card-header.color-theme-red a.link,
.md .card-footer.color-theme-red a.link {
color: #f44336;
}
.md .color-theme-green .card-header a.link,
.md .color-theme-green .card-footer a.link,
.md .card-header.color-theme-green a.link,
.md .card-footer.color-theme-green a.link {
color: #4caf50;
}
.md .color-theme-blue .card-header a.link,
.md .color-theme-blue .card-footer a.link,
.md .card-header.color-theme-blue a.link,
.md .card-footer.color-theme-blue a.link {
color: #2196f3;
}
.md .color-theme-pink .card-header a.link,
.md .color-theme-pink .card-footer a.link,
.md .card-header.color-theme-pink a.link,
.md .card-footer.color-theme-pink a.link {
color: #e91e63;
}
.md .color-theme-yellow .card-header a.link,
.md .color-theme-yellow .card-footer a.link,
.md .card-header.color-theme-yellow a.link,
.md .card-footer.color-theme-yellow a.link {
color: #ffeb3b;
}
.md .color-theme-orange .card-header a.link,
.md .color-theme-orange .card-footer a.link,
.md .card-header.color-theme-orange a.link,
.md .card-footer.color-theme-orange a.link {
color: #ff9800;
}
.md .color-theme-gray .card-header a.link,
.md .color-theme-gray .card-footer a.link,
.md .card-header.color-theme-gray a.link,
.md .card-footer.color-theme-gray a.link {
color: #9e9e9e;
}
.md .color-theme-white .card-header a.link,
.md .color-theme-white .card-footer a.link,
.md .card-header.color-theme-white a.link,
.md .card-footer.color-theme-white a.link {
color: #ffffff;
}
.md .color-theme-black .card-header a.link,
.md .color-theme-black .card-footer a.link,
.md .card-header.color-theme-black a.link,
.md .card-footer.color-theme-black a.link {
color: #000000;
}
.md .card-header a.link.color-red,
.md .card-footer a.link.color-red {
color: #f44336;
}
.md .card-header a.link.color-green,
.md .card-footer a.link.color-green {
color: #4caf50;
}
.md .card-header a.link.color-blue,
.md .card-footer a.link.color-blue {
color: #2196f3;
}
.md .card-header a.link.color-pink,
.md .card-footer a.link.color-pink {
color: #e91e63;
}
.md .card-header a.link.color-yellow,
.md .card-footer a.link.color-yellow {
color: #ffeb3b;
}
.md .card-header a.link.color-orange,
.md .card-footer a.link.color-orange {
color: #ff9800;
}
.md .card-header a.link.color-gray,
.md .card-footer a.link.color-gray {
color: #9e9e9e;
}
.md .card-header a.link.color-white,
.md .card-footer a.link.color-white {
color: #ffffff;
}
.md .card-header a.link.color-black,
.md .card-footer a.link.color-black {
color: #000000;
}
/* === Chips === */
.chip {
font-weight: normal;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-sizing: border-box;
box-sizing: border-box;
vertical-align: middle;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
margin: 2px 0;
}
.chip-media {
border-radius: 50%;
text-align: center;
color: #fff;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
}
.chip-media img {
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
border-radius: 50%;
display: block;
}
.chip-label {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
position: relative;
-webkit-flex-shrink: 1;
-ms-flex-negative: 1;
flex-shrink: 1;
min-width: 0;
}
.chip-delete {
text-align: center;
cursor: pointer;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
background-repeat: no-repeat;
}
.chip .chip-delete.active-state {
opacity: 1;
}
.md .chip {
font-size: 13px;
color: rgba(0, 0, 0, 0.87);
background: rgba(0, 0, 0, 0.12);
height: 32px;
line-height: 32px;
border-radius: 16px;
padding: 0 12px;
}
.md .chip-outline {
background: none;
border: 1px solid rgba(0, 0, 0, 0.12);
}
.md .chip-media {
width: 32px;
height: 32px;
vertical-align: top;
border-radius: 50%;
text-align: center;
line-height: 32px;
color: #fff;
font-size: 16px;
margin-left: -12px;
}
.md .chip-media + .chip-label {
margin-left: 8px;
}
.md .chip-label + .chip-delete {
margin-left: 4px;
}
.md .chip-delete {
width: 24px;
height: 24px;
line-height: 24px;
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20fill%3D'%23000'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%20width%3D'24'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M12%202C6.47%202%202%206.47%202%2012s4.47%2010%2010%2010%2010-4.47%2010-10S17.53%202%2012%202zm5%2013.59L15.59%2017%2012%2013.41%208.41%2017%207%2015.59%2010.59%2012%207%208.41%208.41%207%2012%2010.59%2015.59%207%2017%208.41%2013.41%2012%2017%2015.59z'%2F%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
background-position: center;
background-size: 20px 20px;
opacity: 0.54;
margin-right: -8px;
}
.md .theme-dark .chip {
background: #333;
color: rgba(255, 255, 255, 0.87);
}
.md .theme-dark .chip-outline {
background: none;
border-color: #333;
}
.md .theme-dark .chip-delete {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20fill%3D'%23fff'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%20width%3D'24'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M12%202C6.47%202%202%206.47%202%2012s4.47%2010%2010%2010%2010-4.47%2010-10S17.53%202%2012%202zm5%2013.59L15.59%2017%2012%2013.41%208.41%2017%207%2015.59%2010.59%2012%207%208.41%208.41%207%2012%2010.59%2015.59%207%2017%208.41%2013.41%2012%2017%2015.59z'%2F%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.md .chip.color-red {
background: #f44336;
color: #fff;
}
.md .chip.color-red.chip-outline {
background: none;
border-color: #f44336;
color: #f44336;
}
.md .chip.color-green {
background: #4caf50;
color: #fff;
}
.md .chip.color-green.chip-outline {
background: none;
border-color: #4caf50;
color: #4caf50;
}
.md .chip.color-blue {
background: #2196f3;
color: #fff;
}
.md .chip.color-blue.chip-outline {
background: none;
border-color: #2196f3;
color: #2196f3;
}
.md .chip.color-pink {
background: #e91e63;
color: #fff;
}
.md .chip.color-pink.chip-outline {
background: none;
border-color: #e91e63;
color: #e91e63;
}
.md .chip.color-yellow {
background: #ffeb3b;
color: #fff;
}
.md .chip.color-yellow.chip-outline {
background: none;
border-color: #ffeb3b;
color: #ffeb3b;
}
.md .chip.color-orange {
background: #ff9800;
color: #fff;
}
.md .chip.color-orange.chip-outline {
background: none;
border-color: #ff9800;
color: #ff9800;
}
.md .chip.color-gray {
background: #9e9e9e;
color: #fff;
}
.md .chip.color-gray.chip-outline {
background: none;
border-color: #9e9e9e;
color: #9e9e9e;
}
.md .chip.color-white {
background: #ffffff;
color: #fff;
}
.md .chip.color-white.chip-outline {
background: none;
border-color: #ffffff;
color: #ffffff;
}
.md .chip.color-black {
background: #000000;
color: #fff;
}
.md .chip.color-black.chip-outline {
background: none;
border-color: #000000;
color: #000000;
}
/* === Input === */
input[type="text"],
input[type="password"],
input[type="search"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="number"],
select,
textarea {
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border: none;
-webkit-box-shadow: none;
box-shadow: none;
border-radius: 0;
outline: 0;
display: block;
padding: 0;
margin: 0;
font-family: inherit;
background: none;
resize: none;
font-size: inherit;
color: inherit;
}
.textarea-resizable-shadow {
opacity: 0;
position: absolute;
z-index: -1000;
pointer-events: none;
left: -1000px;
top: -1000px;
visibility: hidden;
}
.list input[type="text"],
.list input[type="password"],
.list input[type="search"],
.list input[type="email"],
.list input[type="tel"],
.list input[type="url"],
.list input[type="date"],
.list input[type="datetime-local"],
.list input[type="time"],
.list input[type="number"],
.list select,
.list textarea {
width: 100%;
}
.list input[type="datetime-local"] {
max-width: 50vw;
}
.list input[type="date"],
.list input[type="datetime-local"] {
line-height: 44px;
}
.list textarea {
resize: none;
line-height: 1.4;
height: 100px;
}
.list .item-label,
.list .item-floating-label {
vertical-align: top;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
}
.list .item-input-wrap {
width: 100%;
-webkit-flex-shrink: 1;
-ms-flex-negative: 1;
flex-shrink: 1;
position: relative;
}
.input {
position: relative;
}
.input input,
.input select,
.input textarea {
width: 100%;
}
.input-clear-button {
opacity: 0;
pointer-events: none;
visibility: hidden;
-webkit-transition-duration: 100ms;
transition-duration: 100ms;
position: absolute;
top: 50%;
border-radius: 50%;
border: none;
padding: 0;
margin: 0;
outline: 0;
z-index: 1;
cursor: pointer;
background: none;
right: 0;
}
.input-clear-button:after {
content: '';
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
background-repeat: no-repeat;
background-position: center center;
}
.input-clear-button:before {
position: absolute;
content: '';
left: 50%;
top: 50%;
}
.input-with-value ~ .input-clear-button,
.item-input-with-value .input-clear-button,
.input-with-value .input-clear-button {
opacity: 1;
pointer-events: auto;
visibility: visible;
}
.input-dropdown-wrap,
.input-dropdown {
position: relative;
}
.input-dropdown-wrap:before,
.input-dropdown:before {
content: '';
pointer-events: none;
position: absolute;
top: 50%;
margin-top: -2px;
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 5px solid #727272;
right: 2px;
}
.input-dropdown-wrap select,
.input-dropdown select,
.input-dropdown-wrap input,
.input-dropdown input,
.input-dropdown-wrap textarea,
.input-dropdown textarea {
padding-right: 14px;
}
.md .list input[type="text"],
.md .list input[type="password"],
.md .list input[type="search"],
.md .list input[type="email"],
.md .list input[type="tel"],
.md .list input[type="url"],
.md .list input[type="date"],
.md .list input[type="datetime-local"],
.md .list input[type="time"],
.md .list input[type="number"],
.md .list select {
height: 36px;
color: #212121;
font-size: 16px;
}
.md .list input[type="text"]::-webkit-input-placeholder,
.md .list input[type="password"]::-webkit-input-placeholder,
.md .list input[type="search"]::-webkit-input-placeholder,
.md .list input[type="email"]::-webkit-input-placeholder,
.md .list input[type="tel"]::-webkit-input-placeholder,
.md .list input[type="url"]::-webkit-input-placeholder,
.md .list input[type="date"]::-webkit-input-placeholder,
.md .list input[type="datetime-local"]::-webkit-input-placeholder,
.md .list input[type="time"]::-webkit-input-placeholder,
.md .list input[type="number"]::-webkit-input-placeholder,
.md .list select::-webkit-input-placeholder {
color: rgba(0, 0, 0, 0.35);
}
.md .list input[type="text"]:-ms-input-placeholder,
.md .list input[type="password"]:-ms-input-placeholder,
.md .list input[type="search"]:-ms-input-placeholder,
.md .list input[type="email"]:-ms-input-placeholder,
.md .list input[type="tel"]:-ms-input-placeholder,
.md .list input[type="url"]:-ms-input-placeholder,
.md .list input[type="date"]:-ms-input-placeholder,
.md .list input[type="datetime-local"]:-ms-input-placeholder,
.md .list input[type="time"]:-ms-input-placeholder,
.md .list input[type="number"]:-ms-input-placeholder,
.md .list select:-ms-input-placeholder {
color: rgba(0, 0, 0, 0.35);
}
.md .list input[type="text"]::-ms-input-placeholder,
.md .list input[type="password"]::-ms-input-placeholder,
.md .list input[type="search"]::-ms-input-placeholder,
.md .list input[type="email"]::-ms-input-placeholder,
.md .list input[type="tel"]::-ms-input-placeholder,
.md .list input[type="url"]::-ms-input-placeholder,
.md .list input[type="date"]::-ms-input-placeholder,
.md .list input[type="datetime-local"]::-ms-input-placeholder,
.md .list input[type="time"]::-ms-input-placeholder,
.md .list input[type="number"]::-ms-input-placeholder,
.md .list select::-ms-input-placeholder {
color: rgba(0, 0, 0, 0.35);
}
.md .list input[type="text"]::placeholder,
.md .list input[type="password"]::placeholder,
.md .list input[type="search"]::placeholder,
.md .list input[type="email"]::placeholder,
.md .list input[type="tel"]::placeholder,
.md .list input[type="url"]::placeholder,
.md .list input[type="date"]::placeholder,
.md .list input[type="datetime-local"]::placeholder,
.md .list input[type="time"]::placeholder,
.md .list input[type="number"]::placeholder,
.md .list select::placeholder {
color: rgba(0, 0, 0, 0.35);
}
.md .list textarea {
color: #212121;
font-size: 16px;
padding-top: 7px;
padding-bottom: 7px;
}
.md .list textarea.resizable {
height: 36px;
}
.md .list textarea::-webkit-input-placeholder {
color: rgba(0, 0, 0, 0.35);
}
.md .list textarea:-ms-input-placeholder {
color: rgba(0, 0, 0, 0.35);
}
.md .list textarea::-ms-input-placeholder {
color: rgba(0, 0, 0, 0.35);
}
.md .list textarea::placeholder {
color: rgba(0, 0, 0, 0.35);
}
.md .item-input-wrap:after,
.md .input:after {
-webkit-transition-duration: 200ms;
transition-duration: 200ms;
}
.md .item-input-wrap {
min-height: 36px;
}
.md .item-input-wrap:after {
content: '';
position: absolute;
background-color: rgba(0, 0, 0, 0.12);
display: block;
z-index: 15;
top: auto;
right: auto;
bottom: 0;
left: 0;
height: 1px;
width: 100%;
-webkit-transform-origin: 50% 100%;
transform-origin: 50% 100%;
}
.md.device-pixel-ratio-2 .item-input-wrap:after {
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.md.device-pixel-ratio-3 .item-input-wrap:after {
-webkit-transform: scaleY(0.33);
transform: scaleY(0.33);
}
.md .input:after {
content: '';
position: absolute;
background-color: rgba(0, 0, 0, 0.12);
display: block;
z-index: 15;
top: auto;
right: auto;
bottom: 0;
left: 0;
height: 1px;
width: 100%;
-webkit-transform-origin: 50% 100%;
transform-origin: 50% 100%;
}
.md.device-pixel-ratio-2 .input:after {
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.md.device-pixel-ratio-3 .input:after {
-webkit-transform: scaleY(0.33);
transform: scaleY(0.33);
}
.md .item-label,
.md .item-floating-label {
font-size: 12px;
width: 100%;
color: rgba(0, 0, 0, 0.65);
-webkit-transition-duration: 200ms;
transition-duration: 200ms;
line-height: 13px;
-webkit-transition-property: color, -webkit-transform;
transition-property: color, -webkit-transform;
transition-property: transform, color;
transition-property: transform, color, -webkit-transform;
}
.md .item-floating-label {
-webkit-transform: scale(1.33333333) translateY(18px);
transform: scale(1.33333333) translateY(18px);
color: rgba(0, 0, 0, 0.35);
width: auto;
max-width: 75%;
pointer-events: none;
-webkit-transform-origin: left;
transform-origin: left;
}
.md .item-floating-label ~ .item-input-wrap input::-webkit-input-placeholder,
.md .item-floating-label ~ .item-input-wrap textarea::-webkit-input-placeholder {
color: transparent !important;
}
.md .item-floating-label ~ .item-input-wrap input:-ms-input-placeholder,
.md .item-floating-label ~ .item-input-wrap textarea:-ms-input-placeholder {
color: transparent !important;
}
.md .item-floating-label ~ .item-input-wrap input::-ms-input-placeholder,
.md .item-floating-label ~ .item-input-wrap textarea::-ms-input-placeholder {
color: transparent !important;
}
.md .item-floating-label ~ .item-input-wrap input::placeholder,
.md .item-floating-label ~ .item-input-wrap textarea::placeholder {
color: transparent !important;
}
.md .item-input-with-value .item-floating-label,
.md .item-input-focused .item-floating-label {
-webkit-transform: scale(1) translateY(0);
transform: scale(1) translateY(0);
}
.md .item-input-with-value .item-floating-label {
color: rgba(0, 0, 0, 0.65);
}
.md .item-input .item-media {
-webkit-align-self: flex-end;
-ms-flex-item-align: end;
align-self: flex-end;
}
.md .item-input .item-inner {
display: block;
}
.md .item-input .item-inner:after {
display: none !important;
}
.md .inline-labels .item-media,
.md .inline-label .item-media {
-webkit-align-self: flex-start;
-ms-flex-item-align: start;
align-self: flex-start;
padding-top: 14px;
}
.md .inline-labels .item-inner,
.md .inline-label .item-inner {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
.md .inline-labels .item-label,
.md .inline-label .item-label,
.md .inline-labels .item-floating-label,
.md .inline-label .item-floating-label {
font-size: 16px;
width: 30%;
line-height: 1.5;
-webkit-align-self: flex-start;
-ms-flex-item-align: start;
align-self: flex-start;
padding-top: 7px;
}
.md .inline-labels .item-label + .item-input-wrap,
.md .inline-label .item-label + .item-input-wrap,
.md .inline-labels .item-floating-label + .item-input-wrap,
.md .inline-label .item-floating-label + .item-input-wrap {
margin-left: 8px;
}
.md .item-input-with-error-message,
.md .item-input-with-info,
.md div.input-with-error-message,
.md div.input-with-info,
.md span.input-with-error-message,
.md span.input-with-info {
padding-bottom: 20px;
}
.md .item-input-error-message,
.md .item-input-info,
.md .input-error-message,
.md .input-info {
font-size: 12px;
line-height: 1.4;
position: absolute;
top: 100%;
margin-top: 4px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: block;
left: 0;
right: 16px;
}
.md .item-input-info,
.md .input-info {
color: rgba(0, 0, 0, 0.45);
}
.md .item-input-error-message,
.md .input-error-message {
color: #f44336;
display: none;
}
.md .item-input-focused .item-label,
.md .item-input-focused .item-floating-label {
color: #2196f3;
}
.md .item-input-focused .item-input-wrap:after,
.md .input-focused:after {
background: #2196f3;
}
.md .item-input-invalid .item-label,
.md .item-invalid .item-label,
.md .item-input-invalid .item-floating-label,
.md .item-invalid .item-floating-label {
color: #f44336;
}
.md .item-input-invalid .item-input-error-message,
.md .item-invalid .item-input-error-message,
.md .item-input-invalid .input-error-message,
.md .item-invalid .input-error-message {
display: block;
}
.md .item-input-invalid .item-input-info,
.md .item-invalid .item-input-info,
.md .item-input-invalid .input-info,
.md .item-invalid .input-info {
display: none;
}
.md .item-input-invalid .item-input-wrap:after,
.md .input-invalid:after {
background: #f44336;
}
.md .item-input-invalid .item-input-wrap:after,
.md .item-input-focused .item-input-wrap:after {
-webkit-transform: scaleY(2);
transform: scaleY(2);
}
.md .input-invalid:after,
.md .input-focused:after {
-webkit-transform: scaleY(2) !important;
transform: scaleY(2) !important;
}
.md .input-clear-button {
width: 24px;
height: 24px;
background: rgba(0, 0, 0, 0.12);
margin-top: -12px;
}
.md .input-clear-button:after {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20fill%3D'%23000'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%20width%3D'24'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M19%206.41L17.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z'%2F%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
background-size: 16px 16px;
opacity: 0.54;
}
.md .input-clear-button:before {
width: 48px;
height: 48px;
margin-left: -24px;
margin-top: -24px;
}
.md .item-input-wrap .input-clear-button {
bottom: 6px;
margin-top: 0;
top: auto;
}
.md .theme-dark input[type="text"],
.md .theme-dark input[type="password"],
.md .theme-dark input[type="search"],
.md .theme-dark input[type="email"],
.md .theme-dark input[type="tel"],
.md .theme-dark input[type="url"],
.md .theme-dark input[type="date"],
.md .theme-dark input[type="datetime-local"],
.md .theme-dark input[type="time"],
.md .theme-dark input[type="number"],
.md .theme-dark select,
.md .theme-dark textarea {
color: rgba(255, 255, 255, 0.87);
}
.md .theme-dark input[type="text"]::-webkit-input-placeholder,
.md .theme-dark input[type="password"]::-webkit-input-placeholder,
.md .theme-dark input[type="search"]::-webkit-input-placeholder,
.md .theme-dark input[type="email"]::-webkit-input-placeholder,
.md .theme-dark input[type="tel"]::-webkit-input-placeholder,
.md .theme-dark input[type="url"]::-webkit-input-placeholder,
.md .theme-dark input[type="date"]::-webkit-input-placeholder,
.md .theme-dark input[type="datetime-local"]::-webkit-input-placeholder,
.md .theme-dark input[type="time"]::-webkit-input-placeholder,
.md .theme-dark input[type="number"]::-webkit-input-placeholder,
.md .theme-dark select::-webkit-input-placeholder,
.md .theme-dark textarea::-webkit-input-placeholder {
color: rgba(255, 255, 255, 0.35);
}
.md .theme-dark input[type="text"]:-ms-input-placeholder,
.md .theme-dark input[type="password"]:-ms-input-placeholder,
.md .theme-dark input[type="search"]:-ms-input-placeholder,
.md .theme-dark input[type="email"]:-ms-input-placeholder,
.md .theme-dark input[type="tel"]:-ms-input-placeholder,
.md .theme-dark input[type="url"]:-ms-input-placeholder,
.md .theme-dark input[type="date"]:-ms-input-placeholder,
.md .theme-dark input[type="datetime-local"]:-ms-input-placeholder,
.md .theme-dark input[type="time"]:-ms-input-placeholder,
.md .theme-dark input[type="number"]:-ms-input-placeholder,
.md .theme-dark select:-ms-input-placeholder,
.md .theme-dark textarea:-ms-input-placeholder {
color: rgba(255, 255, 255, 0.35);
}
.md .theme-dark input[type="text"]::-ms-input-placeholder,
.md .theme-dark input[type="password"]::-ms-input-placeholder,
.md .theme-dark input[type="search"]::-ms-input-placeholder,
.md .theme-dark input[type="email"]::-ms-input-placeholder,
.md .theme-dark input[type="tel"]::-ms-input-placeholder,
.md .theme-dark input[type="url"]::-ms-input-placeholder,
.md .theme-dark input[type="date"]::-ms-input-placeholder,
.md .theme-dark input[type="datetime-local"]::-ms-input-placeholder,
.md .theme-dark input[type="time"]::-ms-input-placeholder,
.md .theme-dark input[type="number"]::-ms-input-placeholder,
.md .theme-dark select::-ms-input-placeholder,
.md .theme-dark textarea::-ms-input-placeholder {
color: rgba(255, 255, 255, 0.35);
}
.md .theme-dark input[type="text"]::placeholder,
.md .theme-dark input[type="password"]::placeholder,
.md .theme-dark input[type="search"]::placeholder,
.md .theme-dark input[type="email"]::placeholder,
.md .theme-dark input[type="tel"]::placeholder,
.md .theme-dark input[type="url"]::placeholder,
.md .theme-dark input[type="date"]::placeholder,
.md .theme-dark input[type="datetime-local"]::placeholder,
.md .theme-dark input[type="time"]::placeholder,
.md .theme-dark input[type="number"]::placeholder,
.md .theme-dark select::placeholder,
.md .theme-dark textarea::placeholder {
color: rgba(255, 255, 255, 0.35);
}
.md .theme-dark .item-input:not(.item-input-focused) .item-input-wrap:after,
.md .theme-dark .input:after {
background-color: rgba(255, 255, 255, 0.08);
}
.md .theme-dark .item-label,
.md .theme-dark .item-floating-label {
color: rgba(255, 255, 255, 0.54);
}
.md .theme-dark .item-floating-label {
color: rgba(255, 255, 255, 0.35);
}
.md .theme-dark .item-input-with-value .item-floating-label {
color: rgba(255, 255, 255, 0.54);
}
.md .theme-dark .input-clear-button {
background: #fff;
}
.md .color-theme-red .item-input-focused .item-label,
.md .color-theme-red .item-input-focused .item-floating-label {
color: #f44336;
}
.md .color-theme-red .item-input-focused .item-input-wrap:after,
.md .color-theme-red .input-after:after {
background: #f44336;
}
.md .color-theme-green .item-input-focused .item-label,
.md .color-theme-green .item-input-focused .item-floating-label {
color: #4caf50;
}
.md .color-theme-green .item-input-focused .item-input-wrap:after,
.md .color-theme-green .input-after:after {
background: #4caf50;
}
.md .color-theme-blue .item-input-focused .item-label,
.md .color-theme-blue .item-input-focused .item-floating-label {
color: #2196f3;
}
.md .color-theme-blue .item-input-focused .item-input-wrap:after,
.md .color-theme-blue .input-after:after {
background: #2196f3;
}
.md .color-theme-pink .item-input-focused .item-label,
.md .color-theme-pink .item-input-focused .item-floating-label {
color: #e91e63;
}
.md .color-theme-pink .item-input-focused .item-input-wrap:after,
.md .color-theme-pink .input-after:after {
background: #e91e63;
}
.md .color-theme-yellow .item-input-focused .item-label,
.md .color-theme-yellow .item-input-focused .item-floating-label {
color: #ffeb3b;
}
.md .color-theme-yellow .item-input-focused .item-input-wrap:after,
.md .color-theme-yellow .input-after:after {
background: #ffeb3b;
}
.md .color-theme-orange .item-input-focused .item-label,
.md .color-theme-orange .item-input-focused .item-floating-label {
color: #ff9800;
}
.md .color-theme-orange .item-input-focused .item-input-wrap:after,
.md .color-theme-orange .input-after:after {
background: #ff9800;
}
.md .color-theme-gray .item-input-focused .item-label,
.md .color-theme-gray .item-input-focused .item-floating-label {
color: #9e9e9e;
}
.md .color-theme-gray .item-input-focused .item-input-wrap:after,
.md .color-theme-gray .input-after:after {
background: #9e9e9e;
}
.md .color-theme-white .item-input-focused .item-label,
.md .color-theme-white .item-input-focused .item-floating-label {
color: #ffffff;
}
.md .color-theme-white .item-input-focused .item-input-wrap:after,
.md .color-theme-white .input-after:after {
background: #ffffff;
}
.md .color-theme-black .item-input-focused .item-label,
.md .color-theme-black .item-input-focused .item-floating-label {
color: #000000;
}
.md .color-theme-black .item-input-focused .item-input-wrap:after,
.md .color-theme-black .input-after:after {
background: #000000;
}
.md .item-input-focused.color-red .item-label,
.md .item-input-focused.color-red .item-floating-label {
color: #f44336;
}
.md .item-input-focused.color-red .item-input-wrap:after,
.md .input-after.color-red:after {
background: #f44336;
}
.md .item-input-focused.color-green .item-label,
.md .item-input-focused.color-green .item-floating-label {
color: #4caf50;
}
.md .item-input-focused.color-green .item-input-wrap:after,
.md .input-after.color-green:after {
background: #f44336;
}
.md .item-input-focused.color-blue .item-label,
.md .item-input-focused.color-blue .item-floating-label {
color: #2196f3;
}
.md .item-input-focused.color-blue .item-input-wrap:after,
.md .input-after.color-blue:after {
background: #f44336;
}
.md .item-input-focused.color-pink .item-label,
.md .item-input-focused.color-pink .item-floating-label {
color: #e91e63;
}
.md .item-input-focused.color-pink .item-input-wrap:after,
.md .input-after.color-pink:after {
background: #f44336;
}
.md .item-input-focused.color-yellow .item-label,
.md .item-input-focused.color-yellow .item-floating-label {
color: #ffeb3b;
}
.md .item-input-focused.color-yellow .item-input-wrap:after,
.md .input-after.color-yellow:after {
background: #f44336;
}
.md .item-input-focused.color-orange .item-label,
.md .item-input-focused.color-orange .item-floating-label {
color: #ff9800;
}
.md .item-input-focused.color-orange .item-input-wrap:after,
.md .input-after.color-orange:after {
background: #f44336;
}
.md .item-input-focused.color-gray .item-label,
.md .item-input-focused.color-gray .item-floating-label {
color: #9e9e9e;
}
.md .item-input-focused.color-gray .item-input-wrap:after,
.md .input-after.color-gray:after {
background: #f44336;
}
.md .item-input-focused.color-white .item-label,
.md .item-input-focused.color-white .item-floating-label {
color: #ffffff;
}
.md .item-input-focused.color-white .item-input-wrap:after,
.md .input-after.color-white:after {
background: #f44336;
}
.md .item-input-focused.color-black .item-label,
.md .item-input-focused.color-black .item-floating-label {
color: #000000;
}
.md .item-input-focused.color-black .item-input-wrap:after,
.md .input-after.color-black:after {
background: #f44336;
}
/* === Checkbox === */
.icon-checkbox,
.checkbox i {
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
}
.checkbox {
position: relative;
display: inline-block;
vertical-align: middle;
z-index: 1;
}
label.item-checkbox,
.checkbox {
cursor: pointer;
}
label.item-checkbox input[type="checkbox"],
.checkbox input[type="checkbox"],
label.item-checkbox input[type="radio"],
.checkbox input[type="radio"] {
display: none;
}
label.item-checkbox .icon-checkbox,
.checkbox .icon-checkbox {
-webkit-box-sizing: border-box;
box-sizing: border-box;
position: relative;
display: block;
}
label.item-checkbox .icon-checkbox:after,
.checkbox .icon-checkbox:after {
content: '';
position: absolute;
}
label.item-checkbox {
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
}
label.item-checkbox.active-state:after {
background-color: transparent;
}
label.item-checkbox.disabled,
.disabled label.item-checkbox {
opacity: 0.55;
pointer-events: none;
opacity: 0.55 !important;
pointer-events: none !important;
}
.md .icon-checkbox,
.md .checkbox i {
width: 18px;
height: 18px;
border-radius: 2px;
border: 2px solid #6d6d6d;
-webkit-transition-duration: 200ms;
transition-duration: 200ms;
background-color: transparent;
}
.md .icon-checkbox:after,
.md .checkbox i:after {
width: 18px;
height: 18px;
left: -2px;
top: -2px;
-webkit-transition-duration: 200ms;
transition-duration: 200ms;
opacity: 0;
background: no-repeat center;
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20fill%3D'%23ffffff'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M9%2016.17L4.83%2012l-1.42%201.41L9%2019%2021%207l-1.41-1.41z'%2F%3E%3C%2Fsvg%3E");
background-size: 100% auto;
}
.md label.item-checkbox input[type="checkbox"]:checked ~ .icon-checkbox,
.md label.item-checkbox input[type="checkbox"]:checked ~ * .icon-checkbox,
.md .checkbox input[type="checkbox"]:checked ~ i {
background-color: #2196f3;
border-color: #2196f3;
}
.md label.item-checkbox input[type="checkbox"]:checked ~ .icon-checkbox:after,
.md label.item-checkbox input[type="checkbox"]:checked ~ * .icon-checkbox:after,
.md .checkbox input[type="checkbox"]:checked ~ i:after {
opacity: 1;
}
.md label.item-checkbox {
position: relative;
overflow: hidden;
z-index: 0;
}
.md label.item-checkbox > .icon-checkbox {
margin-right: 38px;
}
.md label.item-checkbox .item-content .item-media,
.md label.item-checkbox.item-content .item-media {
-webkit-align-self: center;
-ms-flex-item-align: center;
align-self: center;
}
.md label.item-checkbox.active-state {
background-color: rgba(0, 0, 0, 0.1);
}
.md .theme-dark label.item-checkbox.active-state {
background-color: rgba(255, 255, 255, 0.05);
}
.md .theme-dark .icon-checkbox,
.md .theme-dark .checkbox i {
border-color: rgba(255, 255, 255, 0.54);
}
.md .color-theme-red label.item-checkbox input[type="checkbox"]:checked ~ .icon-checkbox,
.md .color-theme-red label.item-checkbox input[type="checkbox"]:checked ~ * .icon-checkbox,
.md .color-theme-red .checkbox input[type="checkbox"]:checked ~ i {
background-color: #f44336;
border-color: #f44336;
}
.md .color-theme-red .checkbox .ripple-wave {
background: rgba(244, 67, 54, 0.5);
}
.md .color-theme-green label.item-checkbox input[type="checkbox"]:checked ~ .icon-checkbox,
.md .color-theme-green label.item-checkbox input[type="checkbox"]:checked ~ * .icon-checkbox,
.md .color-theme-green .checkbox input[type="checkbox"]:checked ~ i {
background-color: #4caf50;
border-color: #4caf50;
}
.md .color-theme-green .checkbox .ripple-wave {
background: rgba(76, 175, 80, 0.5);
}
.md .color-theme-blue label.item-checkbox input[type="checkbox"]:checked ~ .icon-checkbox,
.md .color-theme-blue label.item-checkbox input[type="checkbox"]:checked ~ * .icon-checkbox,
.md .color-theme-blue .checkbox input[type="checkbox"]:checked ~ i {
background-color: #2196f3;
border-color: #2196f3;
}
.md .color-theme-blue .checkbox .ripple-wave {
background: rgba(33, 150, 243, 0.5);
}
.md .color-theme-pink label.item-checkbox input[type="checkbox"]:checked ~ .icon-checkbox,
.md .color-theme-pink label.item-checkbox input[type="checkbox"]:checked ~ * .icon-checkbox,
.md .color-theme-pink .checkbox input[type="checkbox"]:checked ~ i {
background-color: #e91e63;
border-color: #e91e63;
}
.md .color-theme-pink .checkbox .ripple-wave {
background: rgba(233, 30, 99, 0.5);
}
.md .color-theme-yellow label.item-checkbox input[type="checkbox"]:checked ~ .icon-checkbox,
.md .color-theme-yellow label.item-checkbox input[type="checkbox"]:checked ~ * .icon-checkbox,
.md .color-theme-yellow .checkbox input[type="checkbox"]:checked ~ i {
background-color: #ffeb3b;
border-color: #ffeb3b;
}
.md .color-theme-yellow .checkbox .ripple-wave {
background: rgba(255, 235, 59, 0.5);
}
.md .color-theme-orange label.item-checkbox input[type="checkbox"]:checked ~ .icon-checkbox,
.md .color-theme-orange label.item-checkbox input[type="checkbox"]:checked ~ * .icon-checkbox,
.md .color-theme-orange .checkbox input[type="checkbox"]:checked ~ i {
background-color: #ff9800;
border-color: #ff9800;
}
.md .color-theme-orange .checkbox .ripple-wave {
background: rgba(255, 152, 0, 0.5);
}
.md .color-theme-gray label.item-checkbox input[type="checkbox"]:checked ~ .icon-checkbox,
.md .color-theme-gray label.item-checkbox input[type="checkbox"]:checked ~ * .icon-checkbox,
.md .color-theme-gray .checkbox input[type="checkbox"]:checked ~ i {
background-color: #9e9e9e;
border-color: #9e9e9e;
}
.md .color-theme-gray .checkbox .ripple-wave {
background: rgba(158, 158, 158, 0.5);
}
.md .color-theme-white label.item-checkbox input[type="checkbox"]:checked ~ .icon-checkbox,
.md .color-theme-white label.item-checkbox input[type="checkbox"]:checked ~ * .icon-checkbox,
.md .color-theme-white .checkbox input[type="checkbox"]:checked ~ i {
background-color: #ffffff;
border-color: #ffffff;
}
.md .color-theme-white .checkbox .ripple-wave {
background: rgba(255, 255, 255, 0.5);
}
.md .color-theme-black label.item-checkbox input[type="checkbox"]:checked ~ .icon-checkbox,
.md .color-theme-black label.item-checkbox input[type="checkbox"]:checked ~ * .icon-checkbox,
.md .color-theme-black .checkbox input[type="checkbox"]:checked ~ i {
background-color: #000000;
border-color: #000000;
}
.md .color-theme-black .checkbox .ripple-wave {
background: rgba(0, 0, 0, 0.5);
}
.md label.item-checkbox.color-red input[type="checkbox"]:checked ~ .icon-checkbox,
.md label.item-checkbox.color-red input[type="checkbox"]:checked ~ * .icon-checkbox,
.md .checkbox.color-red input[type="checkbox"]:checked ~ i {
background-color: #f44336;
border-color: #f44336;
}
.md .checkbox.color-red .ripple-wave {
background: rgba(244, 67, 54, 0.5);
}
.md label.item-checkbox.color-green input[type="checkbox"]:checked ~ .icon-checkbox,
.md label.item-checkbox.color-green input[type="checkbox"]:checked ~ * .icon-checkbox,
.md .checkbox.color-green input[type="checkbox"]:checked ~ i {
background-color: #4caf50;
border-color: #4caf50;
}
.md .checkbox.color-green .ripple-wave {
background: rgba(76, 175, 80, 0.5);
}
.md label.item-checkbox.color-blue input[type="checkbox"]:checked ~ .icon-checkbox,
.md label.item-checkbox.color-blue input[type="checkbox"]:checked ~ * .icon-checkbox,
.md .checkbox.color-blue input[type="checkbox"]:checked ~ i {
background-color: #2196f3;
border-color: #2196f3;
}
.md .checkbox.color-blue .ripple-wave {
background: rgba(33, 150, 243, 0.5);
}
.md label.item-checkbox.color-pink input[type="checkbox"]:checked ~ .icon-checkbox,
.md label.item-checkbox.color-pink input[type="checkbox"]:checked ~ * .icon-checkbox,
.md .checkbox.color-pink input[type="checkbox"]:checked ~ i {
background-color: #e91e63;
border-color: #e91e63;
}
.md .checkbox.color-pink .ripple-wave {
background: rgba(233, 30, 99, 0.5);
}
.md label.item-checkbox.color-yellow input[type="checkbox"]:checked ~ .icon-checkbox,
.md label.item-checkbox.color-yellow input[type="checkbox"]:checked ~ * .icon-checkbox,
.md .checkbox.color-yellow input[type="checkbox"]:checked ~ i {
background-color: #ffeb3b;
border-color: #ffeb3b;
}
.md .checkbox.color-yellow .ripple-wave {
background: rgba(255, 235, 59, 0.5);
}
.md label.item-checkbox.color-orange input[type="checkbox"]:checked ~ .icon-checkbox,
.md label.item-checkbox.color-orange input[type="checkbox"]:checked ~ * .icon-checkbox,
.md .checkbox.color-orange input[type="checkbox"]:checked ~ i {
background-color: #ff9800;
border-color: #ff9800;
}
.md .checkbox.color-orange .ripple-wave {
background: rgba(255, 152, 0, 0.5);
}
.md label.item-checkbox.color-gray input[type="checkbox"]:checked ~ .icon-checkbox,
.md label.item-checkbox.color-gray input[type="checkbox"]:checked ~ * .icon-checkbox,
.md .checkbox.color-gray input[type="checkbox"]:checked ~ i {
background-color: #9e9e9e;
border-color: #9e9e9e;
}
.md .checkbox.color-gray .ripple-wave {
background: rgba(158, 158, 158, 0.5);
}
.md label.item-checkbox.color-white input[type="checkbox"]:checked ~ .icon-checkbox,
.md label.item-checkbox.color-white input[type="checkbox"]:checked ~ * .icon-checkbox,
.md .checkbox.color-white input[type="checkbox"]:checked ~ i {
background-color: #ffffff;
border-color: #ffffff;
}
.md .checkbox.color-white .ripple-wave {
background: rgba(255, 255, 255, 0.5);
}
.md label.item-checkbox.color-black input[type="checkbox"]:checked ~ .icon-checkbox,
.md label.item-checkbox.color-black input[type="checkbox"]:checked ~ * .icon-checkbox,
.md .checkbox.color-black input[type="checkbox"]:checked ~ i {
background-color: #000000;
border-color: #000000;
}
.md .checkbox.color-black .ripple-wave {
background: rgba(0, 0, 0, 0.5);
}
/* === Radio === */
.icon-radio {
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
}
.radio {
position: relative;
display: inline-block;
vertical-align: middle;
z-index: 1;
}
label.item-radio,
.radio {
cursor: pointer;
}
label.item-radio input[type="checkbox"],
.radio input[type="checkbox"],
label.item-radio input[type="radio"],
.radio input[type="radio"] {
display: none;
}
label.item-radio .icon-radio,
.radio .icon-radio {
-webkit-box-sizing: border-box;
box-sizing: border-box;
position: relative;
display: block;
}
label.item-radio .icon-radio:after,
.radio .icon-radio:after {
content: '';
position: absolute;
}
label.item-radio {
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
}
label.item-radio.active-state:after {
background-color: transparent;
}
label.item-radio.disabled,
.disabled label.item-radio {
opacity: 0.55;
pointer-events: none;
opacity: 0.55 !important;
pointer-events: none !important;
}
.md .icon-radio {
width: 20px;
height: 20px;
position: relative;
border-radius: 50%;
border: 2px solid #6d6d6d;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-transition-duration: 200ms;
transition-duration: 200ms;
display: block;
}
.md .icon-radio:after {
content: '';
position: absolute;
width: 10px;
height: 10px;
left: 50%;
top: 50%;
margin-left: -5px;
margin-top: -5px;
background-color: #2196f3;
border-radius: 50%;
-webkit-transform: scale(0);
transform: scale(0);
-webkit-transition-duration: 200ms;
transition-duration: 200ms;
}
.md label.item-radio input[type="radio"]:checked ~ .icon-radio,
.md label.item-radio input[type="radio"]:checked ~ * .icon-radio,
.md .radio input[type="radio"]:checked ~ .icon-radio {
border-color: #2196f3;
}
.md label.item-radio input[type="radio"]:checked ~ .icon-radio:after,
.md label.item-radio input[type="radio"]:checked ~ * .icon-radio:after,
.md .radio input[type="radio"]:checked ~ .icon-radio:after {
background-color: #2196f3;
-webkit-transform: scale(1);
transform: scale(1);
}
.md label.item-radio {
position: relative;
overflow: hidden;
z-index: 0;
}
.md label.item-radio > .icon-radio {
margin-right: 38px;
}
.md label.item-radio .item-content .item-media,
.md label.item-radio.item-content .item-media {
-webkit-align-self: center;
-ms-flex-item-align: center;
align-self: center;
}
.md label.item-radio.active-state {
background-color: rgba(0, 0, 0, 0.1);
}
.md .theme-dark label.item-radio.active-state {
background-color: rgba(255, 255, 255, 0.05);
}
.md .theme-dark .icon-radio {
border-color: rgba(255, 255, 255, 0.54);
}
.md .color-theme-red .icon-radio:after {
background-color: #f44336;
}
.md .color-theme-red label.item-radio input[type="radio"]:checked ~ .icon-radio,
.md .color-theme-red label.item-radio input[type="radio"]:checked ~ * .icon-radio,
.md .color-theme-red .radio input[type="radio"]:checked ~ .icon-radio {
border-color: #f44336;
}
.md .color-theme-red label.item-radio input[type="radio"]:checked ~ .icon-radio:after,
.md .color-theme-red label.item-radio input[type="radio"]:checked ~ * .icon-radio:after,
.md .color-theme-red .radio input[type="radio"]:checked ~ .icon-radio:after {
background-color: #f44336;
}
.md .color-theme-red .radio .ripple-wave {
background: rgba(244, 67, 54, 0.5);
}
.md .color-theme-green .icon-radio:after {
background-color: #4caf50;
}
.md .color-theme-green label.item-radio input[type="radio"]:checked ~ .icon-radio,
.md .color-theme-green label.item-radio input[type="radio"]:checked ~ * .icon-radio,
.md .color-theme-green .radio input[type="radio"]:checked ~ .icon-radio {
border-color: #4caf50;
}
.md .color-theme-green label.item-radio input[type="radio"]:checked ~ .icon-radio:after,
.md .color-theme-green label.item-radio input[type="radio"]:checked ~ * .icon-radio:after,
.md .color-theme-green .radio input[type="radio"]:checked ~ .icon-radio:after {
background-color: #4caf50;
}
.md .color-theme-green .radio .ripple-wave {
background: rgba(76, 175, 80, 0.5);
}
.md .color-theme-blue .icon-radio:after {
background-color: #2196f3;
}
.md .color-theme-blue label.item-radio input[type="radio"]:checked ~ .icon-radio,
.md .color-theme-blue label.item-radio input[type="radio"]:checked ~ * .icon-radio,
.md .color-theme-blue .radio input[type="radio"]:checked ~ .icon-radio {
border-color: #2196f3;
}
.md .color-theme-blue label.item-radio input[type="radio"]:checked ~ .icon-radio:after,
.md .color-theme-blue label.item-radio input[type="radio"]:checked ~ * .icon-radio:after,
.md .color-theme-blue .radio input[type="radio"]:checked ~ .icon-radio:after {
background-color: #2196f3;
}
.md .color-theme-blue .radio .ripple-wave {
background: rgba(33, 150, 243, 0.5);
}
.md .color-theme-pink .icon-radio:after {
background-color: #e91e63;
}
.md .color-theme-pink label.item-radio input[type="radio"]:checked ~ .icon-radio,
.md .color-theme-pink label.item-radio input[type="radio"]:checked ~ * .icon-radio,
.md .color-theme-pink .radio input[type="radio"]:checked ~ .icon-radio {
border-color: #e91e63;
}
.md .color-theme-pink label.item-radio input[type="radio"]:checked ~ .icon-radio:after,
.md .color-theme-pink label.item-radio input[type="radio"]:checked ~ * .icon-radio:after,
.md .color-theme-pink .radio input[type="radio"]:checked ~ .icon-radio:after {
background-color: #e91e63;
}
.md .color-theme-pink .radio .ripple-wave {
background: rgba(233, 30, 99, 0.5);
}
.md .color-theme-yellow .icon-radio:after {
background-color: #ffeb3b;
}
.md .color-theme-yellow label.item-radio input[type="radio"]:checked ~ .icon-radio,
.md .color-theme-yellow label.item-radio input[type="radio"]:checked ~ * .icon-radio,
.md .color-theme-yellow .radio input[type="radio"]:checked ~ .icon-radio {
border-color: #ffeb3b;
}
.md .color-theme-yellow label.item-radio input[type="radio"]:checked ~ .icon-radio:after,
.md .color-theme-yellow label.item-radio input[type="radio"]:checked ~ * .icon-radio:after,
.md .color-theme-yellow .radio input[type="radio"]:checked ~ .icon-radio:after {
background-color: #ffeb3b;
}
.md .color-theme-yellow .radio .ripple-wave {
background: rgba(255, 235, 59, 0.5);
}
.md .color-theme-orange .icon-radio:after {
background-color: #ff9800;
}
.md .color-theme-orange label.item-radio input[type="radio"]:checked ~ .icon-radio,
.md .color-theme-orange label.item-radio input[type="radio"]:checked ~ * .icon-radio,
.md .color-theme-orange .radio input[type="radio"]:checked ~ .icon-radio {
border-color: #ff9800;
}
.md .color-theme-orange label.item-radio input[type="radio"]:checked ~ .icon-radio:after,
.md .color-theme-orange label.item-radio input[type="radio"]:checked ~ * .icon-radio:after,
.md .color-theme-orange .radio input[type="radio"]:checked ~ .icon-radio:after {
background-color: #ff9800;
}
.md .color-theme-orange .radio .ripple-wave {
background: rgba(255, 152, 0, 0.5);
}
.md .color-theme-gray .icon-radio:after {
background-color: #9e9e9e;
}
.md .color-theme-gray label.item-radio input[type="radio"]:checked ~ .icon-radio,
.md .color-theme-gray label.item-radio input[type="radio"]:checked ~ * .icon-radio,
.md .color-theme-gray .radio input[type="radio"]:checked ~ .icon-radio {
border-color: #9e9e9e;
}
.md .color-theme-gray label.item-radio input[type="radio"]:checked ~ .icon-radio:after,
.md .color-theme-gray label.item-radio input[type="radio"]:checked ~ * .icon-radio:after,
.md .color-theme-gray .radio input[type="radio"]:checked ~ .icon-radio:after {
background-color: #9e9e9e;
}
.md .color-theme-gray .radio .ripple-wave {
background: rgba(158, 158, 158, 0.5);
}
.md .color-theme-white .icon-radio:after {
background-color: #ffffff;
}
.md .color-theme-white label.item-radio input[type="radio"]:checked ~ .icon-radio,
.md .color-theme-white label.item-radio input[type="radio"]:checked ~ * .icon-radio,
.md .color-theme-white .radio input[type="radio"]:checked ~ .icon-radio {
border-color: #ffffff;
}
.md .color-theme-white label.item-radio input[type="radio"]:checked ~ .icon-radio:after,
.md .color-theme-white label.item-radio input[type="radio"]:checked ~ * .icon-radio:after,
.md .color-theme-white .radio input[type="radio"]:checked ~ .icon-radio:after {
background-color: #ffffff;
}
.md .color-theme-white .radio .ripple-wave {
background: rgba(255, 255, 255, 0.5);
}
.md .color-theme-black .icon-radio:after {
background-color: #000000;
}
.md .color-theme-black label.item-radio input[type="radio"]:checked ~ .icon-radio,
.md .color-theme-black label.item-radio input[type="radio"]:checked ~ * .icon-radio,
.md .color-theme-black .radio input[type="radio"]:checked ~ .icon-radio {
border-color: #000000;
}
.md .color-theme-black label.item-radio input[type="radio"]:checked ~ .icon-radio:after,
.md .color-theme-black label.item-radio input[type="radio"]:checked ~ * .icon-radio:after,
.md .color-theme-black .radio input[type="radio"]:checked ~ .icon-radio:after {
background-color: #000000;
}
.md .color-theme-black .radio .ripple-wave {
background: rgba(0, 0, 0, 0.5);
}
.md .radio.color-red .icon-radio:after {
background-color: #f44336;
}
.md label.item-radio.color-red input[type="radio"]:checked ~ .icon-radio,
.md label.item-radio.color-red input[type="radio"]:checked ~ * .icon-radio,
.md .radio.color-red input[type="radio"]:checked ~ .icon-radio {
border-color: #f44336;
}
.md label.item-radio.color-red input[type="radio"]:checked ~ .icon-radio:after,
.md label.item-radio.color-red input[type="radio"]:checked ~ * .icon-radio:after,
.md .radio.color-red input[type="radio"]:checked ~ .icon-radio:after {
background-color: #f44336;
}
.md .radio.color-red .ripple-wave {
background: rgba(244, 67, 54, 0.5);
}
.md .radio.color-green .icon-radio:after {
background-color: #4caf50;
}
.md label.item-radio.color-green input[type="radio"]:checked ~ .icon-radio,
.md label.item-radio.color-green input[type="radio"]:checked ~ * .icon-radio,
.md .radio.color-green input[type="radio"]:checked ~ .icon-radio {
border-color: #4caf50;
}
.md label.item-radio.color-green input[type="radio"]:checked ~ .icon-radio:after,
.md label.item-radio.color-green input[type="radio"]:checked ~ * .icon-radio:after,
.md .radio.color-green input[type="radio"]:checked ~ .icon-radio:after {
background-color: #4caf50;
}
.md .radio.color-green .ripple-wave {
background: rgba(76, 175, 80, 0.5);
}
.md .radio.color-blue .icon-radio:after {
background-color: #2196f3;
}
.md label.item-radio.color-blue input[type="radio"]:checked ~ .icon-radio,
.md label.item-radio.color-blue input[type="radio"]:checked ~ * .icon-radio,
.md .radio.color-blue input[type="radio"]:checked ~ .icon-radio {
border-color: #2196f3;
}
.md label.item-radio.color-blue input[type="radio"]:checked ~ .icon-radio:after,
.md label.item-radio.color-blue input[type="radio"]:checked ~ * .icon-radio:after,
.md .radio.color-blue input[type="radio"]:checked ~ .icon-radio:after {
background-color: #2196f3;
}
.md .radio.color-blue .ripple-wave {
background: rgba(33, 150, 243, 0.5);
}
.md .radio.color-pink .icon-radio:after {
background-color: #e91e63;
}
.md label.item-radio.color-pink input[type="radio"]:checked ~ .icon-radio,
.md label.item-radio.color-pink input[type="radio"]:checked ~ * .icon-radio,
.md .radio.color-pink input[type="radio"]:checked ~ .icon-radio {
border-color: #e91e63;
}
.md label.item-radio.color-pink input[type="radio"]:checked ~ .icon-radio:after,
.md label.item-radio.color-pink input[type="radio"]:checked ~ * .icon-radio:after,
.md .radio.color-pink input[type="radio"]:checked ~ .icon-radio:after {
background-color: #e91e63;
}
.md .radio.color-pink .ripple-wave {
background: rgba(233, 30, 99, 0.5);
}
.md .radio.color-yellow .icon-radio:after {
background-color: #ffeb3b;
}
.md label.item-radio.color-yellow input[type="radio"]:checked ~ .icon-radio,
.md label.item-radio.color-yellow input[type="radio"]:checked ~ * .icon-radio,
.md .radio.color-yellow input[type="radio"]:checked ~ .icon-radio {
border-color: #ffeb3b;
}
.md label.item-radio.color-yellow input[type="radio"]:checked ~ .icon-radio:after,
.md label.item-radio.color-yellow input[type="radio"]:checked ~ * .icon-radio:after,
.md .radio.color-yellow input[type="radio"]:checked ~ .icon-radio:after {
background-color: #ffeb3b;
}
.md .radio.color-yellow .ripple-wave {
background: rgba(255, 235, 59, 0.5);
}
.md .radio.color-orange .icon-radio:after {
background-color: #ff9800;
}
.md label.item-radio.color-orange input[type="radio"]:checked ~ .icon-radio,
.md label.item-radio.color-orange input[type="radio"]:checked ~ * .icon-radio,
.md .radio.color-orange input[type="radio"]:checked ~ .icon-radio {
border-color: #ff9800;
}
.md label.item-radio.color-orange input[type="radio"]:checked ~ .icon-radio:after,
.md label.item-radio.color-orange input[type="radio"]:checked ~ * .icon-radio:after,
.md .radio.color-orange input[type="radio"]:checked ~ .icon-radio:after {
background-color: #ff9800;
}
.md .radio.color-orange .ripple-wave {
background: rgba(255, 152, 0, 0.5);
}
.md .radio.color-gray .icon-radio:after {
background-color: #9e9e9e;
}
.md label.item-radio.color-gray input[type="radio"]:checked ~ .icon-radio,
.md label.item-radio.color-gray input[type="radio"]:checked ~ * .icon-radio,
.md .radio.color-gray input[type="radio"]:checked ~ .icon-radio {
border-color: #9e9e9e;
}
.md label.item-radio.color-gray input[type="radio"]:checked ~ .icon-radio:after,
.md label.item-radio.color-gray input[type="radio"]:checked ~ * .icon-radio:after,
.md .radio.color-gray input[type="radio"]:checked ~ .icon-radio:after {
background-color: #9e9e9e;
}
.md .radio.color-gray .ripple-wave {
background: rgba(158, 158, 158, 0.5);
}
.md .radio.color-white .icon-radio:after {
background-color: #ffffff;
}
.md label.item-radio.color-white input[type="radio"]:checked ~ .icon-radio,
.md label.item-radio.color-white input[type="radio"]:checked ~ * .icon-radio,
.md .radio.color-white input[type="radio"]:checked ~ .icon-radio {
border-color: #ffffff;
}
.md label.item-radio.color-white input[type="radio"]:checked ~ .icon-radio:after,
.md label.item-radio.color-white input[type="radio"]:checked ~ * .icon-radio:after,
.md .radio.color-white input[type="radio"]:checked ~ .icon-radio:after {
background-color: #ffffff;
}
.md .radio.color-white .ripple-wave {
background: rgba(255, 255, 255, 0.5);
}
.md .radio.color-black .icon-radio:after {
background-color: #000000;
}
.md label.item-radio.color-black input[type="radio"]:checked ~ .icon-radio,
.md label.item-radio.color-black input[type="radio"]:checked ~ * .icon-radio,
.md .radio.color-black input[type="radio"]:checked ~ .icon-radio {
border-color: #000000;
}
.md label.item-radio.color-black input[type="radio"]:checked ~ .icon-radio:after,
.md label.item-radio.color-black input[type="radio"]:checked ~ * .icon-radio:after,
.md .radio.color-black input[type="radio"]:checked ~ .icon-radio:after {
background-color: #000000;
}
.md .radio.color-black .ripple-wave {
background: rgba(0, 0, 0, 0.5);
}
/* === Toggle === */
.toggle {
display: inline-block;
vertical-align: middle;
position: relative;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-align-self: center;
-ms-flex-item-align: center;
align-self: center;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.toggle input[type="checkbox"] {
display: none;
}
.toggle input[disabled] ~ .toggle-icon {
pointer-events: none;
}
.toggle-icon {
z-index: 0;
margin: 0;
padding: 0;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border: none;
position: relative;
-webkit-transition: 300ms;
transition: 300ms;
-webkit-box-sizing: border-box;
box-sizing: border-box;
display: block;
cursor: pointer;
}
.toggle-icon:before,
.toggle-icon:after {
content: '';
}
.toggle-icon:after {
background: #fff;
position: absolute;
z-index: 2;
-webkit-transform: translateX(0px);
transform: translateX(0px);
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
}
.md .toggle {
width: 36px;
height: 14px;
}
.md .toggle input[type="checkbox"]:checked + .toggle-icon {
background: rgba(33, 150, 243, 0.5);
}
.md .toggle input[type="checkbox"]:checked + .toggle-icon:after {
-webkit-transform: translateX(16px);
transform: translateX(16px);
background: #2196f3;
}
.md .toggle-icon {
width: 36px;
height: 14px;
border-radius: 14px;
background: #b0afaf;
}
.md .toggle-icon:after {
height: 20px;
width: 20px;
top: -3px;
-webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
border-radius: 10px;
left: 0;
}
.md .color-theme-red .toggle input[type="checkbox"]:checked + .toggle-icon {
background: rgba(244, 67, 54, 0.5);
}
.md .color-theme-red .toggle input[type="checkbox"]:checked + .toggle-icon:after {
background: #f44336;
}
.md .color-theme-green .toggle input[type="checkbox"]:checked + .toggle-icon {
background: rgba(76, 175, 80, 0.5);
}
.md .color-theme-green .toggle input[type="checkbox"]:checked + .toggle-icon:after {
background: #4caf50;
}
.md .color-theme-blue .toggle input[type="checkbox"]:checked + .toggle-icon {
background: rgba(33, 150, 243, 0.5);
}
.md .color-theme-blue .toggle input[type="checkbox"]:checked + .toggle-icon:after {
background: #2196f3;
}
.md .color-theme-pink .toggle input[type="checkbox"]:checked + .toggle-icon {
background: rgba(233, 30, 99, 0.5);
}
.md .color-theme-pink .toggle input[type="checkbox"]:checked + .toggle-icon:after {
background: #e91e63;
}
.md .color-theme-yellow .toggle input[type="checkbox"]:checked + .toggle-icon {
background: rgba(255, 235, 59, 0.5);
}
.md .color-theme-yellow .toggle input[type="checkbox"]:checked + .toggle-icon:after {
background: #ffeb3b;
}
.md .color-theme-orange .toggle input[type="checkbox"]:checked + .toggle-icon {
background: rgba(255, 152, 0, 0.5);
}
.md .color-theme-orange .toggle input[type="checkbox"]:checked + .toggle-icon:after {
background: #ff9800;
}
.md .color-theme-gray .toggle input[type="checkbox"]:checked + .toggle-icon {
background: rgba(158, 158, 158, 0.5);
}
.md .color-theme-gray .toggle input[type="checkbox"]:checked + .toggle-icon:after {
background: #9e9e9e;
}
.md .color-theme-white .toggle input[type="checkbox"]:checked + .toggle-icon {
background: rgba(255, 255, 255, 0.5);
}
.md .color-theme-white .toggle input[type="checkbox"]:checked + .toggle-icon:after {
background: #ffffff;
}
.md .color-theme-black .toggle input[type="checkbox"]:checked + .toggle-icon {
background: rgba(0, 0, 0, 0.5);
}
.md .color-theme-black .toggle input[type="checkbox"]:checked + .toggle-icon:after {
background: #000000;
}
.md .toggle.color-red input[type="checkbox"]:checked + .toggle-icon {
background: rgba(244, 67, 54, 0.5);
}
.md .toggle.color-red input[type="checkbox"]:checked + .toggle-icon:after {
background: #f44336;
}
.md .toggle.color-green input[type="checkbox"]:checked + .toggle-icon {
background: rgba(76, 175, 80, 0.5);
}
.md .toggle.color-green input[type="checkbox"]:checked + .toggle-icon:after {
background: #4caf50;
}
.md .toggle.color-blue input[type="checkbox"]:checked + .toggle-icon {
background: rgba(33, 150, 243, 0.5);
}
.md .toggle.color-blue input[type="checkbox"]:checked + .toggle-icon:after {
background: #2196f3;
}
.md .toggle.color-pink input[type="checkbox"]:checked + .toggle-icon {
background: rgba(233, 30, 99, 0.5);
}
.md .toggle.color-pink input[type="checkbox"]:checked + .toggle-icon:after {
background: #e91e63;
}
.md .toggle.color-yellow input[type="checkbox"]:checked + .toggle-icon {
background: rgba(255, 235, 59, 0.5);
}
.md .toggle.color-yellow input[type="checkbox"]:checked + .toggle-icon:after {
background: #ffeb3b;
}
.md .toggle.color-orange input[type="checkbox"]:checked + .toggle-icon {
background: rgba(255, 152, 0, 0.5);
}
.md .toggle.color-orange input[type="checkbox"]:checked + .toggle-icon:after {
background: #ff9800;
}
.md .toggle.color-gray input[type="checkbox"]:checked + .toggle-icon {
background: rgba(158, 158, 158, 0.5);
}
.md .toggle.color-gray input[type="checkbox"]:checked + .toggle-icon:after {
background: #9e9e9e;
}
.md .toggle.color-white input[type="checkbox"]:checked + .toggle-icon {
background: rgba(255, 255, 255, 0.5);
}
.md .toggle.color-white input[type="checkbox"]:checked + .toggle-icon:after {
background: #ffffff;
}
.md .toggle.color-black input[type="checkbox"]:checked + .toggle-icon {
background: rgba(0, 0, 0, 0.5);
}
.md .toggle.color-black input[type="checkbox"]:checked + .toggle-icon:after {
background: #000000;
}
/* === Range Slider === */
.range-slider {
display: block;
width: 100%;
position: relative;
-webkit-align-self: center;
-ms-flex-item-align: center;
align-self: center;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.range-slider input[type="range"] {
display: none;
}
.range-bar {
position: absolute;
left: 0;
top: 50%;
width: 100%;
overflow: hidden;
}
.range-bar-active {
position: absolute;
left: 0;
top: 0;
height: 100%;
}
.range-knob-wrap {
z-index: 20;
position: absolute;
top: 50%;
left: 0;
}
.range-knob {
-webkit-box-sizing: border-box;
box-sizing: border-box;
border-radius: 50%;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: 1;
}
.range-knob:after {
content: '';
position: absolute;
left: 50%;
top: 50%;
width: 44px;
height: 44px;
margin-left: -22px;
margin-top: -22px;
}
.range-knob-label {
position: absolute;
left: 50%;
bottom: 100%;
text-align: center;
-webkit-transition-duration: 120ms;
transition-duration: 120ms;
-webkit-transition-property: -webkit-transform;
transition-property: -webkit-transform;
transition-property: transform;
transition-property: transform, -webkit-transform;
-webkit-transform: translateY(100%) scale(0);
transform: translateY(100%) scale(0);
}
.range-knob-active-state .range-knob-label {
-webkit-transform: translateY(0%) scale(1);
transform: translateY(0%) scale(1);
}
.md .range-slider {
height: 20px;
}
.md .range-bar {
background: #b9b9b9;
height: 2px;
margin-top: -1px;
}
.md .range-bar-active {
background: #2196f3;
}
.md .range-knob-wrap {
height: 12px;
width: 12px;
margin-top: -6px;
margin-left: -6px;
}
.md .range-knob {
background: #2196f3;
-webkit-transition-duration: 200ms;
transition-duration: 200ms;
-webkit-transition-property: background-color, -webkit-transform;
transition-property: background-color, -webkit-transform;
transition-property: transform, background-color;
transition-property: transform, background-color, -webkit-transform;
}
.md .range-knob-active-state .range-knob {
-webkit-transform: scale(1.5);
transform: scale(1.5);
}
.md .range-slider-min:not(.range-slider-dual) .range-knob {
background: #fff !important;
border: 2px solid #b9b9b9;
}
.md .range-knob-label {
width: 26px;
height: 26px;
margin-left: -13px;
margin-bottom: 8px;
background: #2196f3;
color: #fff;
font-size: 10px;
border-radius: 50%;
line-height: 26px;
}
.md .range-knob-label:before {
content: '';
left: 50%;
top: 0px;
margin-left: -13px;
position: absolute;
z-index: -1;
width: 26px;
height: 26px;
background: #2196f3;
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
border-radius: 50% 50% 50% 0;
}
.md .range-knob-active-state .range-knob-label {
-webkit-transform: translateY(0%) scale(1);
transform: translateY(0%) scale(1);
}
.md .range-slider-label .range-knob-active-state .range-knob {
-webkit-transform: scale(0);
transform: scale(0);
}
.md .color-theme-red .range-slider .range-bar-active,
.md .color-theme-red .range-slider .range-knob,
.md .color-theme-red .range-slider .range-knob-label,
.md .color-theme-red .range-slider .range-knob-label:before {
background-color: #f44336;
}
.md .color-theme-green .range-slider .range-bar-active,
.md .color-theme-green .range-slider .range-knob,
.md .color-theme-green .range-slider .range-knob-label,
.md .color-theme-green .range-slider .range-knob-label:before {
background-color: #4caf50;
}
.md .color-theme-blue .range-slider .range-bar-active,
.md .color-theme-blue .range-slider .range-knob,
.md .color-theme-blue .range-slider .range-knob-label,
.md .color-theme-blue .range-slider .range-knob-label:before {
background-color: #2196f3;
}
.md .color-theme-pink .range-slider .range-bar-active,
.md .color-theme-pink .range-slider .range-knob,
.md .color-theme-pink .range-slider .range-knob-label,
.md .color-theme-pink .range-slider .range-knob-label:before {
background-color: #e91e63;
}
.md .color-theme-yellow .range-slider .range-bar-active,
.md .color-theme-yellow .range-slider .range-knob,
.md .color-theme-yellow .range-slider .range-knob-label,
.md .color-theme-yellow .range-slider .range-knob-label:before {
background-color: #ffeb3b;
}
.md .color-theme-orange .range-slider .range-bar-active,
.md .color-theme-orange .range-slider .range-knob,
.md .color-theme-orange .range-slider .range-knob-label,
.md .color-theme-orange .range-slider .range-knob-label:before {
background-color: #ff9800;
}
.md .color-theme-gray .range-slider .range-bar-active,
.md .color-theme-gray .range-slider .range-knob,
.md .color-theme-gray .range-slider .range-knob-label,
.md .color-theme-gray .range-slider .range-knob-label:before {
background-color: #9e9e9e;
}
.md .color-theme-white .range-slider .range-bar-active,
.md .color-theme-white .range-slider .range-knob,
.md .color-theme-white .range-slider .range-knob-label,
.md .color-theme-white .range-slider .range-knob-label:before {
background-color: #ffffff;
}
.md .color-theme-black .range-slider .range-bar-active,
.md .color-theme-black .range-slider .range-knob,
.md .color-theme-black .range-slider .range-knob-label,
.md .color-theme-black .range-slider .range-knob-label:before {
background-color: #000000;
}
.md .range-slider.color-red .range-bar-active,
.md .range-slider.color-red .range-knob,
.md .range-slider.color-red .range-knob-label,
.md .range-slider.color-red .range-knob-label:before {
background-color: #f44336;
}
.md .range-slider.color-green .range-bar-active,
.md .range-slider.color-green .range-knob,
.md .range-slider.color-green .range-knob-label,
.md .range-slider.color-green .range-knob-label:before {
background-color: #4caf50;
}
.md .range-slider.color-blue .range-bar-active,
.md .range-slider.color-blue .range-knob,
.md .range-slider.color-blue .range-knob-label,
.md .range-slider.color-blue .range-knob-label:before {
background-color: #2196f3;
}
.md .range-slider.color-pink .range-bar-active,
.md .range-slider.color-pink .range-knob,
.md .range-slider.color-pink .range-knob-label,
.md .range-slider.color-pink .range-knob-label:before {
background-color: #e91e63;
}
.md .range-slider.color-yellow .range-bar-active,
.md .range-slider.color-yellow .range-knob,
.md .range-slider.color-yellow .range-knob-label,
.md .range-slider.color-yellow .range-knob-label:before {
background-color: #ffeb3b;
}
.md .range-slider.color-orange .range-bar-active,
.md .range-slider.color-orange .range-knob,
.md .range-slider.color-orange .range-knob-label,
.md .range-slider.color-orange .range-knob-label:before {
background-color: #ff9800;
}
.md .range-slider.color-gray .range-bar-active,
.md .range-slider.color-gray .range-knob,
.md .range-slider.color-gray .range-knob-label,
.md .range-slider.color-gray .range-knob-label:before {
background-color: #9e9e9e;
}
.md .range-slider.color-white .range-bar-active,
.md .range-slider.color-white .range-knob,
.md .range-slider.color-white .range-knob-label,
.md .range-slider.color-white .range-knob-label:before {
background-color: #ffffff;
}
.md .range-slider.color-black .range-bar-active,
.md .range-slider.color-black .range-knob,
.md .range-slider.color-black .range-knob-label,
.md .range-slider.color-black .range-knob-label:before {
background-color: #000000;
}
/* === Stepper === */
.stepper {
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-align: stretch;
-webkit-align-items: stretch;
-ms-flex-align: stretch;
align-items: stretch;
}
.stepper-button,
.stepper-button-minus,
.stepper-button-plus {
text-align: center;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-align-content: center;
-ms-flex-line-pack: center;
align-content: center;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
-webkit-box-sizing: border-box;
box-sizing: border-box;
position: relative;
cursor: pointer;
}
.stepper-button .icon,
.stepper-button-minus .icon,
.stepper-button-plus .icon {
pointer-events: none;
}
.stepper-value {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-content: center;
-ms-flex-line-pack: center;
align-content: center;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
}
.stepper-input-wrap,
.stepper-value {
-webkit-flex-shrink: 1;
-ms-flex-negative: 1;
flex-shrink: 1;
text-align: center;
}
.stepper-button-plus,
.stepper-button-minus {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.stepper-button-plus:after,
.stepper-button-minus:after,
.stepper-button-plus:before,
.stepper-button-minus:before {
content: '';
position: absolute;
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
.stepper-button-plus:after,
.stepper-button-minus:after {
width: 15px;
height: 2px;
}
.stepper-button-plus:before {
height: 15px;
width: 2px;
}
.stepper .stepper-input-wrap input,
.stepper .stepper-value {
width: 45px;
}
.md .stepper {
height: 36px;
}
.md .stepper-button,
.md .stepper-button-minus,
.md .stepper-button-plus {
border: 2px solid #2196f3;
color: #2196f3;
line-height: 34px;
height: 36px;
width: 40px;
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
overflow: hidden;
}
.md .stepper-button + .stepper-button,
.md .stepper-button-minus + .stepper-button,
.md .stepper-button-plus + .stepper-button,
.md .stepper-button + .stepper-button-minus,
.md .stepper-button-minus + .stepper-button-minus,
.md .stepper-button-plus + .stepper-button-minus,
.md .stepper-button + .stepper-button-plus,
.md .stepper-button-minus + .stepper-button-plus,
.md .stepper-button-plus + .stepper-button-plus {
border-left: none;
}
.md .stepper-button.active-state,
.md .stepper-button-minus.active-state,
.md .stepper-button-plus.active-state {
background: rgba(0, 0, 0, 0.1);
}
.md .stepper-button:first-child,
.md .stepper-button-minus:first-child,
.md .stepper-button-plus:first-child {
border-radius: 4px 0 0 4px;
}
.md .stepper-button:last-child,
.md .stepper-button-minus:last-child,
.md .stepper-button-plus:last-child {
border-radius: 0 4px 4px 0;
}
.md .stepper-button-plus:after,
.md .stepper-button-minus:after,
.md .stepper-button-plus:before,
.md .stepper-button-minus:before {
background: #2196f3;
}
.md .stepper-value,
.md .stepper-input-wrap {
border-top: 2px solid #2196f3;
border-bottom: 2px solid #2196f3;
}
.md .stepper .stepper-value,
.md .stepper .stepper-input-wrap input {
color: #2196f3;
font-size: 14px;
font-weight: 500;
text-align: center;
}
.md .stepper .stepper-input-wrap input {
height: 100%;
}
.md .stepper-fill .stepper-button,
.md .stepper-fill-md .stepper-button,
.md .stepper-fill .stepper-button-minus,
.md .stepper-fill-md .stepper-button-minus,
.md .stepper-fill .stepper-button-plus,
.md .stepper-fill-md .stepper-button-plus {
background-color: #2196f3;
color: #fff;
border: none;
line-height: 36px;
}
.md .stepper-fill .stepper-button.active-state,
.md .stepper-fill-md .stepper-button.active-state,
.md .stepper-fill .stepper-button-minus.active-state,
.md .stepper-fill-md .stepper-button-minus.active-state,
.md .stepper-fill .stepper-button-plus.active-state,
.md .stepper-fill-md .stepper-button-plus.active-state {
background: #0c82df;
}
.md .stepper-fill .stepper-button:after,
.md .stepper-fill-md .stepper-button:after,
.md .stepper-fill .stepper-button-minus:after,
.md .stepper-fill-md .stepper-button-minus:after,
.md .stepper-fill .stepper-button-plus:after,
.md .stepper-fill-md .stepper-button-plus:after,
.md .stepper-fill .stepper-button:before,
.md .stepper-fill-md .stepper-button:before,
.md .stepper-fill .stepper-button-minus:before,
.md .stepper-fill-md .stepper-button-minus:before,
.md .stepper-fill .stepper-button-plus:before,
.md .stepper-fill-md .stepper-button-plus:before {
background: #fff;
}
.md .stepper-fill .stepper-button + .stepper-button,
.md .stepper-fill-md .stepper-button + .stepper-button,
.md .stepper-fill .stepper-button-minus + .stepper-button-plus,
.md .stepper-fill-md .stepper-button-minus + .stepper-button-plus {
border-left: 1px solid rgba(0, 0, 0, 0.1);
}
.md .stepper-fill.stepper-big .stepper-button,
.md .stepper-fill-md.stepper-big .stepper-button,
.md .stepper-fill.stepper-big-md .stepper-button,
.md .stepper-fill-md.stepper-big-md .stepper-button,
.md .stepper-fill.stepper-big .stepper-button-minus,
.md .stepper-fill-md.stepper-big .stepper-button-minus,
.md .stepper-fill.stepper-big-md .stepper-button-minus,
.md .stepper-fill-md.stepper-big-md .stepper-button-minus,
.md .stepper-fill.stepper-big .stepper-button-plus,
.md .stepper-fill-md.stepper-big .stepper-button-plus,
.md .stepper-fill.stepper-big-md .stepper-button-plus,
.md .stepper-fill-md.stepper-big-md .stepper-button-plus {
line-height: 48px;
}
.md .stepper-fill.stepper-small .stepper-button,
.md .stepper-fill-md.stepper-small .stepper-button,
.md .stepper-fill.stepper-small-md .stepper-button,
.md .stepper-fill-md.stepper-small-md .stepper-button,
.md .stepper-fill.stepper-small .stepper-button-minus,
.md .stepper-fill-md.stepper-small .stepper-button-minus,
.md .stepper-fill.stepper-small-md .stepper-button-minus,
.md .stepper-fill-md.stepper-small-md .stepper-button-minus,
.md .stepper-fill.stepper-small .stepper-button-plus,
.md .stepper-fill-md.stepper-small .stepper-button-plus,
.md .stepper-fill.stepper-small-md .stepper-button-plus,
.md .stepper-fill-md.stepper-small-md .stepper-button-plus {
line-height: 28px;
}
.md .stepper-small,
.md .stepper-small-md {
height: 28px;
}
.md .stepper-small .stepper-button,
.md .stepper-small-md .stepper-button,
.md .stepper-small .stepper-button-minus,
.md .stepper-small-md .stepper-button-minus,
.md .stepper-small .stepper-button-plus,
.md .stepper-small-md .stepper-button-plus {
height: 28px;
line-height: 24px;
}
.md .stepper-small .stepper-button,
.md .stepper-small-md .stepper-button,
.md .stepper-small .stepper-button-minus,
.md .stepper-small-md .stepper-button-minus,
.md .stepper-small .stepper-button-plus,
.md .stepper-small-md .stepper-button-plus,
.md .stepper-small .stepper-input-wrap,
.md .stepper-small-md .stepper-input-wrap,
.md .stepper-small .stepper-value,
.md .stepper-small-md .stepper-value {
border-width: 2px;
}
.md .stepper-big,
.md .stepper-big-md {
height: 48px;
}
.md .stepper-big .stepper-button,
.md .stepper-big-md .stepper-button,
.md .stepper-big .stepper-button-minus,
.md .stepper-big-md .stepper-button-minus,
.md .stepper-big .stepper-button-plus,
.md .stepper-big-md .stepper-button-plus {
height: 48px;
line-height: 46px;
}
.md .stepper-big .stepper-button:first-child,
.md .stepper-big-md .stepper-button:first-child,
.md .stepper-big .stepper-button-minus:first-child,
.md .stepper-big-md .stepper-button-minus:first-child,
.md .stepper-big .stepper-button-plus:first-child,
.md .stepper-big-md .stepper-button-plus:first-child {
border-radius: 4px 0 0 4px;
}
.md .stepper-big .stepper-button:last-child,
.md .stepper-big-md .stepper-button:last-child,
.md .stepper-big .stepper-button-minus:last-child,
.md .stepper-big-md .stepper-button-minus:last-child,
.md .stepper-big .stepper-button-plus:last-child,
.md .stepper-big-md .stepper-button-plus:last-child {
border-radius: 0 4px 4px 0;
}
.md .stepper-round .stepper-button:first-child,
.md .stepper-round-md .stepper-button:first-child,
.md .stepper-round .stepper-button-minus:first-child,
.md .stepper-round-md .stepper-button-minus:first-child,
.md .stepper-round .stepper-button-plus:first-child,
.md .stepper-round-md .stepper-button-plus:first-child {
border-radius: 36px 0 0 36px;
}
.md .stepper-round .stepper-button:last-child,
.md .stepper-round-md .stepper-button:last-child,
.md .stepper-round .stepper-button-minus:last-child,
.md .stepper-round-md .stepper-button-minus:last-child,
.md .stepper-round .stepper-button-plus:last-child,
.md .stepper-round-md .stepper-button-plus:last-child {
border-radius: 0 36px 36px 0;
}
.md .stepper-raised {
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
border-radius: 4px;
}
.md .stepper-raised.stepper-big,
.md .stepper-raised.stepper-big-md {
border-radius: 4px;
}
.md .stepper-raised.stepper-round,
.md .stepper-raised.stepper-round-md {
border-radius: 36px;
}
.md .stepper-raised .stepper-value,
.md .stepper-raised .stepper-input-wrap {
border: none;
}
.md .stepper-raised:not(.stepper-fill):not(.stepper-fill-md) .stepper-input-wrap,
.md .stepper-raised:not(.stepper-fill):not(.stepper-fill-md) .stepper-value {
border-left: 1px solid rgba(0, 0, 0, 0.1);
border-right: 1px solid rgba(0, 0, 0, 0.1);
}
.md .stepper-raised .stepper-button,
.md .stepper-raised .stepper-button-minus,
.md .stepper-raised .stepper-button-plus {
border: none;
}
.md .stepper-raised .stepper-button + .stepper-button,
.md .stepper-raised .stepper-button-minus + .stepper-button-plus {
border-left: 1px solid rgba(0, 0, 0, 0.1);
}
.md .color-theme-red .stepper-button,
.md .color-theme-red .stepper-button-minus,
.md .color-theme-red .stepper-button-plus {
border-color: #f44336;
color: #f44336;
}
.md .color-theme-red .stepper-button-plus:after,
.md .color-theme-red .stepper-button-minus:after,
.md .color-theme-red .stepper-button-plus:before,
.md .color-theme-red .stepper-button-minus:before {
background: #f44336;
}
.md .color-theme-red .stepper-value,
.md .color-theme-red .stepper-input-wrap {
border-top-color: #f44336;
border-bottom-color: #f44336;
}
.md .color-theme-red .stepper-value {
color: #f44336;
}
.md .color-theme-red .stepper .stepper-input-wrap input {
color: #f44336;
}
.md .color-theme-red .stepper-fill .stepper-button,
.md .color-theme-red .stepper-fill-md .stepper-button,
.md .color-theme-red .stepper-fill .stepper-button-minus,
.md .color-theme-red .stepper-fill-md .stepper-button-minus,
.md .color-theme-red .stepper-fill .stepper-button-plus,
.md .color-theme-red .stepper-fill-md .stepper-button-plus {
background-color: #f44336;
color: #fff;
}
.md .color-theme-red .stepper-fill .stepper-button.active-state,
.md .color-theme-red .stepper-fill-md .stepper-button.active-state,
.md .color-theme-red .stepper-fill .stepper-button-minus.active-state,
.md .color-theme-red .stepper-fill-md .stepper-button-minus.active-state,
.md .color-theme-red .stepper-fill .stepper-button-plus.active-state,
.md .color-theme-red .stepper-fill-md .stepper-button-plus.active-state {
background: #f21f0f;
}
.md .color-theme-red .stepper-fill .stepper-button:after,
.md .color-theme-red .stepper-fill-md .stepper-button:after,
.md .color-theme-red .stepper-fill .stepper-button-minus:after,
.md .color-theme-red .stepper-fill-md .stepper-button-minus:after,
.md .color-theme-red .stepper-fill .stepper-button-plus:after,
.md .color-theme-red .stepper-fill-md .stepper-button-plus:after,
.md .color-theme-red .stepper-fill .stepper-button:before,
.md .color-theme-red .stepper-fill-md .stepper-button:before,
.md .color-theme-red .stepper-fill .stepper-button-minus:before,
.md .color-theme-red .stepper-fill-md .stepper-button-minus:before,
.md .color-theme-red .stepper-fill .stepper-button-plus:before,
.md .color-theme-red .stepper-fill-md .stepper-button-plus:before {
background: #fff;
}
.md .color-theme-green .stepper-button,
.md .color-theme-green .stepper-button-minus,
.md .color-theme-green .stepper-button-plus {
border-color: #4caf50;
color: #4caf50;
}
.md .color-theme-green .stepper-button-plus:after,
.md .color-theme-green .stepper-button-minus:after,
.md .color-theme-green .stepper-button-plus:before,
.md .color-theme-green .stepper-button-minus:before {
background: #4caf50;
}
.md .color-theme-green .stepper-value,
.md .color-theme-green .stepper-input-wrap {
border-top-color: #4caf50;
border-bottom-color: #4caf50;
}
.md .color-theme-green .stepper-value {
color: #4caf50;
}
.md .color-theme-green .stepper .stepper-input-wrap input {
color: #4caf50;
}
.md .color-theme-green .stepper-fill .stepper-button,
.md .color-theme-green .stepper-fill-md .stepper-button,
.md .color-theme-green .stepper-fill .stepper-button-minus,
.md .color-theme-green .stepper-fill-md .stepper-button-minus,
.md .color-theme-green .stepper-fill .stepper-button-plus,
.md .color-theme-green .stepper-fill-md .stepper-button-plus {
background-color: #4caf50;
color: #fff;
}
.md .color-theme-green .stepper-fill .stepper-button.active-state,
.md .color-theme-green .stepper-fill-md .stepper-button.active-state,
.md .color-theme-green .stepper-fill .stepper-button-minus.active-state,
.md .color-theme-green .stepper-fill-md .stepper-button-minus.active-state,
.md .color-theme-green .stepper-fill .stepper-button-plus.active-state,
.md .color-theme-green .stepper-fill-md .stepper-button-plus.active-state {
background: #409343;
}
.md .color-theme-green .stepper-fill .stepper-button:after,
.md .color-theme-green .stepper-fill-md .stepper-button:after,
.md .color-theme-green .stepper-fill .stepper-button-minus:after,
.md .color-theme-green .stepper-fill-md .stepper-button-minus:after,
.md .color-theme-green .stepper-fill .stepper-button-plus:after,
.md .color-theme-green .stepper-fill-md .stepper-button-plus:after,
.md .color-theme-green .stepper-fill .stepper-button:before,
.md .color-theme-green .stepper-fill-md .stepper-button:before,
.md .color-theme-green .stepper-fill .stepper-button-minus:before,
.md .color-theme-green .stepper-fill-md .stepper-button-minus:before,
.md .color-theme-green .stepper-fill .stepper-button-plus:before,
.md .color-theme-green .stepper-fill-md .stepper-button-plus:before {
background: #fff;
}
.md .color-theme-blue .stepper-button,
.md .color-theme-blue .stepper-button-minus,
.md .color-theme-blue .stepper-button-plus {
border-color: #2196f3;
color: #2196f3;
}
.md .color-theme-blue .stepper-button-plus:after,
.md .color-theme-blue .stepper-button-minus:after,
.md .color-theme-blue .stepper-button-plus:before,
.md .color-theme-blue .stepper-button-minus:before {
background: #2196f3;
}
.md .color-theme-blue .stepper-value,
.md .color-theme-blue .stepper-input-wrap {
border-top-color: #2196f3;
border-bottom-color: #2196f3;
}
.md .color-theme-blue .stepper-value {
color: #2196f3;
}
.md .color-theme-blue .stepper .stepper-input-wrap input {
color: #2196f3;
}
.md .color-theme-blue .stepper-fill .stepper-button,
.md .color-theme-blue .stepper-fill-md .stepper-button,
.md .color-theme-blue .stepper-fill .stepper-button-minus,
.md .color-theme-blue .stepper-fill-md .stepper-button-minus,
.md .color-theme-blue .stepper-fill .stepper-button-plus,
.md .color-theme-blue .stepper-fill-md .stepper-button-plus {
background-color: #2196f3;
color: #fff;
}
.md .color-theme-blue .stepper-fill .stepper-button.active-state,
.md .color-theme-blue .stepper-fill-md .stepper-button.active-state,
.md .color-theme-blue .stepper-fill .stepper-button-minus.active-state,
.md .color-theme-blue .stepper-fill-md .stepper-button-minus.active-state,
.md .color-theme-blue .stepper-fill .stepper-button-plus.active-state,
.md .color-theme-blue .stepper-fill-md .stepper-button-plus.active-state {
background: #0c82df;
}
.md .color-theme-blue .stepper-fill .stepper-button:after,
.md .color-theme-blue .stepper-fill-md .stepper-button:after,
.md .color-theme-blue .stepper-fill .stepper-button-minus:after,
.md .color-theme-blue .stepper-fill-md .stepper-button-minus:after,
.md .color-theme-blue .stepper-fill .stepper-button-plus:after,
.md .color-theme-blue .stepper-fill-md .stepper-button-plus:after,
.md .color-theme-blue .stepper-fill .stepper-button:before,
.md .color-theme-blue .stepper-fill-md .stepper-button:before,
.md .color-theme-blue .stepper-fill .stepper-button-minus:before,
.md .color-theme-blue .stepper-fill-md .stepper-button-minus:before,
.md .color-theme-blue .stepper-fill .stepper-button-plus:before,
.md .color-theme-blue .stepper-fill-md .stepper-button-plus:before {
background: #fff;
}
.md .color-theme-pink .stepper-button,
.md .color-theme-pink .stepper-button-minus,
.md .color-theme-pink .stepper-button-plus {
border-color: #e91e63;
color: #e91e63;
}
.md .color-theme-pink .stepper-button-plus:after,
.md .color-theme-pink .stepper-button-minus:after,
.md .color-theme-pink .stepper-button-plus:before,
.md .color-theme-pink .stepper-button-minus:before {
background: #e91e63;
}
.md .color-theme-pink .stepper-value,
.md .color-theme-pink .stepper-input-wrap {
border-top-color: #e91e63;
border-bottom-color: #e91e63;
}
.md .color-theme-pink .stepper-value {
color: #e91e63;
}
.md .color-theme-pink .stepper .stepper-input-wrap input {
color: #e91e63;
}
.md .color-theme-pink .stepper-fill .stepper-button,
.md .color-theme-pink .stepper-fill-md .stepper-button,
.md .color-theme-pink .stepper-fill .stepper-button-minus,
.md .color-theme-pink .stepper-fill-md .stepper-button-minus,
.md .color-theme-pink .stepper-fill .stepper-button-plus,
.md .color-theme-pink .stepper-fill-md .stepper-button-plus {
background-color: #e91e63;
color: #fff;
}
.md .color-theme-pink .stepper-fill .stepper-button.active-state,
.md .color-theme-pink .stepper-fill-md .stepper-button.active-state,
.md .color-theme-pink .stepper-fill .stepper-button-minus.active-state,
.md .color-theme-pink .stepper-fill-md .stepper-button-minus.active-state,
.md .color-theme-pink .stepper-fill .stepper-button-plus.active-state,
.md .color-theme-pink .stepper-fill-md .stepper-button-plus.active-state {
background: #ca1452;
}
.md .color-theme-pink .stepper-fill .stepper-button:after,
.md .color-theme-pink .stepper-fill-md .stepper-button:after,
.md .color-theme-pink .stepper-fill .stepper-button-minus:after,
.md .color-theme-pink .stepper-fill-md .stepper-button-minus:after,
.md .color-theme-pink .stepper-fill .stepper-button-plus:after,
.md .color-theme-pink .stepper-fill-md .stepper-button-plus:after,
.md .color-theme-pink .stepper-fill .stepper-button:before,
.md .color-theme-pink .stepper-fill-md .stepper-button:before,
.md .color-theme-pink .stepper-fill .stepper-button-minus:before,
.md .color-theme-pink .stepper-fill-md .stepper-button-minus:before,
.md .color-theme-pink .stepper-fill .stepper-button-plus:before,
.md .color-theme-pink .stepper-fill-md .stepper-button-plus:before {
background: #fff;
}
.md .color-theme-yellow .stepper-button,
.md .color-theme-yellow .stepper-button-minus,
.md .color-theme-yellow .stepper-button-plus {
border-color: #ffeb3b;
color: #ffeb3b;
}
.md .color-theme-yellow .stepper-button-plus:after,
.md .color-theme-yellow .stepper-button-minus:after,
.md .color-theme-yellow .stepper-button-plus:before,
.md .color-theme-yellow .stepper-button-minus:before {
background: #ffeb3b;
}
.md .color-theme-yellow .stepper-value,
.md .color-theme-yellow .stepper-input-wrap {
border-top-color: #ffeb3b;
border-bottom-color: #ffeb3b;
}
.md .color-theme-yellow .stepper-value {
color: #ffeb3b;
}
.md .color-theme-yellow .stepper .stepper-input-wrap input {
color: #ffeb3b;
}
.md .color-theme-yellow .stepper-fill .stepper-button,
.md .color-theme-yellow .stepper-fill-md .stepper-button,
.md .color-theme-yellow .stepper-fill .stepper-button-minus,
.md .color-theme-yellow .stepper-fill-md .stepper-button-minus,
.md .color-theme-yellow .stepper-fill .stepper-button-plus,
.md .color-theme-yellow .stepper-fill-md .stepper-button-plus {
background-color: #ffeb3b;
color: #fff;
}
.md .color-theme-yellow .stepper-fill .stepper-button.active-state,
.md .color-theme-yellow .stepper-fill-md .stepper-button.active-state,
.md .color-theme-yellow .stepper-fill .stepper-button-minus.active-state,
.md .color-theme-yellow .stepper-fill-md .stepper-button-minus.active-state,
.md .color-theme-yellow .stepper-fill .stepper-button-plus.active-state,
.md .color-theme-yellow .stepper-fill-md .stepper-button-plus.active-state {
background: #ffe712;
}
.md .color-theme-yellow .stepper-fill .stepper-button:after,
.md .color-theme-yellow .stepper-fill-md .stepper-button:after,
.md .color-theme-yellow .stepper-fill .stepper-button-minus:after,
.md .color-theme-yellow .stepper-fill-md .stepper-button-minus:after,
.md .color-theme-yellow .stepper-fill .stepper-button-plus:after,
.md .color-theme-yellow .stepper-fill-md .stepper-button-plus:after,
.md .color-theme-yellow .stepper-fill .stepper-button:before,
.md .color-theme-yellow .stepper-fill-md .stepper-button:before,
.md .color-theme-yellow .stepper-fill .stepper-button-minus:before,
.md .color-theme-yellow .stepper-fill-md .stepper-button-minus:before,
.md .color-theme-yellow .stepper-fill .stepper-button-plus:before,
.md .color-theme-yellow .stepper-fill-md .stepper-button-plus:before {
background: #fff;
}
.md .color-theme-orange .stepper-button,
.md .color-theme-orange .stepper-button-minus,
.md .color-theme-orange .stepper-button-plus {
border-color: #ff9800;
color: #ff9800;
}
.md .color-theme-orange .stepper-button-plus:after,
.md .color-theme-orange .stepper-button-minus:after,
.md .color-theme-orange .stepper-button-plus:before,
.md .color-theme-orange .stepper-button-minus:before {
background: #ff9800;
}
.md .color-theme-orange .stepper-value,
.md .color-theme-orange .stepper-input-wrap {
border-top-color: #ff9800;
border-bottom-color: #ff9800;
}
.md .color-theme-orange .stepper-value {
color: #ff9800;
}
.md .color-theme-orange .stepper .stepper-input-wrap input {
color: #ff9800;
}
.md .color-theme-orange .stepper-fill .stepper-button,
.md .color-theme-orange .stepper-fill-md .stepper-button,
.md .color-theme-orange .stepper-fill .stepper-button-minus,
.md .color-theme-orange .stepper-fill-md .stepper-button-minus,
.md .color-theme-orange .stepper-fill .stepper-button-plus,
.md .color-theme-orange .stepper-fill-md .stepper-button-plus {
background-color: #ff9800;
color: #fff;
}
.md .color-theme-orange .stepper-fill .stepper-button.active-state,
.md .color-theme-orange .stepper-fill-md .stepper-button.active-state,
.md .color-theme-orange .stepper-fill .stepper-button-minus.active-state,
.md .color-theme-orange .stepper-fill-md .stepper-button-minus.active-state,
.md .color-theme-orange .stepper-fill .stepper-button-plus.active-state,
.md .color-theme-orange .stepper-fill-md .stepper-button-plus.active-state {
background: #d68000;
}
.md .color-theme-orange .stepper-fill .stepper-button:after,
.md .color-theme-orange .stepper-fill-md .stepper-button:after,
.md .color-theme-orange .stepper-fill .stepper-button-minus:after,
.md .color-theme-orange .stepper-fill-md .stepper-button-minus:after,
.md .color-theme-orange .stepper-fill .stepper-button-plus:after,
.md .color-theme-orange .stepper-fill-md .stepper-button-plus:after,
.md .color-theme-orange .stepper-fill .stepper-button:before,
.md .color-theme-orange .stepper-fill-md .stepper-button:before,
.md .color-theme-orange .stepper-fill .stepper-button-minus:before,
.md .color-theme-orange .stepper-fill-md .stepper-button-minus:before,
.md .color-theme-orange .stepper-fill .stepper-button-plus:before,
.md .color-theme-orange .stepper-fill-md .stepper-button-plus:before {
background: #fff;
}
.md .color-theme-gray .stepper-button,
.md .color-theme-gray .stepper-button-minus,
.md .color-theme-gray .stepper-button-plus {
border-color: #9e9e9e;
color: #9e9e9e;
}
.md .color-theme-gray .stepper-button-plus:after,
.md .color-theme-gray .stepper-button-minus:after,
.md .color-theme-gray .stepper-button-plus:before,
.md .color-theme-gray .stepper-button-minus:before {
background: #9e9e9e;
}
.md .color-theme-gray .stepper-value,
.md .color-theme-gray .stepper-input-wrap {
border-top-color: #9e9e9e;
border-bottom-color: #9e9e9e;
}
.md .color-theme-gray .stepper-value {
color: #9e9e9e;
}
.md .color-theme-gray .stepper .stepper-input-wrap input {
color: #9e9e9e;
}
.md .color-theme-gray .stepper-fill .stepper-button,
.md .color-theme-gray .stepper-fill-md .stepper-button,
.md .color-theme-gray .stepper-fill .stepper-button-minus,
.md .color-theme-gray .stepper-fill-md .stepper-button-minus,
.md .color-theme-gray .stepper-fill .stepper-button-plus,
.md .color-theme-gray .stepper-fill-md .stepper-button-plus {
background-color: #9e9e9e;
color: #fff;
}
.md .color-theme-gray .stepper-fill .stepper-button.active-state,
.md .color-theme-gray .stepper-fill-md .stepper-button.active-state,
.md .color-theme-gray .stepper-fill .stepper-button-minus.active-state,
.md .color-theme-gray .stepper-fill-md .stepper-button-minus.active-state,
.md .color-theme-gray .stepper-fill .stepper-button-plus.active-state,
.md .color-theme-gray .stepper-fill-md .stepper-button-plus.active-state {
background: #8a8a8a;
}
.md .color-theme-gray .stepper-fill .stepper-button:after,
.md .color-theme-gray .stepper-fill-md .stepper-button:after,
.md .color-theme-gray .stepper-fill .stepper-button-minus:after,
.md .color-theme-gray .stepper-fill-md .stepper-button-minus:after,
.md .color-theme-gray .stepper-fill .stepper-button-plus:after,
.md .color-theme-gray .stepper-fill-md .stepper-button-plus:after,
.md .color-theme-gray .stepper-fill .stepper-button:before,
.md .color-theme-gray .stepper-fill-md .stepper-button:before,
.md .color-theme-gray .stepper-fill .stepper-button-minus:before,
.md .color-theme-gray .stepper-fill-md .stepper-button-minus:before,
.md .color-theme-gray .stepper-fill .stepper-button-plus:before,
.md .color-theme-gray .stepper-fill-md .stepper-button-plus:before {
background: #fff;
}
.md .color-theme-white .stepper-button,
.md .color-theme-white .stepper-button-minus,
.md .color-theme-white .stepper-button-plus {
border-color: #ffffff;
color: #ffffff;
}
.md .color-theme-white .stepper-button-plus:after,
.md .color-theme-white .stepper-button-minus:after,
.md .color-theme-white .stepper-button-plus:before,
.md .color-theme-white .stepper-button-minus:before {
background: #ffffff;
}
.md .color-theme-white .stepper-value,
.md .color-theme-white .stepper-input-wrap {
border-top-color: #ffffff;
border-bottom-color: #ffffff;
}
.md .color-theme-white .stepper-value {
color: #ffffff;
}
.md .color-theme-white .stepper .stepper-input-wrap input {
color: #ffffff;
}
.md .color-theme-white .stepper-fill .stepper-button,
.md .color-theme-white .stepper-fill-md .stepper-button,
.md .color-theme-white .stepper-fill .stepper-button-minus,
.md .color-theme-white .stepper-fill-md .stepper-button-minus,
.md .color-theme-white .stepper-fill .stepper-button-plus,
.md .color-theme-white .stepper-fill-md .stepper-button-plus {
background-color: #ffffff;
color: #fff;
}
.md .color-theme-white .stepper-fill .stepper-button.active-state,
.md .color-theme-white .stepper-fill-md .stepper-button.active-state,
.md .color-theme-white .stepper-fill .stepper-button-minus.active-state,
.md .color-theme-white .stepper-fill-md .stepper-button-minus.active-state,
.md .color-theme-white .stepper-fill .stepper-button-plus.active-state,
.md .color-theme-white .stepper-fill-md .stepper-button-plus.active-state {
background: #ebebeb;
}
.md .color-theme-white .stepper-fill .stepper-button:after,
.md .color-theme-white .stepper-fill-md .stepper-button:after,
.md .color-theme-white .stepper-fill .stepper-button-minus:after,
.md .color-theme-white .stepper-fill-md .stepper-button-minus:after,
.md .color-theme-white .stepper-fill .stepper-button-plus:after,
.md .color-theme-white .stepper-fill-md .stepper-button-plus:after,
.md .color-theme-white .stepper-fill .stepper-button:before,
.md .color-theme-white .stepper-fill-md .stepper-button:before,
.md .color-theme-white .stepper-fill .stepper-button-minus:before,
.md .color-theme-white .stepper-fill-md .stepper-button-minus:before,
.md .color-theme-white .stepper-fill .stepper-button-plus:before,
.md .color-theme-white .stepper-fill-md .stepper-button-plus:before {
background: #fff;
}
.md .color-theme-black .stepper-button,
.md .color-theme-black .stepper-button-minus,
.md .color-theme-black .stepper-button-plus {
border-color: #000000;
color: #000000;
}
.md .color-theme-black .stepper-button-plus:after,
.md .color-theme-black .stepper-button-minus:after,
.md .color-theme-black .stepper-button-plus:before,
.md .color-theme-black .stepper-button-minus:before {
background: #000000;
}
.md .color-theme-black .stepper-value,
.md .color-theme-black .stepper-input-wrap {
border-top-color: #000000;
border-bottom-color: #000000;
}
.md .color-theme-black .stepper-value {
color: #000000;
}
.md .color-theme-black .stepper .stepper-input-wrap input {
color: #000000;
}
.md .color-theme-black .stepper-fill .stepper-button,
.md .color-theme-black .stepper-fill-md .stepper-button,
.md .color-theme-black .stepper-fill .stepper-button-minus,
.md .color-theme-black .stepper-fill-md .stepper-button-minus,
.md .color-theme-black .stepper-fill .stepper-button-plus,
.md .color-theme-black .stepper-fill-md .stepper-button-plus {
background-color: #000000;
color: #fff;
}
.md .color-theme-black .stepper-fill .stepper-button.active-state,
.md .color-theme-black .stepper-fill-md .stepper-button.active-state,
.md .color-theme-black .stepper-fill .stepper-button-minus.active-state,
.md .color-theme-black .stepper-fill-md .stepper-button-minus.active-state,
.md .color-theme-black .stepper-fill .stepper-button-plus.active-state,
.md .color-theme-black .stepper-fill-md .stepper-button-plus.active-state {
background: #000000;
}
.md .color-theme-black .stepper-fill .stepper-button:after,
.md .color-theme-black .stepper-fill-md .stepper-button:after,
.md .color-theme-black .stepper-fill .stepper-button-minus:after,
.md .color-theme-black .stepper-fill-md .stepper-button-minus:after,
.md .color-theme-black .stepper-fill .stepper-button-plus:after,
.md .color-theme-black .stepper-fill-md .stepper-button-plus:after,
.md .color-theme-black .stepper-fill .stepper-button:before,
.md .color-theme-black .stepper-fill-md .stepper-button:before,
.md .color-theme-black .stepper-fill .stepper-button-minus:before,
.md .color-theme-black .stepper-fill-md .stepper-button-minus:before,
.md .color-theme-black .stepper-fill .stepper-button-plus:before,
.md .color-theme-black .stepper-fill-md .stepper-button-plus:before {
background: #fff;
}
.md .stepper.color-red .stepper-button,
.md .stepper.color-red .stepper-button-minus,
.md .stepper.color-red .stepper-button-plus {
border-color: #f44336;
color: #f44336;
}
.md .stepper.color-red .stepper-button-plus:after,
.md .stepper.color-red .stepper-button-minus:after,
.md .stepper.color-red .stepper-button-plus:before,
.md .stepper.color-red .stepper-button-minus:before {
background: #f44336;
}
.md .stepper.color-red .stepper-value,
.md .stepper.color-red .stepper-input-wrap {
border-top-color: #f44336;
border-bottom-color: #f44336;
}
.md .stepper.color-red .stepper-value {
color: #f44336;
}
.md .stepper.color-red .stepper-input-wrap input {
color: #f44336;
}
.md .stepper.color-red.stepper-fill .stepper-button,
.md .stepper.color-red.stepper-fill-md .stepper-button,
.md .stepper.color-red.stepper-fill .stepper-button-minus,
.md .stepper.color-red.stepper-fill-md .stepper-button-minus,
.md .stepper.color-red.stepper-fill .stepper-button-plus,
.md .stepper.color-red.stepper-fill-md .stepper-button-plus {
background-color: #f44336;
color: #fff;
}
.md .stepper.color-red.stepper-fill .stepper-button.active-state,
.md .stepper.color-red.stepper-fill-md .stepper-button.active-state,
.md .stepper.color-red.stepper-fill .stepper-button-minus.active-state,
.md .stepper.color-red.stepper-fill-md .stepper-button-minus.active-state,
.md .stepper.color-red.stepper-fill .stepper-button-plus.active-state,
.md .stepper.color-red.stepper-fill-md .stepper-button-plus.active-state {
background: #f21f0f;
}
.md .stepper.color-red.stepper-fill .stepper-button:after,
.md .stepper.color-red.stepper-fill-md .stepper-button:after,
.md .stepper.color-red.stepper-fill .stepper-button-minus:after,
.md .stepper.color-red.stepper-fill-md .stepper-button-minus:after,
.md .stepper.color-red.stepper-fill .stepper-button-plus:after,
.md .stepper.color-red.stepper-fill-md .stepper-button-plus:after,
.md .stepper.color-red.stepper-fill .stepper-button:before,
.md .stepper.color-red.stepper-fill-md .stepper-button:before,
.md .stepper.color-red.stepper-fill .stepper-button-minus:before,
.md .stepper.color-red.stepper-fill-md .stepper-button-minus:before,
.md .stepper.color-red.stepper-fill .stepper-button-plus:before,
.md .stepper.color-red.stepper-fill-md .stepper-button-plus:before {
background: #fff;
}
.md .stepper.color-green .stepper-button,
.md .stepper.color-green .stepper-button-minus,
.md .stepper.color-green .stepper-button-plus {
border-color: #4caf50;
color: #4caf50;
}
.md .stepper.color-green .stepper-button-plus:after,
.md .stepper.color-green .stepper-button-minus:after,
.md .stepper.color-green .stepper-button-plus:before,
.md .stepper.color-green .stepper-button-minus:before {
background: #4caf50;
}
.md .stepper.color-green .stepper-value,
.md .stepper.color-green .stepper-input-wrap {
border-top-color: #4caf50;
border-bottom-color: #4caf50;
}
.md .stepper.color-green .stepper-value {
color: #4caf50;
}
.md .stepper.color-green .stepper-input-wrap input {
color: #4caf50;
}
.md .stepper.color-green.stepper-fill .stepper-button,
.md .stepper.color-green.stepper-fill-md .stepper-button,
.md .stepper.color-green.stepper-fill .stepper-button-minus,
.md .stepper.color-green.stepper-fill-md .stepper-button-minus,
.md .stepper.color-green.stepper-fill .stepper-button-plus,
.md .stepper.color-green.stepper-fill-md .stepper-button-plus {
background-color: #4caf50;
color: #fff;
}
.md .stepper.color-green.stepper-fill .stepper-button.active-state,
.md .stepper.color-green.stepper-fill-md .stepper-button.active-state,
.md .stepper.color-green.stepper-fill .stepper-button-minus.active-state,
.md .stepper.color-green.stepper-fill-md .stepper-button-minus.active-state,
.md .stepper.color-green.stepper-fill .stepper-button-plus.active-state,
.md .stepper.color-green.stepper-fill-md .stepper-button-plus.active-state {
background: #409343;
}
.md .stepper.color-green.stepper-fill .stepper-button:after,
.md .stepper.color-green.stepper-fill-md .stepper-button:after,
.md .stepper.color-green.stepper-fill .stepper-button-minus:after,
.md .stepper.color-green.stepper-fill-md .stepper-button-minus:after,
.md .stepper.color-green.stepper-fill .stepper-button-plus:after,
.md .stepper.color-green.stepper-fill-md .stepper-button-plus:after,
.md .stepper.color-green.stepper-fill .stepper-button:before,
.md .stepper.color-green.stepper-fill-md .stepper-button:before,
.md .stepper.color-green.stepper-fill .stepper-button-minus:before,
.md .stepper.color-green.stepper-fill-md .stepper-button-minus:before,
.md .stepper.color-green.stepper-fill .stepper-button-plus:before,
.md .stepper.color-green.stepper-fill-md .stepper-button-plus:before {
background: #fff;
}
.md .stepper.color-blue .stepper-button,
.md .stepper.color-blue .stepper-button-minus,
.md .stepper.color-blue .stepper-button-plus {
border-color: #2196f3;
color: #2196f3;
}
.md .stepper.color-blue .stepper-button-plus:after,
.md .stepper.color-blue .stepper-button-minus:after,
.md .stepper.color-blue .stepper-button-plus:before,
.md .stepper.color-blue .stepper-button-minus:before {
background: #2196f3;
}
.md .stepper.color-blue .stepper-value,
.md .stepper.color-blue .stepper-input-wrap {
border-top-color: #2196f3;
border-bottom-color: #2196f3;
}
.md .stepper.color-blue .stepper-value {
color: #2196f3;
}
.md .stepper.color-blue .stepper-input-wrap input {
color: #2196f3;
}
.md .stepper.color-blue.stepper-fill .stepper-button,
.md .stepper.color-blue.stepper-fill-md .stepper-button,
.md .stepper.color-blue.stepper-fill .stepper-button-minus,
.md .stepper.color-blue.stepper-fill-md .stepper-button-minus,
.md .stepper.color-blue.stepper-fill .stepper-button-plus,
.md .stepper.color-blue.stepper-fill-md .stepper-button-plus {
background-color: #2196f3;
color: #fff;
}
.md .stepper.color-blue.stepper-fill .stepper-button.active-state,
.md .stepper.color-blue.stepper-fill-md .stepper-button.active-state,
.md .stepper.color-blue.stepper-fill .stepper-button-minus.active-state,
.md .stepper.color-blue.stepper-fill-md .stepper-button-minus.active-state,
.md .stepper.color-blue.stepper-fill .stepper-button-plus.active-state,
.md .stepper.color-blue.stepper-fill-md .stepper-button-plus.active-state {
background: #0c82df;
}
.md .stepper.color-blue.stepper-fill .stepper-button:after,
.md .stepper.color-blue.stepper-fill-md .stepper-button:after,
.md .stepper.color-blue.stepper-fill .stepper-button-minus:after,
.md .stepper.color-blue.stepper-fill-md .stepper-button-minus:after,
.md .stepper.color-blue.stepper-fill .stepper-button-plus:after,
.md .stepper.color-blue.stepper-fill-md .stepper-button-plus:after,
.md .stepper.color-blue.stepper-fill .stepper-button:before,
.md .stepper.color-blue.stepper-fill-md .stepper-button:before,
.md .stepper.color-blue.stepper-fill .stepper-button-minus:before,
.md .stepper.color-blue.stepper-fill-md .stepper-button-minus:before,
.md .stepper.color-blue.stepper-fill .stepper-button-plus:before,
.md .stepper.color-blue.stepper-fill-md .stepper-button-plus:before {
background: #fff;
}
.md .stepper.color-pink .stepper-button,
.md .stepper.color-pink .stepper-button-minus,
.md .stepper.color-pink .stepper-button-plus {
border-color: #e91e63;
color: #e91e63;
}
.md .stepper.color-pink .stepper-button-plus:after,
.md .stepper.color-pink .stepper-button-minus:after,
.md .stepper.color-pink .stepper-button-plus:before,
.md .stepper.color-pink .stepper-button-minus:before {
background: #e91e63;
}
.md .stepper.color-pink .stepper-value,
.md .stepper.color-pink .stepper-input-wrap {
border-top-color: #e91e63;
border-bottom-color: #e91e63;
}
.md .stepper.color-pink .stepper-value {
color: #e91e63;
}
.md .stepper.color-pink .stepper-input-wrap input {
color: #e91e63;
}
.md .stepper.color-pink.stepper-fill .stepper-button,
.md .stepper.color-pink.stepper-fill-md .stepper-button,
.md .stepper.color-pink.stepper-fill .stepper-button-minus,
.md .stepper.color-pink.stepper-fill-md .stepper-button-minus,
.md .stepper.color-pink.stepper-fill .stepper-button-plus,
.md .stepper.color-pink.stepper-fill-md .stepper-button-plus {
background-color: #e91e63;
color: #fff;
}
.md .stepper.color-pink.stepper-fill .stepper-button.active-state,
.md .stepper.color-pink.stepper-fill-md .stepper-button.active-state,
.md .stepper.color-pink.stepper-fill .stepper-button-minus.active-state,
.md .stepper.color-pink.stepper-fill-md .stepper-button-minus.active-state,
.md .stepper.color-pink.stepper-fill .stepper-button-plus.active-state,
.md .stepper.color-pink.stepper-fill-md .stepper-button-plus.active-state {
background: #ca1452;
}
.md .stepper.color-pink.stepper-fill .stepper-button:after,
.md .stepper.color-pink.stepper-fill-md .stepper-button:after,
.md .stepper.color-pink.stepper-fill .stepper-button-minus:after,
.md .stepper.color-pink.stepper-fill-md .stepper-button-minus:after,
.md .stepper.color-pink.stepper-fill .stepper-button-plus:after,
.md .stepper.color-pink.stepper-fill-md .stepper-button-plus:after,
.md .stepper.color-pink.stepper-fill .stepper-button:before,
.md .stepper.color-pink.stepper-fill-md .stepper-button:before,
.md .stepper.color-pink.stepper-fill .stepper-button-minus:before,
.md .stepper.color-pink.stepper-fill-md .stepper-button-minus:before,
.md .stepper.color-pink.stepper-fill .stepper-button-plus:before,
.md .stepper.color-pink.stepper-fill-md .stepper-button-plus:before {
background: #fff;
}
.md .stepper.color-yellow .stepper-button,
.md .stepper.color-yellow .stepper-button-minus,
.md .stepper.color-yellow .stepper-button-plus {
border-color: #ffeb3b;
color: #ffeb3b;
}
.md .stepper.color-yellow .stepper-button-plus:after,
.md .stepper.color-yellow .stepper-button-minus:after,
.md .stepper.color-yellow .stepper-button-plus:before,
.md .stepper.color-yellow .stepper-button-minus:before {
background: #ffeb3b;
}
.md .stepper.color-yellow .stepper-value,
.md .stepper.color-yellow .stepper-input-wrap {
border-top-color: #ffeb3b;
border-bottom-color: #ffeb3b;
}
.md .stepper.color-yellow .stepper-value {
color: #ffeb3b;
}
.md .stepper.color-yellow .stepper-input-wrap input {
color: #ffeb3b;
}
.md .stepper.color-yellow.stepper-fill .stepper-button,
.md .stepper.color-yellow.stepper-fill-md .stepper-button,
.md .stepper.color-yellow.stepper-fill .stepper-button-minus,
.md .stepper.color-yellow.stepper-fill-md .stepper-button-minus,
.md .stepper.color-yellow.stepper-fill .stepper-button-plus,
.md .stepper.color-yellow.stepper-fill-md .stepper-button-plus {
background-color: #ffeb3b;
color: #fff;
}
.md .stepper.color-yellow.stepper-fill .stepper-button.active-state,
.md .stepper.color-yellow.stepper-fill-md .stepper-button.active-state,
.md .stepper.color-yellow.stepper-fill .stepper-button-minus.active-state,
.md .stepper.color-yellow.stepper-fill-md .stepper-button-minus.active-state,
.md .stepper.color-yellow.stepper-fill .stepper-button-plus.active-state,
.md .stepper.color-yellow.stepper-fill-md .stepper-button-plus.active-state {
background: #ffe712;
}
.md .stepper.color-yellow.stepper-fill .stepper-button:after,
.md .stepper.color-yellow.stepper-fill-md .stepper-button:after,
.md .stepper.color-yellow.stepper-fill .stepper-button-minus:after,
.md .stepper.color-yellow.stepper-fill-md .stepper-button-minus:after,
.md .stepper.color-yellow.stepper-fill .stepper-button-plus:after,
.md .stepper.color-yellow.stepper-fill-md .stepper-button-plus:after,
.md .stepper.color-yellow.stepper-fill .stepper-button:before,
.md .stepper.color-yellow.stepper-fill-md .stepper-button:before,
.md .stepper.color-yellow.stepper-fill .stepper-button-minus:before,
.md .stepper.color-yellow.stepper-fill-md .stepper-button-minus:before,
.md .stepper.color-yellow.stepper-fill .stepper-button-plus:before,
.md .stepper.color-yellow.stepper-fill-md .stepper-button-plus:before {
background: #fff;
}
.md .stepper.color-orange .stepper-button,
.md .stepper.color-orange .stepper-button-minus,
.md .stepper.color-orange .stepper-button-plus {
border-color: #ff9800;
color: #ff9800;
}
.md .stepper.color-orange .stepper-button-plus:after,
.md .stepper.color-orange .stepper-button-minus:after,
.md .stepper.color-orange .stepper-button-plus:before,
.md .stepper.color-orange .stepper-button-minus:before {
background: #ff9800;
}
.md .stepper.color-orange .stepper-value,
.md .stepper.color-orange .stepper-input-wrap {
border-top-color: #ff9800;
border-bottom-color: #ff9800;
}
.md .stepper.color-orange .stepper-value {
color: #ff9800;
}
.md .stepper.color-orange .stepper-input-wrap input {
color: #ff9800;
}
.md .stepper.color-orange.stepper-fill .stepper-button,
.md .stepper.color-orange.stepper-fill-md .stepper-button,
.md .stepper.color-orange.stepper-fill .stepper-button-minus,
.md .stepper.color-orange.stepper-fill-md .stepper-button-minus,
.md .stepper.color-orange.stepper-fill .stepper-button-plus,
.md .stepper.color-orange.stepper-fill-md .stepper-button-plus {
background-color: #ff9800;
color: #fff;
}
.md .stepper.color-orange.stepper-fill .stepper-button.active-state,
.md .stepper.color-orange.stepper-fill-md .stepper-button.active-state,
.md .stepper.color-orange.stepper-fill .stepper-button-minus.active-state,
.md .stepper.color-orange.stepper-fill-md .stepper-button-minus.active-state,
.md .stepper.color-orange.stepper-fill .stepper-button-plus.active-state,
.md .stepper.color-orange.stepper-fill-md .stepper-button-plus.active-state {
background: #d68000;
}
.md .stepper.color-orange.stepper-fill .stepper-button:after,
.md .stepper.color-orange.stepper-fill-md .stepper-button:after,
.md .stepper.color-orange.stepper-fill .stepper-button-minus:after,
.md .stepper.color-orange.stepper-fill-md .stepper-button-minus:after,
.md .stepper.color-orange.stepper-fill .stepper-button-plus:after,
.md .stepper.color-orange.stepper-fill-md .stepper-button-plus:after,
.md .stepper.color-orange.stepper-fill .stepper-button:before,
.md .stepper.color-orange.stepper-fill-md .stepper-button:before,
.md .stepper.color-orange.stepper-fill .stepper-button-minus:before,
.md .stepper.color-orange.stepper-fill-md .stepper-button-minus:before,
.md .stepper.color-orange.stepper-fill .stepper-button-plus:before,
.md .stepper.color-orange.stepper-fill-md .stepper-button-plus:before {
background: #fff;
}
.md .stepper.color-gray .stepper-button,
.md .stepper.color-gray .stepper-button-minus,
.md .stepper.color-gray .stepper-button-plus {
border-color: #9e9e9e;
color: #9e9e9e;
}
.md .stepper.color-gray .stepper-button-plus:after,
.md .stepper.color-gray .stepper-button-minus:after,
.md .stepper.color-gray .stepper-button-plus:before,
.md .stepper.color-gray .stepper-button-minus:before {
background: #9e9e9e;
}
.md .stepper.color-gray .stepper-value,
.md .stepper.color-gray .stepper-input-wrap {
border-top-color: #9e9e9e;
border-bottom-color: #9e9e9e;
}
.md .stepper.color-gray .stepper-value {
color: #9e9e9e;
}
.md .stepper.color-gray .stepper-input-wrap input {
color: #9e9e9e;
}
.md .stepper.color-gray.stepper-fill .stepper-button,
.md .stepper.color-gray.stepper-fill-md .stepper-button,
.md .stepper.color-gray.stepper-fill .stepper-button-minus,
.md .stepper.color-gray.stepper-fill-md .stepper-button-minus,
.md .stepper.color-gray.stepper-fill .stepper-button-plus,
.md .stepper.color-gray.stepper-fill-md .stepper-button-plus {
background-color: #9e9e9e;
color: #fff;
}
.md .stepper.color-gray.stepper-fill .stepper-button.active-state,
.md .stepper.color-gray.stepper-fill-md .stepper-button.active-state,
.md .stepper.color-gray.stepper-fill .stepper-button-minus.active-state,
.md .stepper.color-gray.stepper-fill-md .stepper-button-minus.active-state,
.md .stepper.color-gray.stepper-fill .stepper-button-plus.active-state,
.md .stepper.color-gray.stepper-fill-md .stepper-button-plus.active-state {
background: #8a8a8a;
}
.md .stepper.color-gray.stepper-fill .stepper-button:after,
.md .stepper.color-gray.stepper-fill-md .stepper-button:after,
.md .stepper.color-gray.stepper-fill .stepper-button-minus:after,
.md .stepper.color-gray.stepper-fill-md .stepper-button-minus:after,
.md .stepper.color-gray.stepper-fill .stepper-button-plus:after,
.md .stepper.color-gray.stepper-fill-md .stepper-button-plus:after,
.md .stepper.color-gray.stepper-fill .stepper-button:before,
.md .stepper.color-gray.stepper-fill-md .stepper-button:before,
.md .stepper.color-gray.stepper-fill .stepper-button-minus:before,
.md .stepper.color-gray.stepper-fill-md .stepper-button-minus:before,
.md .stepper.color-gray.stepper-fill .stepper-button-plus:before,
.md .stepper.color-gray.stepper-fill-md .stepper-button-plus:before {
background: #fff;
}
.md .stepper.color-white .stepper-button,
.md .stepper.color-white .stepper-button-minus,
.md .stepper.color-white .stepper-button-plus {
border-color: #ffffff;
color: #ffffff;
}
.md .stepper.color-white .stepper-button-plus:after,
.md .stepper.color-white .stepper-button-minus:after,
.md .stepper.color-white .stepper-button-plus:before,
.md .stepper.color-white .stepper-button-minus:before {
background: #ffffff;
}
.md .stepper.color-white .stepper-value,
.md .stepper.color-white .stepper-input-wrap {
border-top-color: #ffffff;
border-bottom-color: #ffffff;
}
.md .stepper.color-white .stepper-value {
color: #ffffff;
}
.md .stepper.color-white .stepper-input-wrap input {
color: #ffffff;
}
.md .stepper.color-white.stepper-fill .stepper-button,
.md .stepper.color-white.stepper-fill-md .stepper-button,
.md .stepper.color-white.stepper-fill .stepper-button-minus,
.md .stepper.color-white.stepper-fill-md .stepper-button-minus,
.md .stepper.color-white.stepper-fill .stepper-button-plus,
.md .stepper.color-white.stepper-fill-md .stepper-button-plus {
background-color: #ffffff;
color: #fff;
}
.md .stepper.color-white.stepper-fill .stepper-button.active-state,
.md .stepper.color-white.stepper-fill-md .stepper-button.active-state,
.md .stepper.color-white.stepper-fill .stepper-button-minus.active-state,
.md .stepper.color-white.stepper-fill-md .stepper-button-minus.active-state,
.md .stepper.color-white.stepper-fill .stepper-button-plus.active-state,
.md .stepper.color-white.stepper-fill-md .stepper-button-plus.active-state {
background: #ebebeb;
}
.md .stepper.color-white.stepper-fill .stepper-button:after,
.md .stepper.color-white.stepper-fill-md .stepper-button:after,
.md .stepper.color-white.stepper-fill .stepper-button-minus:after,
.md .stepper.color-white.stepper-fill-md .stepper-button-minus:after,
.md .stepper.color-white.stepper-fill .stepper-button-plus:after,
.md .stepper.color-white.stepper-fill-md .stepper-button-plus:after,
.md .stepper.color-white.stepper-fill .stepper-button:before,
.md .stepper.color-white.stepper-fill-md .stepper-button:before,
.md .stepper.color-white.stepper-fill .stepper-button-minus:before,
.md .stepper.color-white.stepper-fill-md .stepper-button-minus:before,
.md .stepper.color-white.stepper-fill .stepper-button-plus:before,
.md .stepper.color-white.stepper-fill-md .stepper-button-plus:before {
background: #fff;
}
.md .stepper.color-black .stepper-button,
.md .stepper.color-black .stepper-button-minus,
.md .stepper.color-black .stepper-button-plus {
border-color: #000000;
color: #000000;
}
.md .stepper.color-black .stepper-button-plus:after,
.md .stepper.color-black .stepper-button-minus:after,
.md .stepper.color-black .stepper-button-plus:before,
.md .stepper.color-black .stepper-button-minus:before {
background: #000000;
}
.md .stepper.color-black .stepper-value,
.md .stepper.color-black .stepper-input-wrap {
border-top-color: #000000;
border-bottom-color: #000000;
}
.md .stepper.color-black .stepper-value {
color: #000000;
}
.md .stepper.color-black .stepper-input-wrap input {
color: #000000;
}
.md .stepper.color-black.stepper-fill .stepper-button,
.md .stepper.color-black.stepper-fill-md .stepper-button,
.md .stepper.color-black.stepper-fill .stepper-button-minus,
.md .stepper.color-black.stepper-fill-md .stepper-button-minus,
.md .stepper.color-black.stepper-fill .stepper-button-plus,
.md .stepper.color-black.stepper-fill-md .stepper-button-plus {
background-color: #000000;
color: #fff;
}
.md .stepper.color-black.stepper-fill .stepper-button.active-state,
.md .stepper.color-black.stepper-fill-md .stepper-button.active-state,
.md .stepper.color-black.stepper-fill .stepper-button-minus.active-state,
.md .stepper.color-black.stepper-fill-md .stepper-button-minus.active-state,
.md .stepper.color-black.stepper-fill .stepper-button-plus.active-state,
.md .stepper.color-black.stepper-fill-md .stepper-button-plus.active-state {
background: #000000;
}
.md .stepper.color-black.stepper-fill .stepper-button:after,
.md .stepper.color-black.stepper-fill-md .stepper-button:after,
.md .stepper.color-black.stepper-fill .stepper-button-minus:after,
.md .stepper.color-black.stepper-fill-md .stepper-button-minus:after,
.md .stepper.color-black.stepper-fill .stepper-button-plus:after,
.md .stepper.color-black.stepper-fill-md .stepper-button-plus:after,
.md .stepper.color-black.stepper-fill .stepper-button:before,
.md .stepper.color-black.stepper-fill-md .stepper-button:before,
.md .stepper.color-black.stepper-fill .stepper-button-minus:before,
.md .stepper.color-black.stepper-fill-md .stepper-button-minus:before,
.md .stepper.color-black.stepper-fill .stepper-button-plus:before,
.md .stepper.color-black.stepper-fill-md .stepper-button-plus:before {
background: #fff;
}
/* === Smart Select === */
.smart-select select {
display: none;
}
.smart-select .item-after {
max-width: 70%;
overflow: hidden;
text-overflow: ellipsis;
position: relative;
display: block;
}
.sheet-modal.smart-select-sheet .sheet-modal-inner {
background: #fff;
}
.sheet-modal.smart-select-sheet .list {
margin: 0;
}
.sheet-modal.smart-select-sheet .list ul:before {
display: none !important;
}
.sheet-modal.smart-select-sheet .list ul:after {
display: none !important;
}
.smart-select-popover .popover-inner {
max-height: 40vh;
}
.md .theme-dark .sheet-modal.smart-select-sheet .sheet-modal-inner {
background-color: transparent;
}
/* === Grid === */
.row {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-box-align: start;
-webkit-align-items: flex-start;
-ms-flex-align: start;
align-items: flex-start;
}
.row > [class*="col-"],
.row > .col {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.row .col {
width: 100%;
}
/* === Grid === */
.md .row .col-100 {
width: 100%;
width: calc((100% - 16px*0) / 1);
}
.md .row.no-gap .col-100 {
width: 100%;
}
.md .row .col-95 {
width: 95%;
width: calc((100% - 16px*0.05263157894736836) / 1.0526315789473684);
}
.md .row.no-gap .col-95 {
width: 95%;
}
.md .row .col-90 {
width: 90%;
width: calc((100% - 16px*0.11111111111111116) / 1.1111111111111112);
}
.md .row.no-gap .col-90 {
width: 90%;
}
.md .row .col-85 {
width: 85%;
width: calc((100% - 16px*0.17647058823529416) / 1.1764705882352942);
}
.md .row.no-gap .col-85 {
width: 85%;
}
.md .row .col-80 {
width: 80%;
width: calc((100% - 16px*0.25) / 1.25);
}
.md .row.no-gap .col-80 {
width: 80%;
}
.md .row .col-75 {
width: 75%;
width: calc((100% - 16px*0.33333333333333326) / 1.3333333333333333);
}
.md .row.no-gap .col-75 {
width: 75%;
}
.md .row .col-70 {
width: 70%;
width: calc((100% - 16px*0.4285714285714286) / 1.4285714285714286);
}
.md .row.no-gap .col-70 {
width: 70%;
}
.md .row .col-66 {
width: 66.66666666666666%;
width: calc((100% - 16px*0.5000000000000002) / 1.5000000000000002);
}
.md .row.no-gap .col-66 {
width: 66.66666666666666%;
}
.md .row .col-65 {
width: 65%;
width: calc((100% - 16px*0.5384615384615385) / 1.5384615384615385);
}
.md .row.no-gap .col-65 {
width: 65%;
}
.md .row .col-60 {
width: 60%;
width: calc((100% - 16px*0.6666666666666667) / 1.6666666666666667);
}
.md .row.no-gap .col-60 {
width: 60%;
}
.md .row .col-55 {
width: 55%;
width: calc((100% - 16px*0.8181818181818181) / 1.8181818181818181);
}
.md .row.no-gap .col-55 {
width: 55%;
}
.md .row .col-50 {
width: 50%;
width: calc((100% - 16px*1) / 2);
}
.md .row.no-gap .col-50 {
width: 50%;
}
.md .row .col-45 {
width: 45%;
width: calc((100% - 16px*1.2222222222222223) / 2.2222222222222223);
}
.md .row.no-gap .col-45 {
width: 45%;
}
.md .row .col-40 {
width: 40%;
width: calc((100% - 16px*1.5) / 2.5);
}
.md .row.no-gap .col-40 {
width: 40%;
}
.md .row .col-35 {
width: 35%;
width: calc((100% - 16px*1.8571428571428572) / 2.857142857142857);
}
.md .row.no-gap .col-35 {
width: 35%;
}
.md .row .col-33 {
width: 33.333333333333336%;
width: calc((100% - 16px*2) / 3);
}
.md .row.no-gap .col-33 {
width: 33.333333333333336%;
}
.md .row .col-30 {
width: 30%;
width: calc((100% - 16px*2.3333333333333335) / 3.3333333333333335);
}
.md .row.no-gap .col-30 {
width: 30%;
}
.md .row .col-25 {
width: 25%;
width: calc((100% - 16px*3) / 4);
}
.md .row.no-gap .col-25 {
width: 25%;
}
.md .row .col-20 {
width: 20%;
width: calc((100% - 16px*4) / 5);
}
.md .row.no-gap .col-20 {
width: 20%;
}
.md .row .col-15 {
width: 15%;
width: calc((100% - 16px*5.666666666666667) / 6.666666666666667);
}
.md .row.no-gap .col-15 {
width: 15%;
}
.md .row .col-10 {
width: 10%;
width: calc((100% - 16px*9) / 10);
}
.md .row.no-gap .col-10 {
width: 10%;
}
.md .row .col-5 {
width: 5%;
width: calc((100% - 16px*19) / 20);
}
.md .row.no-gap .col-5 {
width: 5%;
}
.md .row .col:nth-last-child(1),
.md .row .col:nth-last-child(1) ~ .col {
width: 100%;
width: calc((100% - 16px*0) / 1);
}
.md .row.no-gap .col:nth-last-child(1),
.md .row.no-gap .col:nth-last-child(1) ~ .col {
width: 100%;
}
.md .row .col:nth-last-child(2),
.md .row .col:nth-last-child(2) ~ .col {
width: 50%;
width: calc((100% - 16px*1) / 2);
}
.md .row.no-gap .col:nth-last-child(2),
.md .row.no-gap .col:nth-last-child(2) ~ .col {
width: 50%;
}
.md .row .col:nth-last-child(3),
.md .row .col:nth-last-child(3) ~ .col {
width: 33.33333333%;
width: calc((100% - 16px*2) / 3);
}
.md .row.no-gap .col:nth-last-child(3),
.md .row.no-gap .col:nth-last-child(3) ~ .col {
width: 33.33333333%;
}
.md .row .col:nth-last-child(4),
.md .row .col:nth-last-child(4) ~ .col {
width: 25%;
width: calc((100% - 16px*3) / 4);
}
.md .row.no-gap .col:nth-last-child(4),
.md .row.no-gap .col:nth-last-child(4) ~ .col {
width: 25%;
}
.md .row .col:nth-last-child(5),
.md .row .col:nth-last-child(5) ~ .col {
width: 20%;
width: calc((100% - 16px*4) / 5);
}
.md .row.no-gap .col:nth-last-child(5),
.md .row.no-gap .col:nth-last-child(5) ~ .col {
width: 20%;
}
.md .row .col:nth-last-child(6),
.md .row .col:nth-last-child(6) ~ .col {
width: 16.66666667%;
width: calc((100% - 16px*5) / 6);
}
.md .row.no-gap .col:nth-last-child(6),
.md .row.no-gap .col:nth-last-child(6) ~ .col {
width: 16.66666667%;
}
.md .row .col:nth-last-child(7),
.md .row .col:nth-last-child(7) ~ .col {
width: 14.28571429%;
width: calc((100% - 16px*6) / 7);
}
.md .row.no-gap .col:nth-last-child(7),
.md .row.no-gap .col:nth-last-child(7) ~ .col {
width: 14.28571429%;
}
.md .row .col:nth-last-child(8),
.md .row .col:nth-last-child(8) ~ .col {
width: 12.5%;
width: calc((100% - 16px*7) / 8);
}
.md .row.no-gap .col:nth-last-child(8),
.md .row.no-gap .col:nth-last-child(8) ~ .col {
width: 12.5%;
}
.md .row .col:nth-last-child(9),
.md .row .col:nth-last-child(9) ~ .col {
width: 11.11111111%;
width: calc((100% - 16px*8) / 9);
}
.md .row.no-gap .col:nth-last-child(9),
.md .row.no-gap .col:nth-last-child(9) ~ .col {
width: 11.11111111%;
}
.md .row .col:nth-last-child(10),
.md .row .col:nth-last-child(10) ~ .col {
width: 10%;
width: calc((100% - 16px*9) / 10);
}
.md .row.no-gap .col:nth-last-child(10),
.md .row.no-gap .col:nth-last-child(10) ~ .col {
width: 10%;
}
.md .row .col:nth-last-child(11),
.md .row .col:nth-last-child(11) ~ .col {
width: 9.09090909%;
width: calc((100% - 16px*10) / 11);
}
.md .row.no-gap .col:nth-last-child(11),
.md .row.no-gap .col:nth-last-child(11) ~ .col {
width: 9.09090909%;
}
.md .row .col:nth-last-child(12),
.md .row .col:nth-last-child(12) ~ .col {
width: 8.33333333%;
width: calc((100% - 16px*11) / 12);
}
.md .row.no-gap .col:nth-last-child(12),
.md .row.no-gap .col:nth-last-child(12) ~ .col {
width: 8.33333333%;
}
.md .row .col:nth-last-child(13),
.md .row .col:nth-last-child(13) ~ .col {
width: 7.69230769%;
width: calc((100% - 16px*12) / 13);
}
.md .row.no-gap .col:nth-last-child(13),
.md .row.no-gap .col:nth-last-child(13) ~ .col {
width: 7.69230769%;
}
.md .row .col:nth-last-child(14),
.md .row .col:nth-last-child(14) ~ .col {
width: 7.14285714%;
width: calc((100% - 16px*13) / 14);
}
.md .row.no-gap .col:nth-last-child(14),
.md .row.no-gap .col:nth-last-child(14) ~ .col {
width: 7.14285714%;
}
.md .row .col:nth-last-child(15),
.md .row .col:nth-last-child(15) ~ .col {
width: 6.66666667%;
width: calc((100% - 16px*14) / 15);
}
.md .row.no-gap .col:nth-last-child(15),
.md .row.no-gap .col:nth-last-child(15) ~ .col {
width: 6.66666667%;
}
.md .row .col:nth-last-child(16),
.md .row .col:nth-last-child(16) ~ .col {
width: 6.25%;
width: calc((100% - 16px*15) / 16);
}
.md .row.no-gap .col:nth-last-child(16),
.md .row.no-gap .col:nth-last-child(16) ~ .col {
width: 6.25%;
}
.md .row .col:nth-last-child(17),
.md .row .col:nth-last-child(17) ~ .col {
width: 5.88235294%;
width: calc((100% - 16px*16) / 17);
}
.md .row.no-gap .col:nth-last-child(17),
.md .row.no-gap .col:nth-last-child(17) ~ .col {
width: 5.88235294%;
}
.md .row .col:nth-last-child(18),
.md .row .col:nth-last-child(18) ~ .col {
width: 5.55555556%;
width: calc((100% - 16px*17) / 18);
}
.md .row.no-gap .col:nth-last-child(18),
.md .row.no-gap .col:nth-last-child(18) ~ .col {
width: 5.55555556%;
}
.md .row .col:nth-last-child(19),
.md .row .col:nth-last-child(19) ~ .col {
width: 5.26315789%;
width: calc((100% - 16px*18) / 19);
}
.md .row.no-gap .col:nth-last-child(19),
.md .row.no-gap .col:nth-last-child(19) ~ .col {
width: 5.26315789%;
}
.md .row .col:nth-last-child(20),
.md .row .col:nth-last-child(20) ~ .col {
width: 5%;
width: calc((100% - 16px*19) / 20);
}
.md .row.no-gap .col:nth-last-child(20),
.md .row.no-gap .col:nth-last-child(20) ~ .col {
width: 5%;
}
.md .row .col:nth-last-child(21),
.md .row .col:nth-last-child(21) ~ .col {
width: 4.76190476%;
width: calc((100% - 16px*20) / 21);
}
.md .row.no-gap .col:nth-last-child(21),
.md .row.no-gap .col:nth-last-child(21) ~ .col {
width: 4.76190476%;
}
@media (min-width: 768px) {
.md .row .tablet-100 {
width: 100%;
width: calc((100% - 16px*0) / 1);
}
.md .row.no-gap .tablet-100 {
width: 100%;
}
.md .row .tablet-95 {
width: 95%;
width: calc((100% - 16px*0.05263157894736836) / 1.0526315789473684);
}
.md .row.no-gap .tablet-95 {
width: 95%;
}
.md .row .tablet-90 {
width: 90%;
width: calc((100% - 16px*0.11111111111111116) / 1.1111111111111112);
}
.md .row.no-gap .tablet-90 {
width: 90%;
}
.md .row .tablet-85 {
width: 85%;
width: calc((100% - 16px*0.17647058823529416) / 1.1764705882352942);
}
.md .row.no-gap .tablet-85 {
width: 85%;
}
.md .row .tablet-80 {
width: 80%;
width: calc((100% - 16px*0.25) / 1.25);
}
.md .row.no-gap .tablet-80 {
width: 80%;
}
.md .row .tablet-75 {
width: 75%;
width: calc((100% - 16px*0.33333333333333326) / 1.3333333333333333);
}
.md .row.no-gap .tablet-75 {
width: 75%;
}
.md .row .tablet-70 {
width: 70%;
width: calc((100% - 16px*0.4285714285714286) / 1.4285714285714286);
}
.md .row.no-gap .tablet-70 {
width: 70%;
}
.md .row .tablet-66 {
width: 66.66666666666666%;
width: calc((100% - 16px*0.5000000000000002) / 1.5000000000000002);
}
.md .row.no-gap .tablet-66 {
width: 66.66666666666666%;
}
.md .row .tablet-65 {
width: 65%;
width: calc((100% - 16px*0.5384615384615385) / 1.5384615384615385);
}
.md .row.no-gap .tablet-65 {
width: 65%;
}
.md .row .tablet-60 {
width: 60%;
width: calc((100% - 16px*0.6666666666666667) / 1.6666666666666667);
}
.md .row.no-gap .tablet-60 {
width: 60%;
}
.md .row .tablet-55 {
width: 55%;
width: calc((100% - 16px*0.8181818181818181) / 1.8181818181818181);
}
.md .row.no-gap .tablet-55 {
width: 55%;
}
.md .row .tablet-50 {
width: 50%;
width: calc((100% - 16px*1) / 2);
}
.md .row.no-gap .tablet-50 {
width: 50%;
}
.md .row .tablet-45 {
width: 45%;
width: calc((100% - 16px*1.2222222222222223) / 2.2222222222222223);
}
.md .row.no-gap .tablet-45 {
width: 45%;
}
.md .row .tablet-40 {
width: 40%;
width: calc((100% - 16px*1.5) / 2.5);
}
.md .row.no-gap .tablet-40 {
width: 40%;
}
.md .row .tablet-35 {
width: 35%;
width: calc((100% - 16px*1.8571428571428572) / 2.857142857142857);
}
.md .row.no-gap .tablet-35 {
width: 35%;
}
.md .row .tablet-33 {
width: 33.333333333333336%;
width: calc((100% - 16px*2) / 3);
}
.md .row.no-gap .tablet-33 {
width: 33.333333333333336%;
}
.md .row .tablet-30 {
width: 30%;
width: calc((100% - 16px*2.3333333333333335) / 3.3333333333333335);
}
.md .row.no-gap .tablet-30 {
width: 30%;
}
.md .row .tablet-25 {
width: 25%;
width: calc((100% - 16px*3) / 4);
}
.md .row.no-gap .tablet-25 {
width: 25%;
}
.md .row .tablet-20 {
width: 20%;
width: calc((100% - 16px*4) / 5);
}
.md .row.no-gap .tablet-20 {
width: 20%;
}
.md .row .tablet-15 {
width: 15%;
width: calc((100% - 16px*5.666666666666667) / 6.666666666666667);
}
.md .row.no-gap .tablet-15 {
width: 15%;
}
.md .row .tablet-10 {
width: 10%;
width: calc((100% - 16px*9) / 10);
}
.md .row.no-gap .tablet-10 {
width: 10%;
}
.md .row .tablet-5 {
width: 5%;
width: calc((100% - 16px*19) / 20);
}
.md .row.no-gap .tablet-5 {
width: 5%;
}
.md .row .tablet-auto:nth-last-child(1),
.md .row .tablet-auto:nth-last-child(1) ~ .tablet-auto {
width: 100%;
width: calc((100% - 16px*0) / 1);
}
.md .row.no-gap .tablet-auto:nth-last-child(1),
.md .row.no-gap .tablet-auto:nth-last-child(1) ~ .tablet-auto {
width: 100%;
}
.md .row .tablet-auto:nth-last-child(2),
.md .row .tablet-auto:nth-last-child(2) ~ .tablet-auto {
width: 50%;
width: calc((100% - 16px*1) / 2);
}
.md .row.no-gap .tablet-auto:nth-last-child(2),
.md .row.no-gap .tablet-auto:nth-last-child(2) ~ .tablet-auto {
width: 50%;
}
.md .row .tablet-auto:nth-last-child(3),
.md .row .tablet-auto:nth-last-child(3) ~ .tablet-auto {
width: 33.33333333%;
width: calc((100% - 16px*2) / 3);
}
.md .row.no-gap .tablet-auto:nth-last-child(3),
.md .row.no-gap .tablet-auto:nth-last-child(3) ~ .tablet-auto {
width: 33.33333333%;
}
.md .row .tablet-auto:nth-last-child(4),
.md .row .tablet-auto:nth-last-child(4) ~ .tablet-auto {
width: 25%;
width: calc((100% - 16px*3) / 4);
}
.md .row.no-gap .tablet-auto:nth-last-child(4),
.md .row.no-gap .tablet-auto:nth-last-child(4) ~ .tablet-auto {
width: 25%;
}
.md .row .tablet-auto:nth-last-child(5),
.md .row .tablet-auto:nth-last-child(5) ~ .tablet-auto {
width: 20%;
width: calc((100% - 16px*4) / 5);
}
.md .row.no-gap .tablet-auto:nth-last-child(5),
.md .row.no-gap .tablet-auto:nth-last-child(5) ~ .tablet-auto {
width: 20%;
}
.md .row .tablet-auto:nth-last-child(6),
.md .row .tablet-auto:nth-last-child(6) ~ .tablet-auto {
width: 16.66666667%;
width: calc((100% - 16px*5) / 6);
}
.md .row.no-gap .tablet-auto:nth-last-child(6),
.md .row.no-gap .tablet-auto:nth-last-child(6) ~ .tablet-auto {
width: 16.66666667%;
}
.md .row .tablet-auto:nth-last-child(7),
.md .row .tablet-auto:nth-last-child(7) ~ .tablet-auto {
width: 14.28571429%;
width: calc((100% - 16px*6) / 7);
}
.md .row.no-gap .tablet-auto:nth-last-child(7),
.md .row.no-gap .tablet-auto:nth-last-child(7) ~ .tablet-auto {
width: 14.28571429%;
}
.md .row .tablet-auto:nth-last-child(8),
.md .row .tablet-auto:nth-last-child(8) ~ .tablet-auto {
width: 12.5%;
width: calc((100% - 16px*7) / 8);
}
.md .row.no-gap .tablet-auto:nth-last-child(8),
.md .row.no-gap .tablet-auto:nth-last-child(8) ~ .tablet-auto {
width: 12.5%;
}
.md .row .tablet-auto:nth-last-child(9),
.md .row .tablet-auto:nth-last-child(9) ~ .tablet-auto {
width: 11.11111111%;
width: calc((100% - 16px*8) / 9);
}
.md .row.no-gap .tablet-auto:nth-last-child(9),
.md .row.no-gap .tablet-auto:nth-last-child(9) ~ .tablet-auto {
width: 11.11111111%;
}
.md .row .tablet-auto:nth-last-child(10),
.md .row .tablet-auto:nth-last-child(10) ~ .tablet-auto {
width: 10%;
width: calc((100% - 16px*9) / 10);
}
.md .row.no-gap .tablet-auto:nth-last-child(10),
.md .row.no-gap .tablet-auto:nth-last-child(10) ~ .tablet-auto {
width: 10%;
}
.md .row .tablet-auto:nth-last-child(11),
.md .row .tablet-auto:nth-last-child(11) ~ .tablet-auto {
width: 9.09090909%;
width: calc((100% - 16px*10) / 11);
}
.md .row.no-gap .tablet-auto:nth-last-child(11),
.md .row.no-gap .tablet-auto:nth-last-child(11) ~ .tablet-auto {
width: 9.09090909%;
}
.md .row .tablet-auto:nth-last-child(12),
.md .row .tablet-auto:nth-last-child(12) ~ .tablet-auto {
width: 8.33333333%;
width: calc((100% - 16px*11) / 12);
}
.md .row.no-gap .tablet-auto:nth-last-child(12),
.md .row.no-gap .tablet-auto:nth-last-child(12) ~ .tablet-auto {
width: 8.33333333%;
}
.md .row .tablet-auto:nth-last-child(13),
.md .row .tablet-auto:nth-last-child(13) ~ .tablet-auto {
width: 7.69230769%;
width: calc((100% - 16px*12) / 13);
}
.md .row.no-gap .tablet-auto:nth-last-child(13),
.md .row.no-gap .tablet-auto:nth-last-child(13) ~ .tablet-auto {
width: 7.69230769%;
}
.md .row .tablet-auto:nth-last-child(14),
.md .row .tablet-auto:nth-last-child(14) ~ .tablet-auto {
width: 7.14285714%;
width: calc((100% - 16px*13) / 14);
}
.md .row.no-gap .tablet-auto:nth-last-child(14),
.md .row.no-gap .tablet-auto:nth-last-child(14) ~ .tablet-auto {
width: 7.14285714%;
}
.md .row .tablet-auto:nth-last-child(15),
.md .row .tablet-auto:nth-last-child(15) ~ .tablet-auto {
width: 6.66666667%;
width: calc((100% - 16px*14) / 15);
}
.md .row.no-gap .tablet-auto:nth-last-child(15),
.md .row.no-gap .tablet-auto:nth-last-child(15) ~ .tablet-auto {
width: 6.66666667%;
}
.md .row .tablet-auto:nth-last-child(16),
.md .row .tablet-auto:nth-last-child(16) ~ .tablet-auto {
width: 6.25%;
width: calc((100% - 16px*15) / 16);
}
.md .row.no-gap .tablet-auto:nth-last-child(16),
.md .row.no-gap .tablet-auto:nth-last-child(16) ~ .tablet-auto {
width: 6.25%;
}
.md .row .tablet-auto:nth-last-child(17),
.md .row .tablet-auto:nth-last-child(17) ~ .tablet-auto {
width: 5.88235294%;
width: calc((100% - 16px*16) / 17);
}
.md .row.no-gap .tablet-auto:nth-last-child(17),
.md .row.no-gap .tablet-auto:nth-last-child(17) ~ .tablet-auto {
width: 5.88235294%;
}
.md .row .tablet-auto:nth-last-child(18),
.md .row .tablet-auto:nth-last-child(18) ~ .tablet-auto {
width: 5.55555556%;
width: calc((100% - 16px*17) / 18);
}
.md .row.no-gap .tablet-auto:nth-last-child(18),
.md .row.no-gap .tablet-auto:nth-last-child(18) ~ .tablet-auto {
width: 5.55555556%;
}
.md .row .tablet-auto:nth-last-child(19),
.md .row .tablet-auto:nth-last-child(19) ~ .tablet-auto {
width: 5.26315789%;
width: calc((100% - 16px*18) / 19);
}
.md .row.no-gap .tablet-auto:nth-last-child(19),
.md .row.no-gap .tablet-auto:nth-last-child(19) ~ .tablet-auto {
width: 5.26315789%;
}
.md .row .tablet-auto:nth-last-child(20),
.md .row .tablet-auto:nth-last-child(20) ~ .tablet-auto {
width: 5%;
width: calc((100% - 16px*19) / 20);
}
.md .row.no-gap .tablet-auto:nth-last-child(20),
.md .row.no-gap .tablet-auto:nth-last-child(20) ~ .tablet-auto {
width: 5%;
}
.md .row .tablet-auto:nth-last-child(21),
.md .row .tablet-auto:nth-last-child(21) ~ .tablet-auto {
width: 4.76190476%;
width: calc((100% - 16px*20) / 21);
}
.md .row.no-gap .tablet-auto:nth-last-child(21),
.md .row.no-gap .tablet-auto:nth-last-child(21) ~ .tablet-auto {
width: 4.76190476%;
}
}
@media (min-width: 1025px) {
.md .row .desktop-100 {
width: 100%;
width: calc((100% - 16px*0) / 1);
}
.md .row.no-gap .desktop-100 {
width: 100%;
}
.md .row .desktop-95 {
width: 95%;
width: calc((100% - 16px*0.05263157894736836) / 1.0526315789473684);
}
.md .row.no-gap .desktop-95 {
width: 95%;
}
.md .row .desktop-90 {
width: 90%;
width: calc((100% - 16px*0.11111111111111116) / 1.1111111111111112);
}
.md .row.no-gap .desktop-90 {
width: 90%;
}
.md .row .desktop-85 {
width: 85%;
width: calc((100% - 16px*0.17647058823529416) / 1.1764705882352942);
}
.md .row.no-gap .desktop-85 {
width: 85%;
}
.md .row .desktop-80 {
width: 80%;
width: calc((100% - 16px*0.25) / 1.25);
}
.md .row.no-gap .desktop-80 {
width: 80%;
}
.md .row .desktop-75 {
width: 75%;
width: calc((100% - 16px*0.33333333333333326) / 1.3333333333333333);
}
.md .row.no-gap .desktop-75 {
width: 75%;
}
.md .row .desktop-70 {
width: 70%;
width: calc((100% - 16px*0.4285714285714286) / 1.4285714285714286);
}
.md .row.no-gap .desktop-70 {
width: 70%;
}
.md .row .desktop-66 {
width: 66.66666666666666%;
width: calc((100% - 16px*0.5000000000000002) / 1.5000000000000002);
}
.md .row.no-gap .desktop-66 {
width: 66.66666666666666%;
}
.md .row .desktop-65 {
width: 65%;
width: calc((100% - 16px*0.5384615384615385) / 1.5384615384615385);
}
.md .row.no-gap .desktop-65 {
width: 65%;
}
.md .row .desktop-60 {
width: 60%;
width: calc((100% - 16px*0.6666666666666667) / 1.6666666666666667);
}
.md .row.no-gap .desktop-60 {
width: 60%;
}
.md .row .desktop-55 {
width: 55%;
width: calc((100% - 16px*0.8181818181818181) / 1.8181818181818181);
}
.md .row.no-gap .desktop-55 {
width: 55%;
}
.md .row .desktop-50 {
width: 50%;
width: calc((100% - 16px*1) / 2);
}
.md .row.no-gap .desktop-50 {
width: 50%;
}
.md .row .desktop-45 {
width: 45%;
width: calc((100% - 16px*1.2222222222222223) / 2.2222222222222223);
}
.md .row.no-gap .desktop-45 {
width: 45%;
}
.md .row .desktop-40 {
width: 40%;
width: calc((100% - 16px*1.5) / 2.5);
}
.md .row.no-gap .desktop-40 {
width: 40%;
}
.md .row .desktop-35 {
width: 35%;
width: calc((100% - 16px*1.8571428571428572) / 2.857142857142857);
}
.md .row.no-gap .desktop-35 {
width: 35%;
}
.md .row .desktop-33 {
width: 33.333333333333336%;
width: calc((100% - 16px*2) / 3);
}
.md .row.no-gap .desktop-33 {
width: 33.333333333333336%;
}
.md .row .desktop-30 {
width: 30%;
width: calc((100% - 16px*2.3333333333333335) / 3.3333333333333335);
}
.md .row.no-gap .desktop-30 {
width: 30%;
}
.md .row .desktop-25 {
width: 25%;
width: calc((100% - 16px*3) / 4);
}
.md .row.no-gap .desktop-25 {
width: 25%;
}
.md .row .desktop-20 {
width: 20%;
width: calc((100% - 16px*4) / 5);
}
.md .row.no-gap .desktop-20 {
width: 20%;
}
.md .row .desktop-15 {
width: 15%;
width: calc((100% - 16px*5.666666666666667) / 6.666666666666667);
}
.md .row.no-gap .desktop-15 {
width: 15%;
}
.md .row .desktop-10 {
width: 10%;
width: calc((100% - 16px*9) / 10);
}
.md .row.no-gap .desktop-10 {
width: 10%;
}
.md .row .desktop-5 {
width: 5%;
width: calc((100% - 16px*19) / 20);
}
.md .row.no-gap .desktop-5 {
width: 5%;
}
.md .row .desktop-auto:nth-last-child(1),
.md .row .desktop-auto:nth-last-child(1) ~ .desktop-auto {
width: 100%;
width: calc((100% - 16px*0) / 1);
}
.md .row.no-gap .desktop-auto:nth-last-child(1),
.md .row.no-gap .desktop-auto:nth-last-child(1) ~ .desktop-auto {
width: 100%;
}
.md .row .desktop-auto:nth-last-child(2),
.md .row .desktop-auto:nth-last-child(2) ~ .desktop-auto {
width: 50%;
width: calc((100% - 16px*1) / 2);
}
.md .row.no-gap .desktop-auto:nth-last-child(2),
.md .row.no-gap .desktop-auto:nth-last-child(2) ~ .desktop-auto {
width: 50%;
}
.md .row .desktop-auto:nth-last-child(3),
.md .row .desktop-auto:nth-last-child(3) ~ .desktop-auto {
width: 33.33333333%;
width: calc((100% - 16px*2) / 3);
}
.md .row.no-gap .desktop-auto:nth-last-child(3),
.md .row.no-gap .desktop-auto:nth-last-child(3) ~ .desktop-auto {
width: 33.33333333%;
}
.md .row .desktop-auto:nth-last-child(4),
.md .row .desktop-auto:nth-last-child(4) ~ .desktop-auto {
width: 25%;
width: calc((100% - 16px*3) / 4);
}
.md .row.no-gap .desktop-auto:nth-last-child(4),
.md .row.no-gap .desktop-auto:nth-last-child(4) ~ .desktop-auto {
width: 25%;
}
.md .row .desktop-auto:nth-last-child(5),
.md .row .desktop-auto:nth-last-child(5) ~ .desktop-auto {
width: 20%;
width: calc((100% - 16px*4) / 5);
}
.md .row.no-gap .desktop-auto:nth-last-child(5),
.md .row.no-gap .desktop-auto:nth-last-child(5) ~ .desktop-auto {
width: 20%;
}
.md .row .desktop-auto:nth-last-child(6),
.md .row .desktop-auto:nth-last-child(6) ~ .desktop-auto {
width: 16.66666667%;
width: calc((100% - 16px*5) / 6);
}
.md .row.no-gap .desktop-auto:nth-last-child(6),
.md .row.no-gap .desktop-auto:nth-last-child(6) ~ .desktop-auto {
width: 16.66666667%;
}
.md .row .desktop-auto:nth-last-child(7),
.md .row .desktop-auto:nth-last-child(7) ~ .desktop-auto {
width: 14.28571429%;
width: calc((100% - 16px*6) / 7);
}
.md .row.no-gap .desktop-auto:nth-last-child(7),
.md .row.no-gap .desktop-auto:nth-last-child(7) ~ .desktop-auto {
width: 14.28571429%;
}
.md .row .desktop-auto:nth-last-child(8),
.md .row .desktop-auto:nth-last-child(8) ~ .desktop-auto {
width: 12.5%;
width: calc((100% - 16px*7) / 8);
}
.md .row.no-gap .desktop-auto:nth-last-child(8),
.md .row.no-gap .desktop-auto:nth-last-child(8) ~ .desktop-auto {
width: 12.5%;
}
.md .row .desktop-auto:nth-last-child(9),
.md .row .desktop-auto:nth-last-child(9) ~ .desktop-auto {
width: 11.11111111%;
width: calc((100% - 16px*8) / 9);
}
.md .row.no-gap .desktop-auto:nth-last-child(9),
.md .row.no-gap .desktop-auto:nth-last-child(9) ~ .desktop-auto {
width: 11.11111111%;
}
.md .row .desktop-auto:nth-last-child(10),
.md .row .desktop-auto:nth-last-child(10) ~ .desktop-auto {
width: 10%;
width: calc((100% - 16px*9) / 10);
}
.md .row.no-gap .desktop-auto:nth-last-child(10),
.md .row.no-gap .desktop-auto:nth-last-child(10) ~ .desktop-auto {
width: 10%;
}
.md .row .desktop-auto:nth-last-child(11),
.md .row .desktop-auto:nth-last-child(11) ~ .desktop-auto {
width: 9.09090909%;
width: calc((100% - 16px*10) / 11);
}
.md .row.no-gap .desktop-auto:nth-last-child(11),
.md .row.no-gap .desktop-auto:nth-last-child(11) ~ .desktop-auto {
width: 9.09090909%;
}
.md .row .desktop-auto:nth-last-child(12),
.md .row .desktop-auto:nth-last-child(12) ~ .desktop-auto {
width: 8.33333333%;
width: calc((100% - 16px*11) / 12);
}
.md .row.no-gap .desktop-auto:nth-last-child(12),
.md .row.no-gap .desktop-auto:nth-last-child(12) ~ .desktop-auto {
width: 8.33333333%;
}
.md .row .desktop-auto:nth-last-child(13),
.md .row .desktop-auto:nth-last-child(13) ~ .desktop-auto {
width: 7.69230769%;
width: calc((100% - 16px*12) / 13);
}
.md .row.no-gap .desktop-auto:nth-last-child(13),
.md .row.no-gap .desktop-auto:nth-last-child(13) ~ .desktop-auto {
width: 7.69230769%;
}
.md .row .desktop-auto:nth-last-child(14),
.md .row .desktop-auto:nth-last-child(14) ~ .desktop-auto {
width: 7.14285714%;
width: calc((100% - 16px*13) / 14);
}
.md .row.no-gap .desktop-auto:nth-last-child(14),
.md .row.no-gap .desktop-auto:nth-last-child(14) ~ .desktop-auto {
width: 7.14285714%;
}
.md .row .desktop-auto:nth-last-child(15),
.md .row .desktop-auto:nth-last-child(15) ~ .desktop-auto {
width: 6.66666667%;
width: calc((100% - 16px*14) / 15);
}
.md .row.no-gap .desktop-auto:nth-last-child(15),
.md .row.no-gap .desktop-auto:nth-last-child(15) ~ .desktop-auto {
width: 6.66666667%;
}
.md .row .desktop-auto:nth-last-child(16),
.md .row .desktop-auto:nth-last-child(16) ~ .desktop-auto {
width: 6.25%;
width: calc((100% - 16px*15) / 16);
}
.md .row.no-gap .desktop-auto:nth-last-child(16),
.md .row.no-gap .desktop-auto:nth-last-child(16) ~ .desktop-auto {
width: 6.25%;
}
.md .row .desktop-auto:nth-last-child(17),
.md .row .desktop-auto:nth-last-child(17) ~ .desktop-auto {
width: 5.88235294%;
width: calc((100% - 16px*16) / 17);
}
.md .row.no-gap .desktop-auto:nth-last-child(17),
.md .row.no-gap .desktop-auto:nth-last-child(17) ~ .desktop-auto {
width: 5.88235294%;
}
.md .row .desktop-auto:nth-last-child(18),
.md .row .desktop-auto:nth-last-child(18) ~ .desktop-auto {
width: 5.55555556%;
width: calc((100% - 16px*17) / 18);
}
.md .row.no-gap .desktop-auto:nth-last-child(18),
.md .row.no-gap .desktop-auto:nth-last-child(18) ~ .desktop-auto {
width: 5.55555556%;
}
.md .row .desktop-auto:nth-last-child(19),
.md .row .desktop-auto:nth-last-child(19) ~ .desktop-auto {
width: 5.26315789%;
width: calc((100% - 16px*18) / 19);
}
.md .row.no-gap .desktop-auto:nth-last-child(19),
.md .row.no-gap .desktop-auto:nth-last-child(19) ~ .desktop-auto {
width: 5.26315789%;
}
.md .row .desktop-auto:nth-last-child(20),
.md .row .desktop-auto:nth-last-child(20) ~ .desktop-auto {
width: 5%;
width: calc((100% - 16px*19) / 20);
}
.md .row.no-gap .desktop-auto:nth-last-child(20),
.md .row.no-gap .desktop-auto:nth-last-child(20) ~ .desktop-auto {
width: 5%;
}
.md .row .desktop-auto:nth-last-child(21),
.md .row .desktop-auto:nth-last-child(21) ~ .desktop-auto {
width: 4.76190476%;
width: calc((100% - 16px*20) / 21);
}
.md .row.no-gap .desktop-auto:nth-last-child(21),
.md .row.no-gap .desktop-auto:nth-last-child(21) ~ .desktop-auto {
width: 4.76190476%;
}
}
/* === Calendar/Datepicker === */
.calendar {
overflow: hidden;
height: 320px;
width: 100%;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
}
.calendar.modal-in {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
@media (orientation: landscape) and (max-height: 415px) {
.calendar.calendar-sheet {
height: 220px;
}
.calendar.calendar-modal {
height: calc(100vh - 44px);
}
}
.calendar.calendar-inline,
.calendar.calendar-popover .calendar {
position: relative;
}
.calendar-modal {
position: absolute;
height: 420px;
overflow: hidden;
top: 50%;
left: 50%;
min-width: 300px;
max-width: 380px;
-webkit-transform: translate3d(-50%, 100%, 0);
transform: translate3d(-50%, 100%, 0);
-webkit-transition-property: -webkit-transform;
transition-property: -webkit-transform;
transition-property: transform;
transition-property: transform, -webkit-transform;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
z-index: 12000;
background: #fff;
width: 90%;
border-radius: 4px;
-webkit-box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22);
box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22);
}
.calendar-modal.modal-in,
.calendar-modal.modal-out {
-webkit-transition-duration: 400ms;
transition-duration: 400ms;
}
.calendar-modal.modal-in {
-webkit-transform: translate3d(-50%, -50%, 0);
transform: translate3d(-50%, -50%, 0);
}
.calendar-modal.modal-out {
-webkit-transform: translate3d(-50%, 100%, 0);
transform: translate3d(-50%, 100%, 0);
}
.calendar-popover {
width: 320px;
}
.calendar-popover .calendar {
height: 320px;
}
.calendar-week-header {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-sizing: border-box;
box-sizing: border-box;
position: relative;
font-size: 11px;
}
.calendar-week-header .calendar-week-day {
-webkit-flex-shrink: 1;
-ms-flex-negative: 1;
flex-shrink: 1;
width: 14.28571429%;
width: calc(100% / 7);
text-align: center;
}
.calendar-months {
width: 100%;
height: 100%;
overflow: hidden;
position: relative;
-webkit-flex-shrink: 10;
-ms-flex-negative: 10;
flex-shrink: 10;
}
.calendar-months-wrapper {
position: relative;
width: 100%;
height: 100%;
-webkit-transition: 300ms;
transition: 300ms;
}
.calendar-month {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
}
.calendar-row {
height: 16.66666667%;
height: calc(100% / 6);
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-shrink: 1;
-ms-flex-negative: 1;
flex-shrink: 1;
width: 100%;
position: relative;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.calendar-day {
-webkit-flex-shrink: 1;
-ms-flex-negative: 1;
flex-shrink: 1;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 14.28571429%;
width: calc(100% / 7);
text-align: center;
cursor: pointer;
z-index: 20;
color: #000;
height: 100%;
}
.calendar-day.calendar-day-prev,
.calendar-day.calendar-day-next {
color: #b8b8b8;
}
.calendar-day.calendar-day-disabled {
color: #d4d4d4;
cursor: auto;
}
.calendar-day.calendar-day-selected span {
color: #fff;
}
.calendar-day.calendar-day-has-events span:after {
content: '';
width: 4px;
height: 4px;
border-radius: 50%;
position: absolute;
margin-left: -2px;
left: 50%;
bottom: 1px;
}
.calendar-day span {
display: inline-block;
border-radius: 100%;
position: relative;
}
.calendar-range .calendar-day.calendar-day-selected {
-webkit-box-align: stretch;
-webkit-align-items: stretch;
-ms-flex-align: stretch;
align-items: stretch;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
}
.calendar-range .calendar-day.calendar-day-selected span {
width: 100%;
border-radius: 0;
height: auto;
text-align: center;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
}
.calendar-month-selector,
.calendar-year-selector {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
width: 50%;
max-width: 200px;
-webkit-flex-shrink: 10;
-ms-flex-negative: 10;
flex-shrink: 10;
}
.calendar-month-selector span,
.calendar-year-selector span {
-webkit-flex-shrink: 1;
-ms-flex-negative: 1;
flex-shrink: 1;
position: relative;
overflow: hidden;
text-overflow: ellipsis;
}
.md .calendar-header {
height: 56px;
background: #2196f3;
font-size: 20px;
line-height: 56px;
padding: 0 24px;
color: #fff;
position: relative;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.md .calendar-footer {
position: relative;
width: 100%;
height: 48px;
padding: 6px 8px;
overflow: hidden;
-webkit-box-sizing: border-box;
box-sizing: border-box;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: end;
-webkit-justify-content: flex-end;
-ms-flex-pack: end;
justify-content: flex-end;
}
.md .calendar .toolbar {
background: none !important;
color: #212121;
}
.md .calendar .toolbar a.link:before {
content: '';
width: 152%;
height: 152%;
position: absolute;
left: -26%;
top: -26%;
background-image: -webkit-radial-gradient(center, circle, rgba(0, 0, 0, 0.15) 66%, rgba(0, 0, 0, 0) 66%);
background-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.15) 66%, rgba(0, 0, 0, 0) 66%);
background-repeat: no-repeat;
background-position: center;
background-size: 100% 100%;
opacity: 0;
pointer-events: none;
-webkit-transition-duration: 600ms;
transition-duration: 600ms;
}
.md .calendar .toolbar a.link.active-state:before {
opacity: 1;
-webkit-transition-duration: 150ms;
transition-duration: 150ms;
}
.md .calendar .toolbar a.link .ripple-wave {
background: rgba(0, 0, 0, 0.1);
}
.md .calendar .toolbar .icon-next,
.md .calendar .toolbar .icon-prev,
.md .calendar .toolbar .icon-forward,
.md .calendar .toolbar .icon-back {
opacity: 0.54;
}
.md .calendar-week-header {
color: rgba(0, 0, 0, 0.54);
height: 24px;
}
.md .calendar-week-header .calendar-week-day {
line-height: 24px;
}
.md .calendar-day.calendar-day-today span {
color: #2196f3;
}
.md .calendar-day.calendar-day-has-events span:after {
background: #2196f3;
}
.md .calendar-day.calendar-day-has-events.calendar-day-selected span:after {
background-color: #fff;
}
.md .calendar-day.calendar-day-selected span {
background: #2196f3;
color: #fff;
}
.md .calendar-day span {
width: 36px;
height: 36px;
line-height: 36px;
}
.md .calendar-range .calendar-day.calendar-day-selected span {
color: #fff;
}
.md .calendar-month-selector a.icon-only,
.md .calendar-year-selector a.icon-only {
min-width: 36px;
}
.md .calendar-sheet:before {
content: '';
position: absolute;
background-color: #ccc;
display: block;
z-index: 15;
top: 0;
right: auto;
bottom: auto;
left: 0;
height: 1px;
width: 100%;
-webkit-transform-origin: 50% 0%;
transform-origin: 50% 0%;
}
.md.device-pixel-ratio-2 .calendar-sheet:before {
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.md.device-pixel-ratio-3 .calendar-sheet:before {
-webkit-transform: scaleY(0.33);
transform: scaleY(0.33);
}
.md.device-iphone-x .calendar-sheet .sheet-modal-inner {
margin-bottom: constant(safe-area-inset-bottom);
margin-bottom: env(safe-area-inset-bottom);
}
@media (orientation: landscape) {
.md.device-iphone-x .ios-left-edge.calendar .calendar-row,
.md.device-iphone-x .ios-edges.calendar .calendar-row,
.md.device-iphone-x .popup.calendar .calendar-row,
.md.device-iphone-x .sheet-modal.calendar .calendar-row,
.md.device-iphone-x .panel-left.calendar .calendar-row,
.md.device-iphone-x .ios-left-edge .calendar:not(.no-ios-edges):not(.no-ios-left-edge) .calendar-row,
.md.device-iphone-x .ios-edges .calendar:not(.no-ios-edges):not(.no-ios-left-edge) .calendar-row,
.md.device-iphone-x .popup .calendar:not(.no-ios-edges):not(.no-ios-left-edge) .calendar-row,
.md.device-iphone-x .sheet-modal .calendar:not(.no-ios-edges):not(.no-ios-left-edge) .calendar-row,
.md.device-iphone-x .panel-left .calendar:not(.no-ios-edges):not(.no-ios-left-edge) .calendar-row,
.md.device-iphone-x .ios-left-edge.calendar .calendar-week-header,
.md.device-iphone-x .ios-edges.calendar .calendar-week-header,
.md.device-iphone-x .popup.calendar .calendar-week-header,
.md.device-iphone-x .sheet-modal.calendar .calendar-week-header,
.md.device-iphone-x .panel-left.calendar .calendar-week-header,
.md.device-iphone-x .ios-left-edge .calendar:not(.no-ios-edges):not(.no-ios-left-edge) .calendar-week-header,
.md.device-iphone-x .ios-edges .calendar:not(.no-ios-edges):not(.no-ios-left-edge) .calendar-week-header,
.md.device-iphone-x .popup .calendar:not(.no-ios-edges):not(.no-ios-left-edge) .calendar-week-header,
.md.device-iphone-x .sheet-modal .calendar:not(.no-ios-edges):not(.no-ios-left-edge) .calendar-week-header,
.md.device-iphone-x .panel-left .calendar:not(.no-ios-edges):not(.no-ios-left-edge) .calendar-week-header {
padding-left: constant(safe-area-inset-left);
padding-left: env(safe-area-inset-left);
}
.md.device-iphone-x .ios-right-edge.calendar .calendar-row,
.md.device-iphone-x .ios-edges.calendar .calendar-row,
.md.device-iphone-x .popup.calendar .calendar-row,
.md.device-iphone-x .sheet-modal.calendar .calendar-row,
.md.device-iphone-x .panel-right.calendar .calendar-row,
.md.device-iphone-x .ios-right-edge .calendar:not(.no-ios-edges):not(.no-ios-right-edge) .calendar-row,
.md.device-iphone-x .ios-edges .calendar:not(.no-ios-edges):not(.no-ios-right-edge) .calendar-row,
.md.device-iphone-x .popup .calendar:not(.no-ios-edges):not(.no-ios-right-edge) .calendar-row,
.md.device-iphone-x .sheet-modal .calendar:not(.no-ios-edges):not(.no-ios-right-edge) .calendar-row,
.md.device-iphone-x .panel-right .calendar:not(.no-ios-edges):not(.no-ios-right-edge) .calendar-row,
.md.device-iphone-x .ios-right-edge.calendar .calendar-week-header,
.md.device-iphone-x .ios-edges.calendar .calendar-week-header,
.md.device-iphone-x .popup.calendar .calendar-week-header,
.md.device-iphone-x .sheet-modal.calendar .calendar-week-header,
.md.device-iphone-x .panel-right.calendar .calendar-week-header,
.md.device-iphone-x .ios-right-edge .calendar:not(.no-ios-edges):not(.no-ios-right-edge) .calendar-week-header,
.md.device-iphone-x .ios-edges .calendar:not(.no-ios-edges):not(.no-ios-right-edge) .calendar-week-header,
.md.device-iphone-x .popup .calendar:not(.no-ios-edges):not(.no-ios-right-edge) .calendar-week-header,
.md.device-iphone-x .sheet-modal .calendar:not(.no-ios-edges):not(.no-ios-right-edge) .calendar-week-header,
.md.device-iphone-x .panel-right .calendar:not(.no-ios-edges):not(.no-ios-right-edge) .calendar-week-header {
padding-right: constant(safe-area-inset-right);
padding-right: env(safe-area-inset-right);
}
}
.md .theme-dark .calendar-popover .calendar-week-header {
background-color: transparent;
}
.md .theme-dark .calendar-week-header {
color: rgba(255, 255, 255, 0.54);
}
.md .theme-dark .calendar-day {
color: rgba(255, 255, 255, 0.87);
}
.md .theme-dark .calendar-day.calendar-day-disabled {
color: rgba(255, 255, 255, 0.54);
}
.md .theme-dark .calendar-day.calendar-day-prev,
.md .theme-dark .calendar-day.calendar-day-next {
color: rgba(255, 255, 255, 0.35);
}
.md .theme-dark .calendar-modal,
.calendar-modal.md .theme-dark {
background: #202020;
}
.md .theme-dark .calendar.calendar-sheet:before,
.calendar.md .theme-dark.calendar-sheet:before {
background-color: rgba(255, 255, 255, 0.2);
}
.md .theme-dark .calendar .toolbar,
.calendar.md .theme-dark .toolbar {
color: rgba(255, 255, 255, 0.54);
}
.md .theme-dark .calendar .toolbar a.link:before,
.calendar.md .theme-dark .toolbar a.link:before {
content: '';
width: 152%;
height: 152%;
position: absolute;
left: -26%;
top: -26%;
background-image: -webkit-radial-gradient(center, circle, rgba(255, 255, 255, 0.15) 66%, rgba(255, 255, 255, 0) 66%);
background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 66%, rgba(255, 255, 255, 0) 66%);
background-repeat: no-repeat;
background-position: center;
background-size: 100% 100%;
opacity: 0;
pointer-events: none;
-webkit-transition-duration: 600ms;
transition-duration: 600ms;
}
.md .theme-dark .calendar .toolbar a.link.active-state:before,
.calendar.md .theme-dark .toolbar a.link.active-state:before {
opacity: 1;
-webkit-transition-duration: 150ms;
transition-duration: 150ms;
}
.md .theme-dark .calendar .toolbar a.link .ripple-wave,
.calendar.md .theme-dark .toolbar a.link .ripple-wave {
background-color: rgba(255, 255, 255, 0.3);
}
.md .color-theme-red .calendar-header,
.md .color-red .calendar-header {
background: #f44336;
}
.md .color-theme-red .calendar-day.calendar-day-today span,
.md .color-red .calendar-day.calendar-day-today span {
color: #f44336;
}
.md .color-theme-red .calendar-day.calendar-day-has-events span:after,
.md .color-red .calendar-day.calendar-day-has-events span:after {
background: #f44336;
}
.md .color-theme-red .calendar-day.calendar-day-selected span,
.md .color-red .calendar-day.calendar-day-selected span {
background: #f44336;
color: #fff;
}
.md .color-theme-red .calendar-day.calendar-day-selected span:after,
.md .color-red .calendar-day.calendar-day-selected span:after {
background-color: #fff;
}
.md .color-theme-green .calendar-header,
.md .color-green .calendar-header {
background: #4caf50;
}
.md .color-theme-green .calendar-day.calendar-day-today span,
.md .color-green .calendar-day.calendar-day-today span {
color: #4caf50;
}
.md .color-theme-green .calendar-day.calendar-day-has-events span:after,
.md .color-green .calendar-day.calendar-day-has-events span:after {
background: #4caf50;
}
.md .color-theme-green .calendar-day.calendar-day-selected span,
.md .color-green .calendar-day.calendar-day-selected span {
background: #4caf50;
color: #fff;
}
.md .color-theme-green .calendar-day.calendar-day-selected span:after,
.md .color-green .calendar-day.calendar-day-selected span:after {
background-color: #fff;
}
.md .color-theme-blue .calendar-header,
.md .color-blue .calendar-header {
background: #2196f3;
}
.md .color-theme-blue .calendar-day.calendar-day-today span,
.md .color-blue .calendar-day.calendar-day-today span {
color: #2196f3;
}
.md .color-theme-blue .calendar-day.calendar-day-has-events span:after,
.md .color-blue .calendar-day.calendar-day-has-events span:after {
background: #2196f3;
}
.md .color-theme-blue .calendar-day.calendar-day-selected span,
.md .color-blue .calendar-day.calendar-day-selected span {
background: #2196f3;
color: #fff;
}
.md .color-theme-blue .calendar-day.calendar-day-selected span:after,
.md .color-blue .calendar-day.calendar-day-selected span:after {
background-color: #fff;
}
.md .color-theme-pink .calendar-header,
.md .color-pink .calendar-header {
background: #e91e63;
}
.md .color-theme-pink .calendar-day.calendar-day-today span,
.md .color-pink .calendar-day.calendar-day-today span {
color: #e91e63;
}
.md .color-theme-pink .calendar-day.calendar-day-has-events span:after,
.md .color-pink .calendar-day.calendar-day-has-events span:after {
background: #e91e63;
}
.md .color-theme-pink .calendar-day.calendar-day-selected span,
.md .color-pink .calendar-day.calendar-day-selected span {
background: #e91e63;
color: #fff;
}
.md .color-theme-pink .calendar-day.calendar-day-selected span:after,
.md .color-pink .calendar-day.calendar-day-selected span:after {
background-color: #fff;
}
.md .color-theme-yellow .calendar-header,
.md .color-yellow .calendar-header {
background: #ffeb3b;
}
.md .color-theme-yellow .calendar-day.calendar-day-today span,
.md .color-yellow .calendar-day.calendar-day-today span {
color: #ffeb3b;
}
.md .color-theme-yellow .calendar-day.calendar-day-has-events span:after,
.md .color-yellow .calendar-day.calendar-day-has-events span:after {
background: #ffeb3b;
}
.md .color-theme-yellow .calendar-day.calendar-day-selected span,
.md .color-yellow .calendar-day.calendar-day-selected span {
background: #ffeb3b;
color: #fff;
}
.md .color-theme-yellow .calendar-day.calendar-day-selected span:after,
.md .color-yellow .calendar-day.calendar-day-selected span:after {
background-color: #fff;
}
.md .color-theme-orange .calendar-header,
.md .color-orange .calendar-header {
background: #ff9800;
}
.md .color-theme-orange .calendar-day.calendar-day-today span,
.md .color-orange .calendar-day.calendar-day-today span {
color: #ff9800;
}
.md .color-theme-orange .calendar-day.calendar-day-has-events span:after,
.md .color-orange .calendar-day.calendar-day-has-events span:after {
background: #ff9800;
}
.md .color-theme-orange .calendar-day.calendar-day-selected span,
.md .color-orange .calendar-day.calendar-day-selected span {
background: #ff9800;
color: #fff;
}
.md .color-theme-orange .calendar-day.calendar-day-selected span:after,
.md .color-orange .calendar-day.calendar-day-selected span:after {
background-color: #fff;
}
.md .color-theme-gray .calendar-header,
.md .color-gray .calendar-header {
background: #9e9e9e;
}
.md .color-theme-gray .calendar-day.calendar-day-today span,
.md .color-gray .calendar-day.calendar-day-today span {
color: #9e9e9e;
}
.md .color-theme-gray .calendar-day.calendar-day-has-events span:after,
.md .color-gray .calendar-day.calendar-day-has-events span:after {
background: #9e9e9e;
}
.md .color-theme-gray .calendar-day.calendar-day-selected span,
.md .color-gray .calendar-day.calendar-day-selected span {
background: #9e9e9e;
color: #fff;
}
.md .color-theme-gray .calendar-day.calendar-day-selected span:after,
.md .color-gray .calendar-day.calendar-day-selected span:after {
background-color: #fff;
}
.md .color-theme-white .calendar-header,
.md .color-white .calendar-header {
background: #ffffff;
}
.md .color-theme-white .calendar-day.calendar-day-today span,
.md .color-white .calendar-day.calendar-day-today span {
color: #ffffff;
}
.md .color-theme-white .calendar-day.calendar-day-has-events span:after,
.md .color-white .calendar-day.calendar-day-has-events span:after {
background: #ffffff;
}
.md .color-theme-white .calendar-day.calendar-day-selected span,
.md .color-white .calendar-day.calendar-day-selected span {
background: #ffffff;
color: #fff;
}
.md .color-theme-white .calendar-day.calendar-day-selected span:after,
.md .color-white .calendar-day.calendar-day-selected span:after {
background-color: #fff;
}
.md .color-theme-black .calendar-header,
.md .color-black .calendar-header {
background: #000000;
}
.md .color-theme-black .calendar-day.calendar-day-today span,
.md .color-black .calendar-day.calendar-day-today span {
color: #000000;
}
.md .color-theme-black .calendar-day.calendar-day-has-events span:after,
.md .color-black .calendar-day.calendar-day-has-events span:after {
background: #000000;
}
.md .color-theme-black .calendar-day.calendar-day-selected span,
.md .color-black .calendar-day.calendar-day-selected span {
background: #000000;
color: #fff;
}
.md .color-theme-black .calendar-day.calendar-day-selected span:after,
.md .color-black .calendar-day.calendar-day-selected span:after {
background-color: #fff;
}
/* === Picker === */
.picker {
width: 100%;
height: 260px;
}
.picker.picker-inline,
.popover .picker {
height: 200px;
}
@media (orientation: landscape) and (max-height: 415px) {
.picker:not(.picker-inline) {
height: 200px;
}
}
.picker-popover {
width: 280px;
}
.picker-columns {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
overflow: hidden;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
padding: 0;
text-align: right;
height: 100%;
position: relative;
-webkit-mask-box-image: linear-gradient(to top, transparent, transparent 5%, white 20%, white 80%, transparent 95%, transparent);
}
.picker-column {
position: relative;
max-height: 100%;
}
.picker-column.picker-column-first:before,
.picker-column.picker-column-last:after {
height: 100%;
width: 100vw;
position: absolute;
content: '';
top: 0;
}
.picker-column.picker-column-first:before {
right: 100%;
}
.picker-column.picker-column-last:after {
left: 100%;
}
.picker-column.picker-column-left {
text-align: left;
}
.picker-column.picker-column-center {
text-align: center;
}
.picker-column.picker-column-right {
text-align: right;
}
.picker-column.picker-column-divider {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.picker-items {
-webkit-transition: 300ms;
transition: 300ms;
-webkit-transition-timing-function: ease-out;
transition-timing-function: ease-out;
}
.picker-item {
height: 36px;
line-height: 36px;
white-space: nowrap;
position: relative;
overflow: hidden;
text-overflow: ellipsis;
left: 0;
top: 0;
width: 100%;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-transition: 300ms;
transition: 300ms;
}
.picker-item span {
padding: 0 10px;
}
.picker-column-absolute .picker-item {
position: absolute;
}
.picker-item.picker-item-far {
pointer-events: none;
}
.picker-item.picker-item-selected {
-webkit-transform: translate3d(0, 0, 0) rotateX(0deg);
transform: translate3d(0, 0, 0) rotateX(0deg);
}
.picker-center-highlight {
height: 36px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
position: absolute;
left: 0;
width: 100%;
top: 50%;
margin-top: -18px;
pointer-events: none;
}
.picker-3d .picker-columns {
overflow: hidden;
-webkit-perspective: 1200px;
perspective: 1200px;
}
.picker-3d .picker-column,
.picker-3d .picker-items,
.picker-3d .picker-item {
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
}
.picker-3d .picker-column {
overflow: visible;
}
.picker-3d .picker-item {
-webkit-transform-origin: center center -110px;
transform-origin: center center -110px;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-transition-timing-function: ease-out;
transition-timing-function: ease-out;
}
.md .picker-popover .toolbar {
border-radius: 2px 2px 0 0;
}
.md .picker-columns {
font-size: 20px;
}
.md .picker-column-divider {
color: rgba(0, 0, 0, 0.87);
}
.md .picker-popover .picker > .toolbar + .picker-columns {
height: calc(100% - 48px);
}
.md .picker-center-highlight:before {
content: '';
position: absolute;
background-color: rgba(0, 0, 0, 0.15);
display: block;
z-index: 15;
top: 0;
right: auto;
bottom: auto;
left: 0;
height: 1px;
width: 100%;
-webkit-transform-origin: 50% 0%;
transform-origin: 50% 0%;
}
.md.device-pixel-ratio-2 .picker-center-highlight:before {
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.md.device-pixel-ratio-3 .picker-center-highlight:before {
-webkit-transform: scaleY(0.33);
transform: scaleY(0.33);
}
.md .picker-center-highlight:after {
content: '';
position: absolute;
background-color: rgba(0, 0, 0, 0.15);
display: block;
z-index: 15;
top: auto;
right: auto;
bottom: 0;
left: 0;
height: 1px;
width: 100%;
-webkit-transform-origin: 50% 100%;
transform-origin: 50% 100%;
}
.md.device-pixel-ratio-2 .picker-center-highlight:after {
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.md.device-pixel-ratio-3 .picker-center-highlight:after {
-webkit-transform: scaleY(0.33);
transform: scaleY(0.33);
}
.md .theme-dark .picker-column-divider {
color: rgba(255, 255, 255, 0.87);
}
.md .theme-dark .picker-center-highlight:before {
background-color: rgba(255, 255, 255, 0.15);
}
.md .theme-dark .picker-center-highlight:after {
background-color: rgba(255, 255, 255, 0.15);
}
/* === Infinite === */
.infinite-scroll-preloader {
margin-left: auto;
margin-right: auto;
text-align: center;
}
.infinite-scroll-preloader.preloader {
display: block;
}
.md .infinite-scroll-preloader {
margin-top: 32px;
margin-bottom: 32px;
}
/* === PTR === */
.ptr-preloader .preloader {
position: absolute;
left: 50%;
}
.md .ptr-preloader {
position: absolute;
left: 50%;
top: 16px;
width: 40px;
height: 40px;
border-radius: 50%;
background: #fff;
margin-left: -20px;
margin-top: -7px;
z-index: 100;
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
@media (min-width: 768px) {
.md .ptr-preloader {
top: 24px;
}
}
.md .ptr-preloader .preloader {
width: 22px;
height: 22px;
margin-left: -11px;
margin-top: -11px;
top: 50%;
visibility: hidden;
}
.md .ptr-preloader .preloader .preloader-inner-gap,
.md .ptr-preloader .preloader .preloader-inner-half-circle {
border-width: 3px;
}
.md .ptr-arrow {
width: 22px;
height: 22px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border: 3px solid #757575;
position: absolute;
left: 50%;
top: 50%;
margin-left: -11px;
margin-top: -11px;
border-left-color: transparent;
border-radius: 50%;
opacity: 1;
-webkit-transform: rotate(150deg);
transform: rotate(150deg);
}
.md .ptr-arrow:after {
content: '';
width: 0px;
height: 0px;
position: absolute;
left: -5px;
bottom: 0px;
border-bottom-width: 6px;
border-bottom-style: solid;
border-bottom-color: inherit;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
-webkit-transform: rotate(-40deg);
transform: rotate(-40deg);
}
.md .ptr-content:not(.ptr-refreshing):not(.ptr-pull-up) .ptr-preloader .preloader,
.md .ptr-content:not(.ptr-refreshing):not(.ptr-pull-up) .ptr-preloader .preloader * {
-webkit-animation: none;
animation: none;
}
.md .ptr-refreshing .ptr-preloader .preloader,
.md .ptr-pull-up .ptr-preloader .preloader {
visibility: visible;
}
.md .ptr-refreshing .ptr-arrow,
.md .ptr-pull-up .ptr-arrow {
visibility: hidden;
}
.md .ptr-refreshing .ptr-preloader {
-webkit-transform: translate3d(0, 66px, 0);
transform: translate3d(0, 66px, 0);
}
.md .ptr-transitioning .ptr-arrow {
-webkit-transition: 300ms;
transition: 300ms;
}
.md .ptr-pull-up .ptr-arrow {
-webkit-transition: 400ms;
transition: 400ms;
-webkit-transform: rotate(620deg) !important;
transform: rotate(620deg) !important;
opacity: 0;
}
.md .ptr-transitioning .ptr-preloader,
.md .ptr-refreshing .ptr-preloader {
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
-webkit-transition-property: -webkit-transform;
transition-property: -webkit-transform;
transition-property: transform;
transition-property: transform, -webkit-transform;
}
.md .ptr-no-navbar .ptr-preloader {
top: auto;
bottom: 100%;
margin-bottom: 7px;
}
.md .page-with-subnavbar .ptr-preloader,
.md .toolbar:not(.toolbar-bottom-md) ~ .ptr-content .ptr-preloader,
.md .searchbar ~ .ptr-content .ptr-preloader {
top: 64px;
}
@media (min-width: 768px) {
.md .page-with-subnavbar .ptr-preloader,
.md .toolbar:not(.toolbar-bottom-md) ~ .ptr-content .ptr-preloader,
.md .searchbar ~ .ptr-content .ptr-preloader {
top: 72px;
}
}
/* === Images Lazy Loading === */
.lazy-loaded.lazy-fade-in {
-webkit-animation: lazyFadeIn 600ms;
animation: lazyFadeIn 600ms;
}
@-webkit-keyframes lazyFadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes lazyFadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/* === Data Table === */
.data-table {
overflow-x: auto;
}
.data-table table {
width: 100%;
border: none;
padding: 0;
margin: 0;
border-collapse: collapse;
text-align: left;
}
.data-table thead {
font-size: 12px;
}
.data-table thead th,
.data-table thead td {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
line-height: 16px;
}
.data-table thead i.icon,
.data-table thead i.f7-icons,
.data-table thead i.material-icons {
vertical-align: top;
}
.data-table th,
.data-table td {
padding: 0;
position: relative;
}
.data-table th.numeric-cell,
.data-table td.numeric-cell {
text-align: right;
}
.data-table th.checkbox-cell,
.data-table td.checkbox-cell {
overflow: visible;
}
.data-table th.checkbox-cell label + span,
.data-table td.checkbox-cell label + span {
margin-left: 8px;
}
.data-table th.actions-cell,
.data-table td.actions-cell {
text-align: right;
white-space: nowrap;
}
.data-table th a.icon-only,
.data-table td a.icon-only,
.card .data-table th a.icon-only,
.card .data-table td a.icon-only,
.card.data-table th a.icon-only,
.card.data-table td a.icon-only {
display: inline-block;
vertical-align: middle;
text-align: center;
font-size: 0;
min-width: 0;
}
.data-table th a.icon-only i,
.data-table td a.icon-only i,
.card .data-table th a.icon-only i,
.card .data-table td a.icon-only i,
.card.data-table th a.icon-only i,
.card.data-table td a.icon-only i {
font-size: 18px;
vertical-align: middle;
}
.data-table .sortable-cell:not(.input-cell) {
cursor: pointer;
position: relative;
}
.data-table .sortable-cell.input-cell .table-head-label {
cursor: pointer;
position: relative;
}
.data-table .sortable-cell:not(.numeric-cell):not(.input-cell):after,
.data-table .sortable-cell.numeric-cell:not(.input-cell):before,
.data-table .sortable-cell:not(.numeric-cell).input-cell > .table-head-label:after,
.data-table .sortable-cell.numeric-cell.input-cell > .table-head-label:before {
content: '';
display: inline-block;
vertical-align: top;
width: 16px;
height: 16px;
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20fill%3D'%23000000'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%20width%3D'24'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M0%200h24v24H0V0z'%20fill%3D'none'%2F%3E%3Cpath%20d%3D'M20%2012l-1.41-1.41L13%2016.17V4h-2v12.17l-5.58-5.59L4%2012l8%208%208-8z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E");
background-size: 100% auto;
background-position: center;
background-repeat: no-repeat;
font-size: 0;
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
-webkit-transform: rotate(0);
transform: rotate(0);
opacity: 0;
}
html.device-desktop .data-table .sortable-cell:not(.sortable-cell-active):hover:after,
html.device-desktop .data-table .sortable-cell:not(.sortable-cell-active) .table-head-label:hover:after,
html.device-desktop .data-table .sortable-cell:not(.sortable-cell-active):hover:before,
html.device-desktop .data-table .sortable-cell:not(.sortable-cell-active) .table-head-label:hover:before {
opacity: 0.54;
}
.data-table .sortable-cell.sortable-cell-active:after,
.data-table .sortable-cell.sortable-cell-active .table-head-label:after,
.data-table .sortable-cell.sortable-cell-active:before,
.data-table .sortable-cell.sortable-cell-active .table-head-label:before {
opacity: 0.87 !important;
}
.data-table .sortable-cell.sortable-desc:after,
.data-table .sortable-cell.sortable-desc:after,
.data-table .table-head-label:after,
.data-table .sortable-cell.sortable-desc:before,
.data-table .sortable-cell.sortable-desc:before,
.data-table .table-head-label:before {
-webkit-transform: rotate(180deg) !important;
transform: rotate(180deg) !important;
}
.data-table.card .card-header,
.card .data-table .card-header {
height: 64px;
}
.data-table.card .card-content,
.card .data-table .card-content {
overflow-x: auto;
}
.data-table .data-table-links,
.data-table .data-table-actions {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
.data-table .data-table-actions {
margin-left: auto;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.data-table .data-table-actions a.link {
min-width: 0;
}
.data-table .data-table-actions a.link.icon-only {
line-height: 1;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
padding: 0;
}
.data-table .data-table-header,
.data-table .data-table-header-selected {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
width: 100%;
}
.data-table .data-table-header-selected {
display: none;
}
.data-table.data-table-has-checked .data-table-header {
display: none;
}
.data-table.data-table-has-checked .data-table-header-selected {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
.data-table .data-table-title-selected {
font-size: 14px;
}
.data-table .data-table-footer {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-sizing: border-box;
box-sizing: border-box;
position: relative;
font-size: 12px;
overflow: hidden;
-webkit-box-pack: end;
-webkit-justify-content: flex-end;
-ms-flex-pack: end;
justify-content: flex-end;
}
.data-table .data-table-rows-select,
.data-table .data-table-pagination {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
@media (max-width: 480px) and (orientation: portrait) {
.data-table.data-table-collapsible thead {
display: none;
}
.data-table.data-table-collapsible tbody,
.data-table.data-table-collapsible tr,
.data-table.data-table-collapsible td {
display: block;
}
.data-table.data-table-collapsible tr {
position: relative;
}
.data-table.data-table-collapsible tr:hover {
background-color: inherit;
}
.data-table.data-table-collapsible td {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-content: center;
-ms-flex-line-pack: center;
align-content: center;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
text-align: left;
}
.data-table.data-table-collapsible td:before {
display: none !important;
}
.data-table.data-table-collapsible td:not(.checkbox-cell):before {
width: 40%;
display: block !important;
content: attr(data-collapsible-title);
position: relative;
height: auto;
background: none !important;
-webkit-transform: none !important;
transform: none !important;
font-size: 12px;
margin-right: 16px;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
}
.data-table.data-table-collapsible td.checkbox-cell {
position: absolute;
top: 0;
left: 0;
}
.data-table.data-table-collapsible td.checkbox-cell + td {
padding-left: 16px;
}
.data-table.data-table-collapsible td.checkbox-cell ~ td {
margin-left: 32px;
}
}
.data-table .tablet-only,
.data-table .tablet-landscape-only {
display: none;
}
@media (min-width: 768px) {
.data-table .tablet-only {
display: table-cell;
}
}
@media (min-width: 768px) and (orientation: landscape) {
.data-table .tablet-landscape-only {
display: table-cell;
}
}
.theme-dark .data-table .sortable-cell:not(.numeric-cell):not(.input-cell):after,
.theme-dark .data-table .sortable-cell.numeric-cell:not(.input-cell):before,
.theme-dark .data-table .sortable-cell:not(.numeric-cell).input-cell > .table-head-label:after,
.theme-dark .data-table .sortable-cell.numeric-cell.input-cell > .table-head-label:before {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20fill%3D'%23fff'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%20width%3D'24'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M0%200h24v24H0V0z'%20fill%3D'none'%2F%3E%3Cpath%20d%3D'M20%2012l-1.41-1.41L13%2016.17V4h-2v12.17l-5.58-5.59L4%2012l8%208%208-8z'%20fill%3D'%23fff'%2F%3E%3C%2Fsvg%3E");
}
.md .data-table thead th,
.md .data-table thead td {
font-weight: 500;
height: 56px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.md .data-table thead th:not(.sortable-cell-active),
.md .data-table thead td:not(.sortable-cell-active) {
color: rgba(0, 0, 0, 0.54);
}
.md .data-table thead i.icon,
.md .data-table thead i.material-icons {
font-size: 16px;
width: 16px;
height: 16px;
}
.md .data-table tbody {
font-size: 13px;
}
.md .data-table tbody tr.data-table-row-selected {
background: #f5f5f5;
}
.md .data-table tbody td {
height: 48px;
}
.md .data-table th,
.md .data-table td {
padding-left: 28px;
padding-right: 28px;
}
.md .data-table th.label-cell,
.md .data-table td.label-cell {
padding-left: 24px;
padding-right: 24px;
}
.md .data-table th:first-child,
.md .data-table td:first-child {
padding-left: 24px;
}
.md .data-table th:last-child,
.md .data-table td:last-child {
padding-right: 24px;
}
.md .data-table th.checkbox-cell,
.md .data-table td.checkbox-cell {
width: 18px;
padding-left: 24px;
padding-right: 12px;
}
.md .data-table th.checkbox-cell + td,
.md .data-table td.checkbox-cell + td,
.md .data-table th.checkbox-cell + th,
.md .data-table td.checkbox-cell + th {
padding-left: 12px;
}
.md .data-table th.actions-cell a.link,
.md .data-table td.actions-cell a.link {
color: rgba(0, 0, 0, 0.54);
}
.md .data-table th.actions-cell a.link + a.link,
.md .data-table td.actions-cell a.link + a.link {
margin-left: 24px;
}
.md .data-table th.actions-cell a.icon-only,
.md .data-table td.actions-cell a.icon-only {
width: 24px;
height: 24px;
line-height: 24px;
}
.md .sortable-cell:not(.numeric-cell):after {
margin-left: 8px;
}
.md .sortable-cell.numeric-cell:before {
margin-right: 8px;
}
.md .data-table.card .card-header,
.md .card .data-table .card-header,
.md .data-table.card .card-footer,
.md .card .data-table .card-footer {
padding-left: 24px;
padding-right: 14px;
}
.md .data-table.card .card-footer,
.md .card .data-table .card-footer {
height: 56px;
}
.md .data-table-title {
font-size: 20px;
}
.md .data-table-links a.link + a.link,
.md .data-table-actions a.link + a.link {
margin-left: 24px;
}
.md .data-table-actions a.link {
color: rgba(0, 0, 0, 0.54);
}
.md .data-table-actions a.link.icon-only {
width: 24px;
height: 24px;
overflow: visible;
}
.md .data-table-actions a.link.icon-only.active-state {
background: none;
}
.md .data-table .card-header > .data-table-header,
.md .data-table .card-header > .data-table-header-selected {
padding-left: 24px;
padding-right: 14px;
margin-left: -24px;
margin-right: -14px;
padding-top: 4px;
padding-bottom: 4px;
height: 100%;
}
.md .data-table-header-selected {
background: rgba(33, 150, 243, 0.1);
}
.md .data-table-title-selected {
color: #2196f3;
}
.md .data-table tbody td:before {
content: '';
position: absolute;
background-color: rgba(0, 0, 0, 0.12);
display: block;
z-index: 15;
top: 0;
right: auto;
bottom: auto;
left: 0;
height: 1px;
width: 100%;
-webkit-transform-origin: 50% 0%;
transform-origin: 50% 0%;
}
.md.device-pixel-ratio-2 .data-table tbody td:before {
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.md.device-pixel-ratio-3 .data-table tbody td:before {
-webkit-transform: scaleY(0.33);
transform: scaleY(0.33);
}
.md.device-desktop .data-table tbody tr:hover {
background: #f5f5f5;
}
.md .data-table-footer {
height: 56px;
color: rgba(0, 0, 0, 0.54);
}
.md .data-table-rows-select a.link,
.md .data-table-pagination a.link {
width: 48px;
height: 48px;
}
.md .data-table-rows-select a.link:before,
.md .data-table-pagination a.link:before {
content: '';
width: 152%;
height: 152%;
position: absolute;
left: -26%;
top: -26%;
background-image: -webkit-radial-gradient(center, circle, rgba(0, 0, 0, 0.1) 66%, rgba(0, 0, 0, 0) 66%);
background-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 66%, rgba(0, 0, 0, 0) 66%);
background-repeat: no-repeat;
background-position: center;
background-size: 100% 100%;
opacity: 0;
pointer-events: none;
-webkit-transition-duration: 600ms;
transition-duration: 600ms;
}
.md .data-table-rows-select a.link.active-state:before,
.md .data-table-pagination a.link.active-state:before {
opacity: 1;
-webkit-transition-duration: 150ms;
transition-duration: 150ms;
}
.md .data-table-rows-select + .data-table-pagination {
margin-left: 32px;
}
.md .data-table-rows-select .input {
margin-left: 24px;
}
.md .data-table-pagination-label {
margin-right: 20px;
}
.md .data-table-footer:before {
content: '';
position: absolute;
background-color: rgba(0, 0, 0, 0.12);
display: block;
z-index: 15;
top: 0;
right: auto;
bottom: auto;
left: 0;
height: 1px;
width: 100%;
-webkit-transform-origin: 50% 0%;
transform-origin: 50% 0%;
}
.md.device-pixel-ratio-2 .data-table-footer:before {
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.md.device-pixel-ratio-3 .data-table-footer:before {
-webkit-transform: scaleY(0.33);
transform: scaleY(0.33);
}
.md .input-cell {
padding-top: 8px;
padding-bottom: 8px;
height: auto;
vertical-align: top;
}
.md .input-cell .table-head-label + .input {
margin-top: 4px;
}
.md .input-cell .input {
height: 24px;
}
.md .input-cell .input input,
.md .input-cell .input textarea,
.md .input-cell .input select {
height: 24px;
color: #212121;
font-size: 14px;
}
.md .input-cell .input .input-clear-button {
-webkit-transform: scale(0.8);
transform: scale(0.8);
}
@media (max-width: 480px) and (orientation: portrait) {
.md .data-table.data-table-collapsible td {
padding-left: 16px;
padding-right: 16px;
}
.md .data-table.data-table-collapsible td:not(.checkbox-cell):before {
color: rgba(0, 0, 0, 0.54);
font-weight: 500;
line-height: 16px;
}
.md .data-table-collapsible tr:before {
content: '';
position: absolute;
background-color: rgba(0, 0, 0, 0.12);
display: block;
z-index: 15;
top: 0;
right: auto;
bottom: auto;
left: 0;
height: 1px;
width: 100%;
-webkit-transform-origin: 50% 0%;
transform-origin: 50% 0%;
}
.md.device-pixel-ratio-2 .data-table-collapsible tr:before {
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.md.device-pixel-ratio-3 .data-table-collapsible tr:before {
-webkit-transform: scaleY(0.33);
transform: scaleY(0.33);
}
}
.md .theme-dark .data-table thead th:not(.sortable-cell-active),
.data-table.md .theme-dark thead th:not(.sortable-cell-active),
.md .theme-dark .data-table thead td:not(.sortable-cell-active),
.data-table.md .theme-dark thead td:not(.sortable-cell-active),
.md .theme-dark .data-table .data-table-actions a.link,
.data-table.md .theme-dark .data-table-actions a.link,
.md .theme-dark .data-table td.actions-cell a.link,
.data-table.md .theme-dark td.actions-cell a.link,
.md .theme-dark .data-table th.actions-cell a.link,
.data-table.md .theme-dark th.actions-cell a.link {
color: rgba(255, 255, 255, 0.54);
}
.md .theme-dark .data-table .data-table-links a.link:before,
.data-table.md .theme-dark .data-table-links a.link:before {
content: '';
width: 152%;
height: 152%;
position: absolute;
left: -26%;
top: -26%;
background-image: -webkit-radial-gradient(center, circle, rgba(255, 255, 255, 0.15) 66%, rgba(255, 255, 255, 0) 66%);
background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 66%, rgba(255, 255, 255, 0) 66%);
background-repeat: no-repeat;
background-position: center;
background-size: 100% 100%;
opacity: 0;
pointer-events: none;
-webkit-transition-duration: 600ms;
transition-duration: 600ms;
}
.md .theme-dark .data-table .data-table-links a.link.active-state:before,
.data-table.md .theme-dark .data-table-links a.link.active-state:before {
opacity: 1;
-webkit-transition-duration: 150ms;
transition-duration: 150ms;
}
.md .theme-dark .data-table tbody td:before,
.data-table.md .theme-dark tbody td:before {
background-color: rgba(255, 255, 255, 0.08);
}
.md .theme-dark .data-table.data-table-collapsible tr:before,
.data-table.md .theme-dark.data-table-collapsible tr:before {
background-color: rgba(255, 255, 255, 0.08);
}
.md .theme-dark .data-table tbody tr.data-table-row-selected,
.data-table.md .theme-dark tbody tr.data-table-row-selected {
background-color: rgba(255, 255, 255, 0.05);
}
.md.device-desktop .theme-dark .data-table tbody tr:hover,
.md.device-desktop .theme-dark.data-table tbody tr:hover {
background-color: rgba(255, 255, 255, 0.05);
}
.md .color-theme-red .data-table-header-selected,
.md .data-table-header-selected.color-red {
background: rgba(244, 67, 54, 0.1);
}
.md .color-theme-red .data-table-title-selected,
.md .color-red .data-table-title-selected {
color: #f44336;
}
.md .color-theme-green .data-table-header-selected,
.md .data-table-header-selected.color-green {
background: rgba(76, 175, 80, 0.1);
}
.md .color-theme-green .data-table-title-selected,
.md .color-green .data-table-title-selected {
color: #4caf50;
}
.md .color-theme-blue .data-table-header-selected,
.md .data-table-header-selected.color-blue {
background: rgba(33, 150, 243, 0.1);
}
.md .color-theme-blue .data-table-title-selected,
.md .color-blue .data-table-title-selected {
color: #2196f3;
}
.md .color-theme-pink .data-table-header-selected,
.md .data-table-header-selected.color-pink {
background: rgba(233, 30, 99, 0.1);
}
.md .color-theme-pink .data-table-title-selected,
.md .color-pink .data-table-title-selected {
color: #e91e63;
}
.md .color-theme-yellow .data-table-header-selected,
.md .data-table-header-selected.color-yellow {
background: rgba(255, 235, 59, 0.1);
}
.md .color-theme-yellow .data-table-title-selected,
.md .color-yellow .data-table-title-selected {
color: #ffeb3b;
}
.md .color-theme-orange .data-table-header-selected,
.md .data-table-header-selected.color-orange {
background: rgba(255, 152, 0, 0.1);
}
.md .color-theme-orange .data-table-title-selected,
.md .color-orange .data-table-title-selected {
color: #ff9800;
}
.md .color-theme-gray .data-table-header-selected,
.md .data-table-header-selected.color-gray {
background: rgba(158, 158, 158, 0.1);
}
.md .color-theme-gray .data-table-title-selected,
.md .color-gray .data-table-title-selected {
color: #9e9e9e;
}
.md .color-theme-white .data-table-header-selected,
.md .data-table-header-selected.color-white {
background: rgba(255, 255, 255, 0.1);
}
.md .color-theme-white .data-table-title-selected,
.md .color-white .data-table-title-selected {
color: #ffffff;
}
.md .color-theme-black .data-table-header-selected,
.md .data-table-header-selected.color-black {
background: rgba(0, 0, 0, 0.1);
}
.md .color-theme-black .data-table-title-selected,
.md .color-black .data-table-title-selected {
color: #000000;
}
/* === FAB === */
.fab {
position: absolute;
z-index: 1500;
}
.fab > a,
.fab-buttons a {
position: relative;
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
overflow: hidden;
z-index: 1;
}
.fab > a i {
position: absolute;
left: 50%;
top: 50%;
-webkit-transform: translate3d(-50%, -50%, 0) rotate(0deg) scale(1);
transform: translate3d(-50%, -50%, 0) rotate(0deg) scale(1);
-webkit-transition: 300ms;
transition: 300ms;
}
.fab > a i + i {
-webkit-transform: translate3d(-50%, -50%, 0) rotate(-90deg) scale(0.5);
transform: translate3d(-50%, -50%, 0) rotate(-90deg) scale(0.5);
opacity: 0;
}
.fab[class*="fab-center"] {
left: 50%;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
}
.fab[class*="left-center"],
.fab[class*="right-center"] {
top: 50%;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
}
.fab[class*="center-center"] {
top: 50%;
left: 50%;
-webkit-transform: translateX(-50%) translateY(-50%);
transform: translateX(-50%) translateY(-50%);
}
.fab div.fab-buttons a {
width: 40px;
height: 40px;
}
.fab-buttons {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
visibility: hidden;
pointer-events: none;
position: absolute;
}
.fab-buttons a {
opacity: 0;
}
.fab-opened:not(.fab-morph) > a i {
-webkit-transform: translate3d(-50%, -50%, 0) rotate(90deg) scale(0.5);
transform: translate3d(-50%, -50%, 0) rotate(90deg) scale(0.5);
opacity: 0;
}
.fab-opened:not(.fab-morph) > a i + i {
-webkit-transform: translate3d(-50%, -50%, 0) rotate(0deg) scale(1);
transform: translate3d(-50%, -50%, 0) rotate(0deg) scale(1);
opacity: 1;
}
.fab-opened .fab-buttons {
visibility: visible;
pointer-events: auto;
}
.fab-opened .fab-buttons a {
opacity: 1;
-webkit-transform: translate3d(0, 0px, 0) scale(1) !important;
transform: translate3d(0, 0px, 0) scale(1) !important;
}
.fab-opened .fab-buttons a:nth-child(2) {
-webkit-transition-delay: 50ms;
transition-delay: 50ms;
}
.fab-opened .fab-buttons a:nth-child(3) {
-webkit-transition-delay: 100ms;
transition-delay: 100ms;
}
.fab-opened .fab-buttons a:nth-child(4) {
-webkit-transition-delay: 150ms;
transition-delay: 150ms;
}
.fab-opened .fab-buttons a:nth-child(5) {
-webkit-transition-delay: 200ms;
transition-delay: 200ms;
}
.fab-opened .fab-buttons a:nth-child(6) {
-webkit-transition-delay: 250ms;
transition-delay: 250ms;
}
.fab-buttons-top,
.fab-buttons-bottom {
left: 50%;
width: 40px;
margin-left: -20px;
}
.fab-buttons-top {
bottom: 100%;
margin-bottom: 16px;
-webkit-box-orient: vertical;
-webkit-box-direction: reverse;
-webkit-flex-direction: column-reverse;
-ms-flex-direction: column-reverse;
flex-direction: column-reverse;
}
.fab-buttons-top a {
-webkit-transform: translate3d(0, 8px, 0) scale(0.3);
transform: translate3d(0, 8px, 0) scale(0.3);
-webkit-transform-origin: center bottom;
transform-origin: center bottom;
}
.fab-buttons-top a + a {
margin-bottom: 16px;
}
.fab-buttons-bottom {
top: 100%;
margin-top: 16px;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
}
.fab-buttons-bottom a {
-webkit-transform: translate3d(0, -8px, 0) scale(0.3);
transform: translate3d(0, -8px, 0) scale(0.3);
-webkit-transform-origin: center top;
transform-origin: center top;
}
.fab-buttons-bottom a + a {
margin-top: 16px;
}
.fab-buttons-left,
.fab-buttons-right {
top: 50%;
height: 40px;
margin-top: -20px;
}
.fab-buttons-left {
right: 100%;
margin-right: 16px;
-webkit-box-orient: horizontal;
-webkit-box-direction: reverse;
-webkit-flex-direction: row-reverse;
-ms-flex-direction: row-reverse;
flex-direction: row-reverse;
}
.fab-buttons-left a {
-webkit-transform: translate3d(8px, 0px, 0) scale(0.3);
transform: translate3d(8px, 0px, 0) scale(0.3);
-webkit-transform-origin: right center;
transform-origin: right center;
}
.fab-buttons-left a + a {
margin-right: 16px;
}
.fab-buttons-right {
left: 100%;
margin-left: 16px;
}
.fab-buttons-right a {
-webkit-transform: translate3d(-8px, 0, 0) scale(0.3);
transform: translate3d(-8px, 0, 0) scale(0.3);
-webkit-transform-origin: left center;
transform-origin: left center;
}
.fab-buttons-right a + a {
margin-left: 16px;
}
.fab-buttons-center {
left: 0%;
top: 0%;
width: 100%;
height: 100%;
}
.fab-buttons-center a {
position: absolute;
}
.fab-buttons-center a:nth-child(1) {
left: 50%;
margin-left: -20px;
bottom: 100%;
margin-bottom: 16px;
-webkit-transform: translateY(-8px) scale(0.3);
transform: translateY(-8px) scale(0.3);
-webkit-transform-origin: center bottom;
transform-origin: center bottom;
}
.fab-buttons-center a:nth-child(2) {
left: 100%;
margin-top: -20px;
top: 50%;
margin-left: 16px;
-webkit-transform: translateX(-8px) scale(0.3);
transform: translateX(-8px) scale(0.3);
-webkit-transform-origin: left center;
transform-origin: left center;
}
.fab-buttons-center a:nth-child(3) {
left: 50%;
margin-left: -20px;
top: 100%;
margin-top: 16px;
-webkit-transform: translateY(8px) scale(0.3);
transform: translateY(8px) scale(0.3);
-webkit-transform-origin: center top;
transform-origin: center top;
}
.fab-buttons-center a:nth-child(4) {
right: 100%;
margin-top: -20px;
top: 50%;
margin-right: 16px;
-webkit-transform: translateX(8px) scale(0.3);
transform: translateX(8px) scale(0.3);
-webkit-transform-origin: right center;
transform-origin: right center;
}
.fab-opened.fab-morph > a i {
opacity: 0;
}
.fab-morph,
.fab-morph > a,
.fab-morph-target {
-webkit-transition-duration: 250ms;
transition-duration: 250ms;
}
.fab-morph-target:not(.fab-morph-target-visible) {
display: none;
}
.fab-extended {
width: auto;
}
.fab-extended > a {
width: 100% !important;
}
.fab-text {
padding-left: 20px;
padding-right: 20px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
font-size: 14px;
text-transform: uppercase;
}
.fab-label-button {
overflow: visible !important;
}
.fab-label {
position: absolute;
top: 50%;
padding: 4px 12px;
border-radius: 4px;
background: #fff;
color: #333;
white-space: nowrap;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
pointer-events: none;
}
.fab[class*="fab-right-"] .fab-label {
right: 100%;
margin-right: 8px;
}
.fab[class*="fab-left-"] .fab-label {
left: 100%;
margin-left: 8px;
}
.md .fab > a,
.md .fab-buttons a {
background: #2196f3;
width: 56px;
height: 56px;
border-radius: 28px;
color: #fff;
-webkit-box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
}
.md .fab > a.active-state,
.md .fab-buttons a.active-state {
background: #0c82df;
}
.md .fab[class*="fab-left"] {
left: 15px;
}
.md .fab[class*="fab-right"] {
right: 15px;
}
.md .fab[class*="-top"] {
top: 15px;
}
.md .fab[class*="-bottom"] {
bottom: 15px;
}
.md .navbar ~ * .fab[class*="-top"],
.md .navbar ~ .fab[class*="-top"] {
margin-top: 56px;
}
@media (min-width: 768px) {
.md .navbar ~ * .fab[class*="-top"],
.md .navbar ~ .fab[class*="-top"] {
margin-top: 64px;
}
}
.md .toolbar:not(.toolbar-bottom-md):not(.messagebar) ~ * .fab[class*="-top"],
.md .toolbar:not(.toolbar-bottom-md):not(.messagebar) ~ .fab[class*="-top"] {
margin-top: 48px;
}
.md .tabbar-labels:not(.toolbar-bottom-md) ~ * .fab[class*="-top"],
.md .tabbar-labels:not(.toolbar-bottom-md) ~ .fab[class*="-top"] {
margin-top: 72px;
}
.md .navbar + .toolbar:not(.toolbar-bottom-md):not(.messagebar) ~ * .fab[class*="-top"],
.md .navbar + .toolbar:not(.toolbar-bottom-md):not(.messagebar) ~ .fab[class*="-top"] {
margin-top: 104px;
}
.md .navbar + .tabbar-labels:not(.toolbar-bottom-md) ~ * .fab[class*="-top"],
.md .navbar + .tabbar-labels:not(.toolbar-bottom-md) ~ .fab[class*="-top"] {
margin-top: 128px;
}
@media (min-width: 768px) {
.md .navbar + .toolbar:not(.toolbar-bottom-md):not(.messagebar) ~ * .fab[class*="-top"],
.md .navbar + .toolbar:not(.toolbar-bottom-md):not(.messagebar) ~ .fab[class*="-top"] {
margin-top: 112px;
}
.md .navbar + .tabbar-labels:not(.toolbar-bottom-md) ~ * .fab[class*="-top"],
.md .navbar + .tabbar-labels:not(.toolbar-bottom-md) ~ .fab[class*="-top"] {
margin-top: 136px;
}
}
.md .toolbar-bottom-md ~ * .fab[class*="-bottom"],
.md .toolbar-bottom-md ~ .fab[class*="-bottom"],
.md .messagebar ~ * .fab[class*="-bottom"],
.md .messagebar ~ .fab[class*="-bottom"] {
margin-bottom: 48px;
}
.md .toolbar-bottom-md.tabbar-labels ~ * .fab[class*="-bottom"],
.md .toolbar-bottom-md.tabbar-labels ~ .fab[class*="-bottom"] {
margin-bottom: 72px;
}
.md .fab-morph {
border-radius: 28px;
background: #2196f3;
-webkit-box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
}
.md .fab-morph > a {
-webkit-box-shadow: none;
box-shadow: none;
background: none !important;
}
.md .fab-extended {
min-width: 48px;
}
.md .fab-extended > a {
height: 48px;
}
.md .fab-extended > a i {
left: 24px;
}
.md .fab-extended i ~ .fab-text {
padding-left: 48px;
}
.md .fab-text {
font-weight: 500;
letter-spacing: 0.03em;
}
.md .fab-label {
-webkit-box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12);
box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12);
}
.md .color-theme-red .fab > a,
.md .color-theme-red .fab-buttons a,
.md .color-theme-red.fab > a,
.md .color-theme-red.fab-buttons a {
background: #f44336;
}
.md .color-theme-red .fab > a.active-state,
.md .color-theme-red .fab-buttons a.active-state,
.md .color-theme-red.fab > a.active-state,
.md .color-theme-red.fab-buttons a.active-state {
background: #f21f0f;
}
.md .color-theme-red .fab-morph,
.md .color-theme-red.fab-morph {
background: #f44336;
}
.md .color-theme-green .fab > a,
.md .color-theme-green .fab-buttons a,
.md .color-theme-green.fab > a,
.md .color-theme-green.fab-buttons a {
background: #4caf50;
}
.md .color-theme-green .fab > a.active-state,
.md .color-theme-green .fab-buttons a.active-state,
.md .color-theme-green.fab > a.active-state,
.md .color-theme-green.fab-buttons a.active-state {
background: #409343;
}
.md .color-theme-green .fab-morph,
.md .color-theme-green.fab-morph {
background: #4caf50;
}
.md .color-theme-blue .fab > a,
.md .color-theme-blue .fab-buttons a,
.md .color-theme-blue.fab > a,
.md .color-theme-blue.fab-buttons a {
background: #2196f3;
}
.md .color-theme-blue .fab > a.active-state,
.md .color-theme-blue .fab-buttons a.active-state,
.md .color-theme-blue.fab > a.active-state,
.md .color-theme-blue.fab-buttons a.active-state {
background: #0c82df;
}
.md .color-theme-blue .fab-morph,
.md .color-theme-blue.fab-morph {
background: #2196f3;
}
.md .color-theme-pink .fab > a,
.md .color-theme-pink .fab-buttons a,
.md .color-theme-pink.fab > a,
.md .color-theme-pink.fab-buttons a {
background: #e91e63;
}
.md .color-theme-pink .fab > a.active-state,
.md .color-theme-pink .fab-buttons a.active-state,
.md .color-theme-pink.fab > a.active-state,
.md .color-theme-pink.fab-buttons a.active-state {
background: #ca1452;
}
.md .color-theme-pink .fab-morph,
.md .color-theme-pink.fab-morph {
background: #e91e63;
}
.md .color-theme-yellow .fab > a,
.md .color-theme-yellow .fab-buttons a,
.md .color-theme-yellow.fab > a,
.md .color-theme-yellow.fab-buttons a {
background: #ffeb3b;
}
.md .color-theme-yellow .fab > a.active-state,
.md .color-theme-yellow .fab-buttons a.active-state,
.md .color-theme-yellow.fab > a.active-state,
.md .color-theme-yellow.fab-buttons a.active-state {
background: #ffe712;
}
.md .color-theme-yellow .fab-morph,
.md .color-theme-yellow.fab-morph {
background: #ffeb3b;
}
.md .color-theme-orange .fab > a,
.md .color-theme-orange .fab-buttons a,
.md .color-theme-orange.fab > a,
.md .color-theme-orange.fab-buttons a {
background: #ff9800;
}
.md .color-theme-orange .fab > a.active-state,
.md .color-theme-orange .fab-buttons a.active-state,
.md .color-theme-orange.fab > a.active-state,
.md .color-theme-orange.fab-buttons a.active-state {
background: #d68000;
}
.md .color-theme-orange .fab-morph,
.md .color-theme-orange.fab-morph {
background: #ff9800;
}
.md .color-theme-gray .fab > a,
.md .color-theme-gray .fab-buttons a,
.md .color-theme-gray.fab > a,
.md .color-theme-gray.fab-buttons a {
background: #9e9e9e;
}
.md .color-theme-gray .fab > a.active-state,
.md .color-theme-gray .fab-buttons a.active-state,
.md .color-theme-gray.fab > a.active-state,
.md .color-theme-gray.fab-buttons a.active-state {
background: #8a8a8a;
}
.md .color-theme-gray .fab-morph,
.md .color-theme-gray.fab-morph {
background: #9e9e9e;
}
.md .color-theme-white .fab > a,
.md .color-theme-white .fab-buttons a,
.md .color-theme-white.fab > a,
.md .color-theme-white.fab-buttons a {
background: #ffffff;
}
.md .color-theme-white .fab > a.active-state,
.md .color-theme-white .fab-buttons a.active-state,
.md .color-theme-white.fab > a.active-state,
.md .color-theme-white.fab-buttons a.active-state {
background: #ebebeb;
}
.md .color-theme-white .fab-morph,
.md .color-theme-white.fab-morph {
background: #ffffff;
}
.md .color-theme-black .fab > a,
.md .color-theme-black .fab-buttons a,
.md .color-theme-black.fab > a,
.md .color-theme-black.fab-buttons a {
background: #000000;
}
.md .color-theme-black .fab > a.active-state,
.md .color-theme-black .fab-buttons a.active-state,
.md .color-theme-black.fab > a.active-state,
.md .color-theme-black.fab-buttons a.active-state {
background: #000000;
}
.md .color-theme-black .fab-morph,
.md .color-theme-black.fab-morph {
background: #000000;
}
.md .fab.color-red > a,
.md .fab.color-red .fab-buttons > a,
.md .fab-buttons.color-red a,
.md .fab > a.color-red,
.md .fab .fab-buttons > a.color-red {
background: #f44336;
}
.md .fab.color-red > a.active-state,
.md .fab.color-red .fab-buttons > a.active-state,
.md .fab-buttons.color-red a.active-state,
.md .fab > a.color-red.active-state,
.md .fab .fab-buttons > a.color-red.active-state {
background: #f21f0f;
}
.md .fab-morph.color-red {
background: #f44336;
}
.md .fab.color-green > a,
.md .fab.color-green .fab-buttons > a,
.md .fab-buttons.color-green a,
.md .fab > a.color-green,
.md .fab .fab-buttons > a.color-green {
background: #4caf50;
}
.md .fab.color-green > a.active-state,
.md .fab.color-green .fab-buttons > a.active-state,
.md .fab-buttons.color-green a.active-state,
.md .fab > a.color-green.active-state,
.md .fab .fab-buttons > a.color-green.active-state {
background: #409343;
}
.md .fab-morph.color-green {
background: #4caf50;
}
.md .fab.color-blue > a,
.md .fab.color-blue .fab-buttons > a,
.md .fab-buttons.color-blue a,
.md .fab > a.color-blue,
.md .fab .fab-buttons > a.color-blue {
background: #2196f3;
}
.md .fab.color-blue > a.active-state,
.md .fab.color-blue .fab-buttons > a.active-state,
.md .fab-buttons.color-blue a.active-state,
.md .fab > a.color-blue.active-state,
.md .fab .fab-buttons > a.color-blue.active-state {
background: #0c82df;
}
.md .fab-morph.color-blue {
background: #2196f3;
}
.md .fab.color-pink > a,
.md .fab.color-pink .fab-buttons > a,
.md .fab-buttons.color-pink a,
.md .fab > a.color-pink,
.md .fab .fab-buttons > a.color-pink {
background: #e91e63;
}
.md .fab.color-pink > a.active-state,
.md .fab.color-pink .fab-buttons > a.active-state,
.md .fab-buttons.color-pink a.active-state,
.md .fab > a.color-pink.active-state,
.md .fab .fab-buttons > a.color-pink.active-state {
background: #ca1452;
}
.md .fab-morph.color-pink {
background: #e91e63;
}
.md .fab.color-yellow > a,
.md .fab.color-yellow .fab-buttons > a,
.md .fab-buttons.color-yellow a,
.md .fab > a.color-yellow,
.md .fab .fab-buttons > a.color-yellow {
background: #ffeb3b;
}
.md .fab.color-yellow > a.active-state,
.md .fab.color-yellow .fab-buttons > a.active-state,
.md .fab-buttons.color-yellow a.active-state,
.md .fab > a.color-yellow.active-state,
.md .fab .fab-buttons > a.color-yellow.active-state {
background: #ffe712;
}
.md .fab-morph.color-yellow {
background: #ffeb3b;
}
.md .fab.color-orange > a,
.md .fab.color-orange .fab-buttons > a,
.md .fab-buttons.color-orange a,
.md .fab > a.color-orange,
.md .fab .fab-buttons > a.color-orange {
background: #ff9800;
}
.md .fab.color-orange > a.active-state,
.md .fab.color-orange .fab-buttons > a.active-state,
.md .fab-buttons.color-orange a.active-state,
.md .fab > a.color-orange.active-state,
.md .fab .fab-buttons > a.color-orange.active-state {
background: #d68000;
}
.md .fab-morph.color-orange {
background: #ff9800;
}
.md .fab.color-gray > a,
.md .fab.color-gray .fab-buttons > a,
.md .fab-buttons.color-gray a,
.md .fab > a.color-gray,
.md .fab .fab-buttons > a.color-gray {
background: #9e9e9e;
}
.md .fab.color-gray > a.active-state,
.md .fab.color-gray .fab-buttons > a.active-state,
.md .fab-buttons.color-gray a.active-state,
.md .fab > a.color-gray.active-state,
.md .fab .fab-buttons > a.color-gray.active-state {
background: #8a8a8a;
}
.md .fab-morph.color-gray {
background: #9e9e9e;
}
.md .fab.color-white > a,
.md .fab.color-white .fab-buttons > a,
.md .fab-buttons.color-white a,
.md .fab > a.color-white,
.md .fab .fab-buttons > a.color-white {
background: #ffffff;
}
.md .fab.color-white > a.active-state,
.md .fab.color-white .fab-buttons > a.active-state,
.md .fab-buttons.color-white a.active-state,
.md .fab > a.color-white.active-state,
.md .fab .fab-buttons > a.color-white.active-state {
background: #ebebeb;
}
.md .fab-morph.color-white {
background: #ffffff;
}
.md .fab.color-black > a,
.md .fab.color-black .fab-buttons > a,
.md .fab-buttons.color-black a,
.md .fab > a.color-black,
.md .fab .fab-buttons > a.color-black {
background: #000000;
}
.md .fab.color-black > a.active-state,
.md .fab.color-black .fab-buttons > a.active-state,
.md .fab-buttons.color-black a.active-state,
.md .fab > a.color-black.active-state,
.md .fab .fab-buttons > a.color-black.active-state {
background: #000000;
}
.md .fab-morph.color-black {
background: #000000;
}
.md.device-iphone-x .fab[class*="-bottom"] {
bottom: calc(16px + constant(safe-area-inset-bottom));
bottom: calc(16px + env(safe-area-inset-bottom));
}
@media (orientation: landscape) {
.md.device-iphone-x .ios-left-edge .fab[class*="fab-left"],
.md.device-iphone-x .ios-edges .fab[class*="fab-left"],
.md.device-iphone-x .popup .fab[class*="fab-left"],
.md.device-iphone-x .sheet-modal .fab[class*="fab-left"],
.md.device-iphone-x .panel-left .fab[class*="fab-left"] {
left: calc(16px + constant(safe-area-inset-left));
left: calc(16px + env(safe-area-inset-left));
}
.md.device-iphone-x .ios-right-edge .fab[class*="fab-right"],
.md.device-iphone-x .ios-edges .fab[class*="fab-right"],
.md.device-iphone-x .popup .fab[class*="fab-right"],
.md.device-iphone-x .sheet-modal .fab[class*="fab-right"],
.md.device-iphone-x .panel-right .fab[class*="fab-right"] {
right: calc(16px + constant(safe-area-inset-right));
right: calc(16px + env(safe-area-inset-right));
}
}
/* === Searchbar === */
.searchbar {
width: 100%;
position: relative;
z-index: 200;
}
.searchbar .searchbar-input-wrap {
-webkit-flex-shrink: 1;
-ms-flex-negative: 1;
flex-shrink: 1;
width: 100%;
height: 100%;
position: relative;
}
.searchbar .searchbar-input-wrap input[type="search"] {
padding: 0;
}
.searchbar .searchbar-input-wrap input::-webkit-search-cancel-button {
-webkit-appearance: none;
appearance: none;
}
.page > .searchbar {
position: absolute;
left: 0;
top: 0;
}
.searchbar-expandable {
position: absolute;
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
pointer-events: none;
}
.searchbar-inner {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.searchbar-disable-button {
cursor: pointer;
pointer-events: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background: none;
border: none;
outline: 0;
padding: 0;
margin: 0;
width: auto;
opacity: 0;
}
.searchbar-icon {
pointer-events: none;
background-position: center;
background-repeat: no-repeat;
}
.searchbar-backdrop {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: 100;
opacity: 0;
pointer-events: none;
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.searchbar-backdrop.searchbar-backdrop-in {
opacity: 1;
pointer-events: auto;
}
.page-content > .searchbar-backdrop {
position: fixed;
}
.searchbar-not-found {
display: none;
}
.hidden-by-searchbar,
.list .hidden-by-searchbar,
.list.li.hidden-by-searchbar,
.list li.hidden-by-searchbar {
display: none !important;
}
.md .searchbar {
height: 48px;
background: #fff;
}
.md .searchbar input[type="search"],
.md .searchbar input[type="text"] {
padding-left: 65px;
padding-right: 48px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
height: 100%;
display: block;
border: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
font-family: inherit;
font-size: 20px;
color: #000;
font-weight: normal;
}
.md .searchbar input[type="search"]::-webkit-input-placeholder,
.md .searchbar input[type="text"]::-webkit-input-placeholder {
color: #939398;
opacity: 1;
}
.md .searchbar input[type="search"]:-ms-input-placeholder,
.md .searchbar input[type="text"]:-ms-input-placeholder {
color: #939398;
opacity: 1;
}
.md .searchbar input[type="search"]::-ms-input-placeholder,
.md .searchbar input[type="text"]::-ms-input-placeholder {
color: #939398;
opacity: 1;
}
.md .searchbar input[type="search"]::placeholder,
.md .searchbar input[type="text"]::placeholder {
color: #939398;
opacity: 1;
}
.md .searchbar-expandable {
height: 100%;
}
.md .searchbar-backdrop {
background: rgba(0, 0, 0, 0.25);
}
.md .searchbar-icon,
.md .searchbar-disable-button {
position: absolute;
width: 48px;
height: 48px;
left: -4px;
top: 50%;
margin-top: -24px;
background-size: 24px 24px;
background-repeat: no-repeat;
background-position: center;
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
}
.md .searchbar-icon {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20fill%3D'%23737373'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%20width%3D'24'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M15.5%2014h-.79l-.28-.27C15.41%2012.59%2016%2011.11%2016%209.5%2016%205.91%2013.09%203%209.5%203S3%205.91%203%209.5%205.91%2016%209.5%2016c1.61%200%203.09-.59%204.23-1.57l.27.28v.79l5%204.99L20.49%2019l-4.99-5zm-6%200C7.01%2014%205%2011.99%205%209.5S7.01%205%209.5%205%2014%207.01%2014%209.5%2011.99%2014%209.5%2014z'%2F%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.md .searchbar-disable-button {
-webkit-transform: rotate(-90deg) scale(0.5);
transform: rotate(-90deg) scale(0.5);
font-size: 0 !important;
display: block;
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M20%2011H7.83l5.59-5.59L12%204l-8%208%208%208%201.41-1.41L7.83%2013H20v-2z'%20fill%3D'%23737373'%2F%3E%3C%2Fsvg%3E");
}
.md .searchbar-disable-button:before {
content: '';
width: 152%;
height: 152%;
position: absolute;
left: -26%;
top: -26%;
background-image: -webkit-radial-gradient(center, circle, rgba(0, 0, 0, 0.1) 66%, rgba(0, 0, 0, 0) 66%);
background-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 66%, rgba(0, 0, 0, 0) 66%);
background-repeat: no-repeat;
background-position: center;
background-size: 100% 100%;
opacity: 0;
pointer-events: none;
-webkit-transition-duration: 600ms;
transition-duration: 600ms;
}
.md .searchbar-disable-button.active-state:before {
opacity: 1;
-webkit-transition-duration: 150ms;
transition-duration: 150ms;
}
.md .searchbar-enabled .searchbar-disable-button {
-webkit-transform: rotate(0deg) scale(1);
transform: rotate(0deg) scale(1);
pointer-events: auto;
opacity: 1;
}
.md .searchbar-enabled .searchbar-icon {
opacity: 0;
-webkit-transform: rotate(90deg) scale(0.5);
transform: rotate(90deg) scale(0.5);
}
.md .searchbar .input-clear-button {
width: 48px;
height: 48px;
margin-top: -24px;
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20fill%3D'%23737373'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%20width%3D'24'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M19%206.41L17.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z'%2F%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
border-radius: 0;
background-repeat: no-repeat;
background-position: center;
background-size: 24px 24px;
background-color: transparent;
right: 0;
}
.md .searchbar .input-clear-button:before {
content: '';
width: 152%;
height: 152%;
position: absolute;
left: -26%;
top: -26%;
background-image: -webkit-radial-gradient(center, circle, rgba(0, 0, 0, 0.1) 66%, rgba(0, 0, 0, 0) 66%);
background-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 66%, rgba(0, 0, 0, 0) 66%);
background-repeat: no-repeat;
background-position: center;
background-size: 100% 100%;
opacity: 0;
pointer-events: none;
-webkit-transition-duration: 600ms;
transition-duration: 600ms;
}
.md .searchbar .input-clear-button.active-state:before {
opacity: 1;
-webkit-transition-duration: 150ms;
transition-duration: 150ms;
}
.md .searchbar .input-clear-button:after {
display: none;
}
.md .searchbar .input-clear-button:before {
margin-left: 0;
margin-top: 0;
}
.md .page-content .searchbar {
border-radius: 2px;
margin: 8px;
width: auto;
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.md .page-content .searchbar .searchbar-inner {
border-radius: 2px;
}
.md .page > .searchbar {
z-index: 510;
}
.md .page > .searchbar:after {
content: '';
position: absolute;
right: 0;
width: 100%;
top: 100%;
bottom: auto;
height: 10px;
pointer-events: none;
background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.3)), color-stop(40%, rgba(0, 0, 0, 0.1)), color-stop(50%, rgba(0, 0, 0, 0.05)), color-stop(80%, rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0)));
background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0) 100%);
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0) 100%);
}
.md .page > .searchbar.no-shadow:after {
display: none;
}
.md .page > .searchbar input[type="search"],
.md .subnavbar .searchbar input[type="search"],
.md .searchbar-expandable input[type="search"],
.md .page > .searchbar input[type="text"],
.md .subnavbar .searchbar input[type="text"],
.md .searchbar-expandable input[type="text"] {
padding-left: 73px;
}
.md .page > .searchbar .searchbar-icon,
.md .subnavbar .searchbar .searchbar-icon,
.md .searchbar-expandable .searchbar-icon,
.md .page > .searchbar .searchbar-disable-button,
.md .subnavbar .searchbar .searchbar-disable-button,
.md .searchbar-expandable .searchbar-disable-button {
left: 4px;
}
.md .searchbar-expandable {
width: 56px;
height: 100%;
opacity: 0;
top: 50%;
margin-top: -28px;
-webkit-transform: translate3d(0px, 0px, 0px);
transform: translate3d(0px, 0px, 0px);
left: 100%;
margin-left: -56px;
}
.md .navbar .searchbar-expandable {
border-radius: 28px;
width: 56px;
margin-top: -28px;
margin-left: -56px;
}
@media (min-width: 768px) {
.md .navbar .searchbar-expandable {
border-radius: 32px;
width: 64px;
margin-top: -32px;
margin-left: -64px;
}
}
.md .toolbar .searchbar-expandable,
.md .subnavbar .searchbar-expandable {
border-radius: 24px;
width: 48px;
margin-top: -24px;
margin-left: -48px;
}
.md .tabbar-labels .searchbar-expandable {
border-radius: 36px;
width: 72px;
margin-top: -36px;
margin-left: -72px;
}
.md .searchbar-expandable.searchbar-enabled {
width: 100%;
border-radius: 0;
opacity: 1;
pointer-events: auto;
top: 0;
margin-top: 0;
left: 0;
margin-left: 0;
}
.md .page > .searchbar ~ * .page-content,
.md .page > .searchbar ~ .page-content {
padding-top: 48px;
}
.md .page > .navbar ~ .searchbar {
top: 56px;
}
@media (min-width: 768px) {
.md .page > .navbar ~ .searchbar {
top: 64px;
}
}
.md .page > .navbar ~ .searchbar ~ * .page-content,
.md .page > .navbar ~ .searchbar ~ .page-content {
padding-top: 104px;
}
@media (min-width: 768px) {
.md .page > .navbar ~ .searchbar ~ * .page-content,
.md .page > .navbar ~ .searchbar ~ .page-content {
padding-top: 112px;
}
}
.md .page > .toolbar:not(.toolbar-bottom-md):not(.messagebar) ~ .searchbar {
top: 48px;
}
.md .page > .toolbar:not(.toolbar-bottom-md):not(.messagebar) ~ .searchbar ~ * .page-content,
.md .page > .toolbar:not(.toolbar-bottom-md):not(.messagebar) ~ .searchbar ~ .page-content {
padding-top: 96px;
}
.md .page > .tabbar-labels:not(.toolbar-bottom-md) ~ .searchbar {
top: 72px;
}
.md .page > .tabbar-labels:not(.toolbar-bottom-md) ~ .searchbar ~ * .page-content,
.md .page > .tabbar-labels:not(.toolbar-bottom-md) ~ .searchbar ~ .page-content {
padding-top: 120px;
}
.md .page > .navbar ~ .toolbar:not(.toolbar-bottom-md):not(.messagebar) ~ .searchbar {
top: 104px;
}
@media (min-width: 768px) {
.md .page > .navbar ~ .toolbar:not(.toolbar-bottom-md):not(.messagebar) ~ .searchbar {
top: 112px;
}
}
.md .page > .navbar ~ .toolbar:not(.toolbar-bottom-md):not(.messagebar) ~ .searchbar ~ * .page-content,
.md .page > .navbar ~ .toolbar:not(.toolbar-bottom-md):not(.messagebar) ~ .searchbar ~ .page-content {
padding-top: 152px;
}
@media (min-width: 768px) {
.md .page > .navbar ~ .toolbar:not(.toolbar-bottom-md):not(.messagebar) ~ .searchbar ~ * .page-content,
.md .page > .navbar ~ .toolbar:not(.toolbar-bottom-md):not(.messagebar) ~ .searchbar ~ .page-content {
padding-top: 160px;
}
}
.md .page > .navbar ~ .tabbar-labels:not(.toolbar-bottom-md) ~ .searchbar {
top: 128px;
}
@media (min-width: 768px) {
.md .page > .navbar ~ .tabbar-labels:not(.toolbar-bottom-md) ~ .searchbar {
top: 136px;
}
}
.md .page > .navbar ~ .tabbar-labels:not(.toolbar-bottom-md) ~ .searchbar ~ * .page-content,
.md .page > .navbar ~ .tabbar-labels:not(.toolbar-bottom-md) ~ .searchbar ~ .page-content {
padding-top: 176px;
}
@media (min-width: 768px) {
.md .page > .navbar ~ .tabbar-labels:not(.toolbar-bottom-md) ~ .searchbar ~ * .page-content,
.md .page > .navbar ~ .tabbar-labels:not(.toolbar-bottom-md) ~ .searchbar ~ .page-content {
padding-top: 184px;
}
}
@media (orientation: landscape) {
.md.device-iphone-x .ios-left-edge .searchbar-inner,
.md.device-iphone-x .ios-edges .searchbar-inner,
.md.device-iphone-x .popup .searchbar-inner,
.md.device-iphone-x .sheet-modal .searchbar-inner,
.md.device-iphone-x .panel-left .searchbar-inner {
padding-left: constant(safe-area-inset-left);
padding-left: env(safe-area-inset-left);
}
.md.device-iphone-x .ios-left-edge .searchbar-disable-button,
.md.device-iphone-x .ios-edges .searchbar-disable-button,
.md.device-iphone-x .popup .searchbar-disable-button,
.md.device-iphone-x .sheet-modal .searchbar-disable-button,
.md.device-iphone-x .panel-left .searchbar-disable-button {
left: calc(4px + constant(safe-area-inset-left));
left: calc(4px + env(safe-area-inset-left));
}
.md.device-iphone-x .ios-right-edge .searchbar-inner,
.md.device-iphone-x .ios-edges .searchbar-inner,
.md.device-iphone-x .popup .searchbar-inner,
.md.device-iphone-x .sheet-modal .searchbar-inner,
.md.device-iphone-x .panel-right .searchbar-inner {
padding-right: constant(safe-area-inset-right);
padding-right: env(safe-area-inset-right);
}
}
/* === Messages === */
.messages {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
min-height: 100%;
position: relative;
z-index: 1;
}
.messages-title {
text-align: center;
width: 100%;
line-height: 1;
}
.message {
max-width: 70%;
-webkit-box-sizing: border-box;
box-sizing: border-box;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: end;
-webkit-align-items: flex-end;
-ms-flex-align: end;
align-items: flex-end;
position: relative;
z-index: 1;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.message-avatar {
border-radius: 50%;
position: relative;
background-size: cover;
-webkit-align-self: flex-end;
-ms-flex-item-align: end;
align-self: flex-end;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
}
.message-content {
position: relative;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
}
.message-header,
.message-footer,
.message-name {
line-height: 1;
font-size: 12px;
}
.message-footer {
font-size: 11px;
margin-bottom: -1em;
}
.message-bubble {
-webkit-box-sizing: border-box;
box-sizing: border-box;
word-break: break-word;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
position: relative;
line-height: 1.2;
}
.message-image img {
display: block;
max-width: 100%;
height: auto;
width: auto;
}
.message-text-header,
.message-text-footer {
font-size: 12px;
line-height: 1;
}
.message-text {
text-align: left;
}
.message-sent {
text-align: right;
-webkit-box-orient: horizontal;
-webkit-box-direction: reverse;
-webkit-flex-direction: row-reverse;
-ms-flex-direction: row-reverse;
flex-direction: row-reverse;
-webkit-align-self: flex-end;
-ms-flex-item-align: end;
align-self: flex-end;
}
.message-received {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
}
.message-received .message-content {
-webkit-box-align: start;
-webkit-align-items: flex-start;
-ms-flex-align: start;
align-items: flex-start;
}
.message-sent .message-content {
-webkit-box-align: end;
-webkit-align-items: flex-end;
-ms-flex-align: end;
align-items: flex-end;
}
.message:not(.message-last) .message-avatar {
opacity: 0;
}
.message:not(.message-first) .message-name {
display: none;
}
.message.message-same-name .message-name {
display: none;
}
.message.message-same-header .message-header {
display: none;
}
.message.message-same-footer .message-footer {
display: none;
}
.message-appear-from-bottom {
-webkit-animation: message-appear-from-bottom 300ms;
animation: message-appear-from-bottom 300ms;
}
.message-appear-from-top {
-webkit-animation: message-appear-from-top 300ms;
animation: message-appear-from-top 300ms;
}
.message-typing-indicator {
display: inline-block;
font-size: 0;
vertical-align: middle;
}
.message-typing-indicator > div {
display: inline-block;
position: relative;
background: #000;
vertical-align: middle;
border-radius: 50%;
}
@-webkit-keyframes message-appear-from-bottom {
from {
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
}
to {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
}
@keyframes message-appear-from-bottom {
from {
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
}
to {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
}
@-webkit-keyframes message-appear-from-top {
from {
-webkit-transform: translate3d(0, -100%, 0);
transform: translate3d(0, -100%, 0);
}
to {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
}
@keyframes message-appear-from-top {
from {
-webkit-transform: translate3d(0, -100%, 0);
transform: translate3d(0, -100%, 0);
}
to {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
}
.md .messages-content,
.md .messages {
background: #eee;
}
.md .message {
margin-top: 16px;
}
.md .message:last-child {
margin-bottom: 16px;
}
.md .messages-title {
font-size: 12px;
color: rgba(0, 0, 0, 0.51);
margin-top: 16px;
}
.md .messages-title:last-child {
margin-bottom: 16px;
}
.md .messages-title b {
font-weight: 500;
}
.md .message-avatar {
width: 32px;
height: 32px;
}
.md .message-header,
.md .message-footer,
.md .message-name {
color: rgba(0, 0, 0, 0.51);
}
.md .message-header b,
.md .message-footer b,
.md .message-name b {
font-weight: 500;
}
.md .message-header,
.md .message-name {
margin-bottom: 2px;
}
.md .message-footer {
margin-top: 2px;
}
.md .message-bubble {
font-size: 16px;
border-radius: 2px;
padding: 6px 8px;
min-height: 32px;
}
.md .message-text-header,
.md .message-text-footer {
color: rgba(0, 0, 0, 0.51);
}
.md .message-text-header {
margin-bottom: 4px;
}
.md .message-text-footer {
margin-top: 4px;
}
.md .message-received {
margin-left: 8px;
}
.md .message-received .message-bubble {
color: #333;
background: #fff;
}
.md .message-received .message-avatar + .message-content {
margin-left: 8px;
}
.md .message-received.message-tail .message-bubble {
border-radius: 2px 2px 2px 0;
}
.md .message-received.message-tail .message-bubble:before {
position: absolute;
content: '';
border-left: 8px solid transparent;
border-right: 0 solid transparent;
border-bottom: 8px solid #fff;
right: 100%;
bottom: 0;
width: 0;
height: 0;
}
.md .message-sent {
margin-right: 8px;
}
.md .message-sent .message-bubble {
color: #333;
background: #c8e6c9;
}
.md .message-sent .message-avatar + .message-content {
margin-right: 8px;
}
.md .message-sent.message-tail .message-bubble {
border-radius: 2px 2px 0 2px;
}
.md .message-sent.message-tail .message-bubble:before {
position: absolute;
content: '';
border-right: 8px solid transparent;
border-left: 0 solid transparent;
border-bottom: 8px solid #c8e6c9;
left: 100%;
bottom: 0;
width: 0;
height: 0;
}
.md .message + .message:not(.message-first) {
margin-top: 8px;
}
.md .message-typing-indicator > div {
width: 6px;
height: 6px;
opacity: 0.6;
}
.md .message-typing-indicator > div + div {
margin-left: 6px;
}
.md .message-typing-indicator > div:nth-child(1) {
-webkit-animation: md-message-typing-indicator 900ms infinite;
animation: md-message-typing-indicator 900ms infinite;
}
.md .message-typing-indicator > div:nth-child(2) {
-webkit-animation: md-message-typing-indicator 900ms 150ms infinite;
animation: md-message-typing-indicator 900ms 150ms infinite;
}
.md .message-typing-indicator > div:nth-child(3) {
-webkit-animation: md-message-typing-indicator 900ms 300ms infinite;
animation: md-message-typing-indicator 900ms 300ms infinite;
}
.md .theme-dark .messages-content,
.messages-content.md .theme-dark,
.md .theme-dark .messages,
.messages.md .theme-dark {
background-color: transparent;
}
.md .theme-dark .messages-title {
color: rgba(255, 255, 255, 0.54);
}
.md .theme-dark .message-header,
.md .theme-dark .message-footer,
.md .theme-dark .message-name {
color: rgba(255, 255, 255, 0.54);
}
@media (orientation: landscape) {
.md.device-iphone-x .ios-left-edge .message-received,
.md.device-iphone-x .ios-edges .message-received,
.md.device-iphone-x .popup .message-received,
.md.device-iphone-x .sheet-modal .message-received,
.md.device-iphone-x .panel-left .message-received {
margin-left: calc(8px + constant(safe-area-inset-left));
margin-left: calc(8px + env(safe-area-inset-left));
}
.md.device-iphone-x .ios-right-edge .message-sent,
.md.device-iphone-x .ios-edges .message-sent,
.md.device-iphone-x .popup .message-sent,
.md.device-iphone-x .sheet-modal .message-sent,
.md.device-iphone-x .panel-right .message-sent {
margin-right: calc(8px + constant(safe-area-inset-right));
margin-right: calc(8px + env(safe-area-inset-right));
}
}
@-webkit-keyframes md-message-typing-indicator {
0% {
-webkit-transform: translateY(0%);
transform: translateY(0%);
}
25% {
-webkit-transform: translateY(-5px);
transform: translateY(-5px);
}
50% {
-webkit-transform: translateY(0%);
transform: translateY(0%);
}
}
@keyframes md-message-typing-indicator {
0% {
-webkit-transform: translateY(0%);
transform: translateY(0%);
}
25% {
-webkit-transform: translateY(-5px);
transform: translateY(-5px);
}
50% {
-webkit-transform: translateY(0%);
transform: translateY(0%);
}
}
/* === Messagebar === */
.toolbar.messagebar {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
background: #fff;
height: auto;
}
.toolbar.messagebar .toolbar-inner {
position: relative;
}
.toolbar.messagebar .messagebar-area {
width: 100%;
-webkit-flex-shrink: 1;
-ms-flex-negative: 1;
flex-shrink: 1;
overflow: hidden;
position: relative;
}
.toolbar.messagebar textarea {
width: 100%;
-webkit-flex-shrink: 1;
-ms-flex-negative: 1;
flex-shrink: 1;
}
.toolbar.messagebar a.link {
-webkit-align-self: flex-end;
-ms-flex-item-align: end;
align-self: flex-end;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
}
.messagebar-attachments {
width: 100%;
overflow: auto;
-webkit-overflow-scrolling: touch;
font-size: 0;
white-space: nowrap;
-webkit-box-sizing: border-box;
box-sizing: border-box;
position: relative;
}
.messagebar:not(.messagebar-attachments-visible) .messagebar-attachments {
display: none;
}
.messagebar-attachment {
background-size: cover;
background-position: center;
background-repeat: no-repeat;
display: inline-block;
vertical-align: middle;
white-space: normal;
height: 155px;
position: relative;
}
@media (orientation: landscape) {
.messagebar-attachment {
height: 120px;
}
}
.messagebar-attachment img {
display: block;
width: auto;
height: 100%;
}
.messagebar-attachment + .messagebar-attachment {
margin-left: 8px;
}
.messagebar-sheet {
overflow: auto;
-webkit-overflow-scrolling: touch;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-align-content: flex-start;
-ms-flex-line-pack: start;
align-content: flex-start;
height: 252px;
}
@media (orientation: landscape) {
.messagebar-sheet {
height: 192px;
}
}
.messagebar-sheet-image,
.messagebar-sheet-item {
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
margin-top: 1px;
position: relative;
overflow: hidden;
height: 125px;
width: 125px;
margin-left: 1px;
}
@media (orientation: landscape) {
.messagebar-sheet-image,
.messagebar-sheet-item {
width: 95px;
height: 95px;
}
}
.messagebar-sheet-image .icon-checkbox,
.messagebar-sheet-item .icon-checkbox,
.messagebar-sheet-image .icon-radio,
.messagebar-sheet-item .icon-radio {
position: absolute;
right: 8px;
bottom: 8px;
}
.messagebar-sheet-image {
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.messagebar-attachment-delete {
display: block;
position: absolute;
border-radius: 50%;
-webkit-box-sizing: border-box;
box-sizing: border-box;
cursor: pointer;
-webkit-box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);
box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);
}
.messagebar-attachment-delete:after,
.messagebar-attachment-delete:before {
position: absolute;
content: '';
left: 50%;
top: 50%;
}
.messagebar-attachment-delete:after {
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
.messagebar-attachment-delete:before {
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
}
.messagebar:not(.messagebar-sheet-visible) .messagebar-sheet {
display: none;
}
.ios.device-iphone-x .messagebar:not(.messagebar-top),
.md.device-iphone-x .messagebar:not(.messagebar-top) {
height: auto !important;
}
.ios.device-iphone-x .messagebar:not(.messagebar-top):not(.messagebar-sheet-visible),
.md.device-iphone-x .messagebar:not(.messagebar-top):not(.messagebar-sheet-visible) {
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
}
.ios.device-iphone-x .messagebar-sheet,
.md.device-iphone-x .messagebar-sheet {
padding-left: constant(safe-area-inset-left);
padding-left: env(safe-area-inset-left);
padding-right: constant(safe-area-inset-right);
padding-right: env(safe-area-inset-right);
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
}
.md .messagebar {
font-size: 16px;
}
.md .messagebar:after {
display: none;
}
.md .messagebar textarea {
padding: 5px 8px;
height: 32px;
color: #333;
font-size: 16px;
line-height: 22px;
}
.md .messagebar a.link {
color: #333;
}
.md .messagebar a.link:before {
content: '';
width: 152%;
height: 152%;
position: absolute;
left: -26%;
top: -26%;
background-image: -webkit-radial-gradient(center, circle, rgba(0, 0, 0, 0.1) 66%, rgba(0, 0, 0, 0) 66%);
background-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 66%, rgba(0, 0, 0, 0) 66%);
background-repeat: no-repeat;
background-position: center;
background-size: 100% 100%;
opacity: 0;
pointer-events: none;
-webkit-transition-duration: 600ms;
transition-duration: 600ms;
}
.md .messagebar a.link.active-state:before {
opacity: 1;
-webkit-transition-duration: 150ms;
transition-duration: 150ms;
}
.md .messagebar:before {
content: '';
position: absolute;
background-color: #d1d1d1;
display: block;
z-index: 15;
top: 0;
right: auto;
bottom: auto;
left: 0;
height: 1px;
width: 100%;
-webkit-transform-origin: 50% 0%;
transform-origin: 50% 0%;
}
.md.device-pixel-ratio-2 .messagebar:before {
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.md.device-pixel-ratio-3 .messagebar:before {
-webkit-transform: scaleY(0.33);
transform: scaleY(0.33);
}
.md .messagebar-attachments {
padding: 8px;
border-bottom: 1px solid #ddd;
}
.md .messagebar-area {
margin-top: 8px;
margin-bottom: 8px;
}
.md .messagebar-sheet {
background: #fff;
}
.md .messagebar-sheet-image .icon-checkbox,
.md .messagebar-sheet-item .icon-checkbox {
border-color: #fff;
background: rgba(255, 255, 255, 0.25);
-webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}
.md .messagebar-attachment-delete {
right: 8px;
top: 8px;
width: 24px;
height: 24px;
background: #2196f3;
cursor: pointer;
border-radius: 2px;
}
.md .messagebar-attachment-delete:after,
.md .messagebar-attachment-delete:before {
width: 14px;
height: 2px;
background: #fff;
margin-left: -7px;
margin-top: -1px;
}
.md .theme-dark .messagebar,
.messagebar.md .theme-dark {
background: #000;
}
.md .theme-dark .messagebar:before,
.messagebar.md .theme-dark:before {
background-color: rgba(255, 255, 255, 0.2);
}
.md .theme-dark .messagebar a.link,
.messagebar.md .theme-dark a.link {
color: rgba(255, 255, 255, 0.87);
}
.md .theme-dark .messagebar a.link:before,
.messagebar.md .theme-dark a.link:before {
content: '';
width: 152%;
height: 152%;
position: absolute;
left: -26%;
top: -26%;
background-image: -webkit-radial-gradient(center, circle, rgba(255, 255, 255, 0.15) 66%, rgba(255, 255, 255, 0) 66%);
background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 66%, rgba(255, 255, 255, 0) 66%);
background-repeat: no-repeat;
background-position: center;
background-size: 100% 100%;
opacity: 0;
pointer-events: none;
-webkit-transition-duration: 600ms;
transition-duration: 600ms;
}
.md .theme-dark .messagebar a.link.active-state:before,
.messagebar.md .theme-dark a.link.active-state:before {
opacity: 1;
-webkit-transition-duration: 150ms;
transition-duration: 150ms;
}
.md .theme-dark .messagebar textarea,
.messagebar.md .theme-dark textarea {
color: rgba(255, 255, 255, 0.87);
}
.md .theme-dark .messagebar-attachments {
border-bottom-color: rgba(255, 255, 255, 0.2);
}
/* === Swiper === */
.swiper-container {
margin: 0 auto;
position: relative;
overflow: hidden;
list-style: none;
padding: 0;
/* Fix of Webkit flickering */
z-index: 1;
}
.swiper-container-no-flexbox .swiper-slide {
float: left;
}
.swiper-container-vertical > .swiper-wrapper {
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
}
.swiper-wrapper {
position: relative;
width: 100%;
height: 100%;
z-index: 1;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-transition-property: -webkit-transform;
transition-property: -webkit-transform;
transition-property: transform;
transition-property: transform, -webkit-transform;
-webkit-box-sizing: content-box;
box-sizing: content-box;
}
.swiper-container-android .swiper-slide,
.swiper-wrapper {
-webkit-transform: translate3d(0px, 0, 0);
transform: translate3d(0px, 0, 0);
}
.swiper-container-multirow > .swiper-wrapper {
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
}
.swiper-container-free-mode > .swiper-wrapper {
-webkit-transition-timing-function: ease-out;
transition-timing-function: ease-out;
margin: 0 auto;
}
.swiper-slide {
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
width: 100%;
height: 100%;
position: relative;
-webkit-transition-property: -webkit-transform;
transition-property: -webkit-transform;
transition-property: transform;
transition-property: transform, -webkit-transform;
}
.swiper-invisible-blank-slide {
visibility: hidden;
}
/* Auto Height */
.swiper-container-autoheight,
.swiper-container-autoheight .swiper-slide {
height: auto;
}
.swiper-container-autoheight .swiper-wrapper {
-webkit-box-align: start;
-webkit-align-items: flex-start;
-ms-flex-align: start;
align-items: flex-start;
-webkit-transition-property: height, -webkit-transform;
transition-property: height, -webkit-transform;
transition-property: transform, height;
transition-property: transform, height, -webkit-transform;
}
/* 3D Effects */
.swiper-container-3d {
-webkit-perspective: 1200px;
perspective: 1200px;
}
.swiper-container-3d .swiper-wrapper,
.swiper-container-3d .swiper-slide,
.swiper-container-3d .swiper-slide-shadow-left,
.swiper-container-3d .swiper-slide-shadow-right,
.swiper-container-3d .swiper-slide-shadow-top,
.swiper-container-3d .swiper-slide-shadow-bottom,
.swiper-container-3d .swiper-cube-shadow {
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
}
.swiper-container-3d .swiper-slide-shadow-left,
.swiper-container-3d .swiper-slide-shadow-right,
.swiper-container-3d .swiper-slide-shadow-top,
.swiper-container-3d .swiper-slide-shadow-bottom {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 10;
}
.swiper-container-3d .swiper-slide-shadow-left {
background-image: -webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));
background-image: -webkit-linear-gradient(right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}
.swiper-container-3d .swiper-slide-shadow-right {
background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));
background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}
.swiper-container-3d .swiper-slide-shadow-top {
background-image: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));
background-image: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}
.swiper-container-3d .swiper-slide-shadow-bottom {
background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));
background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}
/* IE10 Windows Phone 8 Fixes */
.swiper-container-wp8-horizontal,
.swiper-container-wp8-horizontal > .swiper-wrapper {
-ms-touch-action: pan-y;
touch-action: pan-y;
}
.swiper-container-wp8-vertical,
.swiper-container-wp8-vertical > .swiper-wrapper {
-ms-touch-action: pan-x;
touch-action: pan-x;
}
/* a11y */
.swiper-container .swiper-notification {
position: absolute;
left: 0;
top: 0;
pointer-events: none;
opacity: 0;
z-index: -1000;
}
.swiper-container-coverflow .swiper-wrapper {
/* Windows 8 IE 10 fix */
-ms-perspective: 1200px;
}
.swiper-container-cube {
overflow: visible;
}
.swiper-container-cube .swiper-slide {
pointer-events: none;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
z-index: 1;
visibility: hidden;
-webkit-transform-origin: 0 0;
transform-origin: 0 0;
width: 100%;
height: 100%;
}
.swiper-container-cube .swiper-slide .swiper-slide {
pointer-events: none;
}
.swiper-container-cube.swiper-container-rtl .swiper-slide {
-webkit-transform-origin: 100% 0;
transform-origin: 100% 0;
}
.swiper-container-cube .swiper-slide-active,
.swiper-container-cube .swiper-slide-active .swiper-slide-active {
pointer-events: auto;
}
.swiper-container-cube .swiper-slide-active,
.swiper-container-cube .swiper-slide-next,
.swiper-container-cube .swiper-slide-prev,
.swiper-container-cube .swiper-slide-next + .swiper-slide {
pointer-events: auto;
visibility: visible;
}
.swiper-container-cube .swiper-slide-shadow-top,
.swiper-container-cube .swiper-slide-shadow-bottom,
.swiper-container-cube .swiper-slide-shadow-left,
.swiper-container-cube .swiper-slide-shadow-right {
z-index: 0;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
.swiper-container-cube .swiper-cube-shadow {
position: absolute;
left: 0;
bottom: 0px;
width: 100%;
height: 100%;
background: #000;
opacity: 0.6;
-webkit-filter: blur(50px);
filter: blur(50px);
z-index: 0;
}
.swiper-container-fade.swiper-container-free-mode .swiper-slide {
-webkit-transition-timing-function: ease-out;
transition-timing-function: ease-out;
}
.swiper-container-fade .swiper-slide {
pointer-events: none;
-webkit-transition-property: opacity;
transition-property: opacity;
}
.swiper-container-fade .swiper-slide .swiper-slide {
pointer-events: none;
}
.swiper-container-fade .swiper-slide-active,
.swiper-container-fade .swiper-slide-active .swiper-slide-active {
pointer-events: auto;
}
.swiper-container-flip {
overflow: visible;
}
.swiper-container-flip .swiper-slide {
pointer-events: none;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
z-index: 1;
}
.swiper-container-flip .swiper-slide .swiper-slide {
pointer-events: none;
}
.swiper-container-flip .swiper-slide-active,
.swiper-container-flip .swiper-slide-active .swiper-slide-active {
pointer-events: auto;
}
.swiper-container-flip .swiper-slide-shadow-top,
.swiper-container-flip .swiper-slide-shadow-bottom,
.swiper-container-flip .swiper-slide-shadow-left,
.swiper-container-flip .swiper-slide-shadow-right {
z-index: 0;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
/* Scrollbar */
.swiper-scrollbar {
border-radius: 10px;
position: relative;
-ms-touch-action: none;
background: rgba(0, 0, 0, 0.1);
}
.swiper-container-horizontal > .swiper-scrollbar {
position: absolute;
left: 1%;
bottom: 3px;
z-index: 50;
height: 5px;
width: 98%;
}
.swiper-container-vertical > .swiper-scrollbar {
position: absolute;
right: 3px;
top: 1%;
z-index: 50;
width: 5px;
height: 98%;
}
.swiper-scrollbar-drag {
height: 100%;
width: 100%;
position: relative;
background: rgba(0, 0, 0, 0.5);
border-radius: 10px;
left: 0;
top: 0;
}
.swiper-scrollbar-cursor-drag {
cursor: move;
}
.swiper-scrollbar-lock {
display: none;
}
.swiper-zoom-container {
width: 100%;
height: 100%;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
text-align: center;
}
.swiper-zoom-container > img,
.swiper-zoom-container > svg,
.swiper-zoom-container > canvas {
max-width: 100%;
max-height: 100%;
-o-object-fit: contain;
object-fit: contain;
}
.swiper-slide-zoomed {
cursor: move;
}
.swiper-button-prev,
.swiper-button-next {
position: absolute;
top: 50%;
width: 27px;
height: 44px;
margin-top: -22px;
z-index: 10;
cursor: pointer;
background-size: 27px 44px;
background-position: center;
background-repeat: no-repeat;
}
.swiper-button-prev.swiper-button-disabled,
.swiper-button-next.swiper-button-disabled {
opacity: 0.35;
cursor: auto;
pointer-events: none;
}
.swiper-button-prev,
.swiper-container-rtl .swiper-button-next {
left: 10px;
right: auto;
}
.swiper-button-next,
.swiper-container-rtl .swiper-button-prev {
right: 10px;
left: auto;
}
.swiper-pagination {
position: absolute;
text-align: center;
-webkit-transition: 300ms opacity;
transition: 300ms opacity;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
z-index: 10;
}
.swiper-pagination.swiper-pagination-hidden {
opacity: 0;
}
.swiper-pagination-fraction,
.swiper-pagination-custom,
.swiper-container-horizontal > .swiper-pagination-bullets {
bottom: 10px;
left: 0;
width: 100%;
}
.swiper-pagination-bullets-dynamic {
overflow: hidden;
font-size: 0;
}
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
-webkit-transform: scale(0.33);
transform: scale(0.33);
position: relative;
}
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active {
-webkit-transform: scale(1);
transform: scale(1);
}
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev {
-webkit-transform: scale(0.66);
transform: scale(0.66);
}
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev {
-webkit-transform: scale(0.33);
transform: scale(0.33);
}
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next {
-webkit-transform: scale(0.66);
transform: scale(0.66);
}
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next {
-webkit-transform: scale(0.33);
transform: scale(0.33);
}
.swiper-pagination-bullet {
width: 8px;
height: 8px;
display: inline-block;
border-radius: 100%;
background: #000;
opacity: 0.2;
}
button.swiper-pagination-bullet {
border: none;
margin: 0;
padding: 0;
-webkit-box-shadow: none;
box-shadow: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
.swiper-pagination-clickable .swiper-pagination-bullet {
cursor: pointer;
}
.swiper-pagination-bullet-active {
opacity: 1;
}
.swiper-container-vertical > .swiper-pagination-bullets {
right: 10px;
top: 50%;
-webkit-transform: translate3d(0px, -50%, 0);
transform: translate3d(0px, -50%, 0);
}
.swiper-container-vertical > .swiper-pagination-bullets .swiper-pagination-bullet {
margin: 6px 0;
display: block;
}
.swiper-container-vertical > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic {
top: 50%;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
width: 8px;
}
.swiper-container-vertical > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
display: inline-block;
-webkit-transition: 200ms top, 200ms -webkit-transform;
transition: 200ms top, 200ms -webkit-transform;
transition: 200ms transform, 200ms top;
transition: 200ms transform, 200ms top, 200ms -webkit-transform;
}
.swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet {
margin: 0 4px;
}
.swiper-container-horizontal > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic {
left: 50%;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
white-space: nowrap;
}
.swiper-container-horizontal > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
-webkit-transition: 200ms left, 200ms -webkit-transform;
transition: 200ms left, 200ms -webkit-transform;
transition: 200ms transform, 200ms left;
transition: 200ms transform, 200ms left, 200ms -webkit-transform;
}
.swiper-pagination-progressbar {
background: rgba(0, 0, 0, 0.25);
position: absolute;
}
.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
-webkit-transform: scale(0);
transform: scale(0);
-webkit-transform-origin: left top;
transform-origin: left top;
}
.swiper-container-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
-webkit-transform-origin: right top;
transform-origin: right top;
}
.swiper-container-horizontal > .swiper-pagination-progressbar,
.swiper-container-vertical > .swiper-pagination-progressbar.swiper-pagination-progressbar-opposite {
width: 100%;
height: 4px;
left: 0;
top: 0;
}
.swiper-container-vertical > .swiper-pagination-progressbar,
.swiper-container-horizontal > .swiper-pagination-progressbar.swiper-pagination-progressbar-opposite {
width: 4px;
height: 100%;
left: 0;
top: 0;
}
.swiper-lazy-preloader {
position: absolute;
left: 50%;
top: 50%;
z-index: 10;
}
.md .swiper-lazy-preloader {
width: 32px;
height: 32px;
margin-left: -16px;
margin-top: -16px;
}
.md .swiper-button-prev,
.md .swiper-container-rtl .swiper-button-next {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%232196f3'%2F%3E%3C%2Fsvg%3E");
}
.md .swiper-button-next,
.md .swiper-container-rtl .swiper-button-prev {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%232196f3'%2F%3E%3C%2Fsvg%3E");
}
.md .swiper-pagination-bullet-active {
background: #2196f3;
}
.md .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
background: #2196f3;
}
.md .swiper-button-prev.color-red,
.md .swiper-container-rtl .swiper-button-next.color-red,
.md .color-theme-red .swiper-button-prev,
.md .color-theme-red .swiper-container-rtl .swiper-button-next {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23f44336'%2F%3E%3C%2Fsvg%3E");
}
.md .swiper-button-next.color-red,
.md .swiper-container-rtl .swiper-button-prev.color-red,
.md .color-theme-red .swiper-button-next,
.md .color-theme-red .swiper-container-rtl .swiper-button-prev {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23f44336'%2F%3E%3C%2Fsvg%3E");
}
.md .color-red .swiper-pagination-bullet-active,
.md .color-theme-red .swiper-pagination-bullet-active {
background: #f44336;
}
.md .color-red .swiper-pagination-progressbar,
.md .color-theme-red .swiper-pagination-progressbar,
.md .color-red.swiper-pagination-progressbar,
.md .color-theme-red.swiper-pagination-progressbar {
background: rgba(244, 67, 54, 0.25);
}
.md .color-red .swiper-pagination-progressbar .swiper-pagination-progressbar-fill,
.md .color-theme-red .swiper-pagination-progressbar .swiper-pagination-progressbar-fill,
.md .color-red.swiper-pagination-progressbar .swiper-pagination-progressbar-fill,
.md .color-theme-red.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
background: #f44336;
}
.md .swiper-button-prev.color-green,
.md .swiper-container-rtl .swiper-button-next.color-green,
.md .color-theme-green .swiper-button-prev,
.md .color-theme-green .swiper-container-rtl .swiper-button-next {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%234caf50'%2F%3E%3C%2Fsvg%3E");
}
.md .swiper-button-next.color-green,
.md .swiper-container-rtl .swiper-button-prev.color-green,
.md .color-theme-green .swiper-button-next,
.md .color-theme-green .swiper-container-rtl .swiper-button-prev {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%234caf50'%2F%3E%3C%2Fsvg%3E");
}
.md .color-green .swiper-pagination-bullet-active,
.md .color-theme-green .swiper-pagination-bullet-active {
background: #4caf50;
}
.md .color-green .swiper-pagination-progressbar,
.md .color-theme-green .swiper-pagination-progressbar,
.md .color-green.swiper-pagination-progressbar,
.md .color-theme-green.swiper-pagination-progressbar {
background: rgba(76, 175, 80, 0.25);
}
.md .color-green .swiper-pagination-progressbar .swiper-pagination-progressbar-fill,
.md .color-theme-green .swiper-pagination-progressbar .swiper-pagination-progressbar-fill,
.md .color-green.swiper-pagination-progressbar .swiper-pagination-progressbar-fill,
.md .color-theme-green.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
background: #4caf50;
}
.md .swiper-button-prev.color-blue,
.md .swiper-container-rtl .swiper-button-next.color-blue,
.md .color-theme-blue .swiper-button-prev,
.md .color-theme-blue .swiper-container-rtl .swiper-button-next {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%232196f3'%2F%3E%3C%2Fsvg%3E");
}
.md .swiper-button-next.color-blue,
.md .swiper-container-rtl .swiper-button-prev.color-blue,
.md .color-theme-blue .swiper-button-next,
.md .color-theme-blue .swiper-container-rtl .swiper-button-prev {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%232196f3'%2F%3E%3C%2Fsvg%3E");
}
.md .color-blue .swiper-pagination-bullet-active,
.md .color-theme-blue .swiper-pagination-bullet-active {
background: #2196f3;
}
.md .color-blue .swiper-pagination-progressbar,
.md .color-theme-blue .swiper-pagination-progressbar,
.md .color-blue.swiper-pagination-progressbar,
.md .color-theme-blue.swiper-pagination-progressbar {
background: rgba(33, 150, 243, 0.25);
}
.md .color-blue .swiper-pagination-progressbar .swiper-pagination-progressbar-fill,
.md .color-theme-blue .swiper-pagination-progressbar .swiper-pagination-progressbar-fill,
.md .color-blue.swiper-pagination-progressbar .swiper-pagination-progressbar-fill,
.md .color-theme-blue.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
background: #2196f3;
}
.md .swiper-button-prev.color-pink,
.md .swiper-container-rtl .swiper-button-next.color-pink,
.md .color-theme-pink .swiper-button-prev,
.md .color-theme-pink .swiper-container-rtl .swiper-button-next {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23e91e63'%2F%3E%3C%2Fsvg%3E");
}
.md .swiper-button-next.color-pink,
.md .swiper-container-rtl .swiper-button-prev.color-pink,
.md .color-theme-pink .swiper-button-next,
.md .color-theme-pink .swiper-container-rtl .swiper-button-prev {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23e91e63'%2F%3E%3C%2Fsvg%3E");
}
.md .color-pink .swiper-pagination-bullet-active,
.md .color-theme-pink .swiper-pagination-bullet-active {
background: #e91e63;
}
.md .color-pink .swiper-pagination-progressbar,
.md .color-theme-pink .swiper-pagination-progressbar,
.md .color-pink.swiper-pagination-progressbar,
.md .color-theme-pink.swiper-pagination-progressbar {
background: rgba(233, 30, 99, 0.25);
}
.md .color-pink .swiper-pagination-progressbar .swiper-pagination-progressbar-fill,
.md .color-theme-pink .swiper-pagination-progressbar .swiper-pagination-progressbar-fill,
.md .color-pink.swiper-pagination-progressbar .swiper-pagination-progressbar-fill,
.md .color-theme-pink.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
background: #e91e63;
}
.md .swiper-button-prev.color-yellow,
.md .swiper-container-rtl .swiper-button-next.color-yellow,
.md .color-theme-yellow .swiper-button-prev,
.md .color-theme-yellow .swiper-container-rtl .swiper-button-next {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23ffeb3b'%2F%3E%3C%2Fsvg%3E");
}
.md .swiper-button-next.color-yellow,
.md .swiper-container-rtl .swiper-button-prev.color-yellow,
.md .color-theme-yellow .swiper-button-next,
.md .color-theme-yellow .swiper-container-rtl .swiper-button-prev {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23ffeb3b'%2F%3E%3C%2Fsvg%3E");
}
.md .color-yellow .swiper-pagination-bullet-active,
.md .color-theme-yellow .swiper-pagination-bullet-active {
background: #ffeb3b;
}
.md .color-yellow .swiper-pagination-progressbar,
.md .color-theme-yellow .swiper-pagination-progressbar,
.md .color-yellow.swiper-pagination-progressbar,
.md .color-theme-yellow.swiper-pagination-progressbar {
background: rgba(255, 235, 59, 0.25);
}
.md .color-yellow .swiper-pagination-progressbar .swiper-pagination-progressbar-fill,
.md .color-theme-yellow .swiper-pagination-progressbar .swiper-pagination-progressbar-fill,
.md .color-yellow.swiper-pagination-progressbar .swiper-pagination-progressbar-fill,
.md .color-theme-yellow.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
background: #ffeb3b;
}
.md .swiper-button-prev.color-orange,
.md .swiper-container-rtl .swiper-button-next.color-orange,
.md .color-theme-orange .swiper-button-prev,
.md .color-theme-orange .swiper-container-rtl .swiper-button-next {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23ff9800'%2F%3E%3C%2Fsvg%3E");
}
.md .swiper-button-next.color-orange,
.md .swiper-container-rtl .swiper-button-prev.color-orange,
.md .color-theme-orange .swiper-button-next,
.md .color-theme-orange .swiper-container-rtl .swiper-button-prev {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23ff9800'%2F%3E%3C%2Fsvg%3E");
}
.md .color-orange .swiper-pagination-bullet-active,
.md .color-theme-orange .swiper-pagination-bullet-active {
background: #ff9800;
}
.md .color-orange .swiper-pagination-progressbar,
.md .color-theme-orange .swiper-pagination-progressbar,
.md .color-orange.swiper-pagination-progressbar,
.md .color-theme-orange.swiper-pagination-progressbar {
background: rgba(255, 152, 0, 0.25);
}
.md .color-orange .swiper-pagination-progressbar .swiper-pagination-progressbar-fill,
.md .color-theme-orange .swiper-pagination-progressbar .swiper-pagination-progressbar-fill,
.md .color-orange.swiper-pagination-progressbar .swiper-pagination-progressbar-fill,
.md .color-theme-orange.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
background: #ff9800;
}
.md .swiper-button-prev.color-gray,
.md .swiper-container-rtl .swiper-button-next.color-gray,
.md .color-theme-gray .swiper-button-prev,
.md .color-theme-gray .swiper-container-rtl .swiper-button-next {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%239e9e9e'%2F%3E%3C%2Fsvg%3E");
}
.md .swiper-button-next.color-gray,
.md .swiper-container-rtl .swiper-button-prev.color-gray,
.md .color-theme-gray .swiper-button-next,
.md .color-theme-gray .swiper-container-rtl .swiper-button-prev {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%239e9e9e'%2F%3E%3C%2Fsvg%3E");
}
.md .color-gray .swiper-pagination-bullet-active,
.md .color-theme-gray .swiper-pagination-bullet-active {
background: #9e9e9e;
}
.md .color-gray .swiper-pagination-progressbar,
.md .color-theme-gray .swiper-pagination-progressbar,
.md .color-gray.swiper-pagination-progressbar,
.md .color-theme-gray.swiper-pagination-progressbar {
background: rgba(158, 158, 158, 0.25);
}
.md .color-gray .swiper-pagination-progressbar .swiper-pagination-progressbar-fill,
.md .color-theme-gray .swiper-pagination-progressbar .swiper-pagination-progressbar-fill,
.md .color-gray.swiper-pagination-progressbar .swiper-pagination-progressbar-fill,
.md .color-theme-gray.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
background: #9e9e9e;
}
.md .swiper-button-prev.color-white,
.md .swiper-container-rtl .swiper-button-next.color-white,
.md .color-theme-white .swiper-button-prev,
.md .color-theme-white .swiper-container-rtl .swiper-button-next {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E");
}
.md .swiper-button-next.color-white,
.md .swiper-container-rtl .swiper-button-prev.color-white,
.md .color-theme-white .swiper-button-next,
.md .color-theme-white .swiper-container-rtl .swiper-button-prev {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E");
}
.md .color-white .swiper-pagination-bullet-active,
.md .color-theme-white .swiper-pagination-bullet-active {
background: #ffffff;
}
.md .color-white .swiper-pagination-progressbar,
.md .color-theme-white .swiper-pagination-progressbar,
.md .color-white.swiper-pagination-progressbar,
.md .color-theme-white.swiper-pagination-progressbar {
background: rgba(255, 255, 255, 0.25);
}
.md .color-white .swiper-pagination-progressbar .swiper-pagination-progressbar-fill,
.md .color-theme-white .swiper-pagination-progressbar .swiper-pagination-progressbar-fill,
.md .color-white.swiper-pagination-progressbar .swiper-pagination-progressbar-fill,
.md .color-theme-white.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
background: #ffffff;
}
.md .swiper-button-prev.color-black,
.md .swiper-container-rtl .swiper-button-next.color-black,
.md .color-theme-black .swiper-button-prev,
.md .color-theme-black .swiper-container-rtl .swiper-button-next {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E");
}
.md .swiper-button-next.color-black,
.md .swiper-container-rtl .swiper-button-prev.color-black,
.md .color-theme-black .swiper-button-next,
.md .color-theme-black .swiper-container-rtl .swiper-button-prev {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E");
}
.md .color-black .swiper-pagination-bullet-active,
.md .color-theme-black .swiper-pagination-bullet-active {
background: #000000;
}
.md .color-black .swiper-pagination-progressbar,
.md .color-theme-black .swiper-pagination-progressbar,
.md .color-black.swiper-pagination-progressbar,
.md .color-theme-black.swiper-pagination-progressbar {
background: rgba(0, 0, 0, 0.25);
}
.md .color-black .swiper-pagination-progressbar .swiper-pagination-progressbar-fill,
.md .color-theme-black .swiper-pagination-progressbar .swiper-pagination-progressbar-fill,
.md .color-black.swiper-pagination-progressbar .swiper-pagination-progressbar-fill,
.md .color-theme-black.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
background: #000000;
}
/* === Photo Browser === */
.photo-browser {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: 400;
}
.photo-browser-standalone.modal-in {
-webkit-transition-duration: 0ms;
transition-duration: 0ms;
-webkit-animation: photo-browser-in 400ms;
animation: photo-browser-in 400ms;
}
.photo-browser-standalone.modal-out {
-webkit-transition-duration: 0ms;
transition-duration: 0ms;
-webkit-animation: photo-browser-out 400ms;
animation: photo-browser-out 400ms;
}
.photo-browser-standalone.modal-out.swipe-close-to-bottom,
.photo-browser-standalone.modal-out.swipe-close-to-top {
-webkit-animation: none;
animation: none;
}
.photo-browser-popup.modal-out.swipe-close-to-bottom,
.photo-browser-popup.modal-out.swipe-close-to-top {
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
}
.photo-browser-popup.modal-out.swipe-close-to-bottom {
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
}
.photo-browser-popup.modal-out.swipe-close-to-top {
-webkit-transform: translate3d(0, -100vh, 0);
transform: translate3d(0, -100vh, 0);
}
.page.photo-browser-page {
background: none;
}
.photo-browser-popup {
background: none;
}
.photo-browser-exposed .navbar,
.photo-browser-exposed .toolbar {
opacity: 0;
visibility: hidden;
pointer-events: none;
}
.photo-browser-exposed .photo-browser-swiper-container {
background: #000;
}
.photo-browser-of {
margin: 0 5px;
}
.photo-browser-captions {
pointer-events: none;
position: absolute;
left: 0;
width: 100%;
bottom: 0;
z-index: 10;
opacity: 1;
-webkit-transition: 400ms;
transition: 400ms;
}
.photo-browser-captions.photo-browser-captions-exposed {
opacity: 0;
}
.photo-browser-caption {
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-transition: 300ms;
transition: 300ms;
position: absolute;
bottom: 0;
left: 0;
opacity: 0;
padding: 4px 5px;
width: 100%;
text-align: center;
color: #fff;
background: rgba(0, 0, 0, 0.8);
}
.photo-browser-caption:empty {
display: none;
}
.photo-browser-caption.photo-browser-caption-active {
opacity: 1;
}
.photo-browser-captions-light .photo-browser-caption {
background: rgba(255, 255, 255, 0.8);
color: #000;
}
.photo-browser-captions-dark .photo-browser-caption {
color: #fff;
}
.photo-browser-exposed .photo-browser-caption {
color: #fff;
background: rgba(0, 0, 0, 0.8);
}
.photo-browser-swiper-container {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: hidden;
background: #fff;
-webkit-transition: 400ms;
transition: 400ms;
-webkit-transition-property: background-color;
transition-property: background-color;
}
.photo-browser-prev.swiper-button-disabled,
.photo-browser-next.swiper-button-disabled {
opacity: 0.3;
}
.photo-browser-slide {
width: 100%;
height: 100%;
position: relative;
overflow: hidden;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.photo-browser-slide.photo-browser-transitioning {
-webkit-transition: 400ms;
transition: 400ms;
-webkit-transition-property: -webkit-transform;
transition-property: -webkit-transform;
transition-property: transform;
transition-property: transform, -webkit-transform;
}
.photo-browser-slide span.swiper-zoom-container {
display: none;
}
.photo-browser-slide img {
width: auto;
height: auto;
max-width: 100%;
max-height: 100%;
display: none;
}
.photo-browser-slide.swiper-slide-active span.swiper-zoom-container,
.photo-browser-slide.swiper-slide-next span.swiper-zoom-container,
.photo-browser-slide.swiper-slide-prev span.swiper-zoom-container {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
.photo-browser-slide.swiper-slide-active img,
.photo-browser-slide.swiper-slide-next img,
.photo-browser-slide.swiper-slide-prev img {
display: inline;
}
.photo-browser-slide.swiper-slide-active.photo-browser-slide-lazy .preloader,
.photo-browser-slide.swiper-slide-next.photo-browser-slide-lazy .preloader,
.photo-browser-slide.swiper-slide-prev.photo-browser-slide-lazy .preloader {
display: block;
}
.photo-browser-slide iframe {
width: 100%;
height: 100%;
}
.photo-browser-slide .preloader {
display: none;
position: absolute;
width: 42px;
height: 42px;
margin-left: -21px;
margin-top: -21px;
left: 50%;
top: 50%;
}
.photo-browser-dark .photo-browser-swiper-container,
.photo-browser-page-dark .photo-browser-swiper-container {
background: #000;
}
@-webkit-keyframes photo-browser-in {
0% {
-webkit-transform: translate3d(0, 0, 0) scale(0.5);
transform: translate3d(0, 0, 0) scale(0.5);
opacity: 0;
}
50% {
-webkit-transform: translate3d(0, 0, 0) scale(1.05);
transform: translate3d(0, 0, 0) scale(1.05);
opacity: 1;
}
100% {
-webkit-transform: translate3d(0, 0, 0) scale(1);
transform: translate3d(0, 0, 0) scale(1);
opacity: 1;
}
}
@keyframes photo-browser-in {
0% {
-webkit-transform: translate3d(0, 0, 0) scale(0.5);
transform: translate3d(0, 0, 0) scale(0.5);
opacity: 0;
}
50% {
-webkit-transform: translate3d(0, 0, 0) scale(1.05);
transform: translate3d(0, 0, 0) scale(1.05);
opacity: 1;
}
100% {
-webkit-transform: translate3d(0, 0, 0) scale(1);
transform: translate3d(0, 0, 0) scale(1);
opacity: 1;
}
}
@-webkit-keyframes photo-browser-out {
0% {
-webkit-transform: translate3d(0, 0, 0) scale(1);
transform: translate3d(0, 0, 0) scale(1);
opacity: 1;
}
50% {
-webkit-transform: translate3d(0, 0, 0) scale(1.05);
transform: translate3d(0, 0, 0) scale(1.05);
opacity: 1;
}
100% {
-webkit-transform: translate3d(0, 0, 0) scale(0.5);
transform: translate3d(0, 0, 0) scale(0.5);
opacity: 0;
}
}
@keyframes photo-browser-out {
0% {
-webkit-transform: translate3d(0, 0, 0) scale(1);
transform: translate3d(0, 0, 0) scale(1);
opacity: 1;
}
50% {
-webkit-transform: translate3d(0, 0, 0) scale(1.05);
transform: translate3d(0, 0, 0) scale(1.05);
opacity: 1;
}
100% {
-webkit-transform: translate3d(0, 0, 0) scale(0.5);
transform: translate3d(0, 0, 0) scale(0.5);
opacity: 0;
}
}
.md .toolbar ~ .photo-browser-captions {
bottom: 48px;
-webkit-transform: translate3d(0, 0px, 0);
transform: translate3d(0, 0px, 0);
}
.md .toolbar ~ .photo-browser-captions.photo-browser-captions-exposed {
-webkit-transform: translate3d(0, 0px, 0);
transform: translate3d(0, 0px, 0);
}
.md .photo-browser-exposed .toolbar ~ .photo-browser-captions {
-webkit-transform: translate3d(0, 48px, 0);
transform: translate3d(0, 48px, 0);
}
.md .photo-browser-page .toolbar {
-webkit-transform: none;
transform: none;
}
.md .photo-browser-page .navbar,
.md .photo-browser-page .toolbar {
background: rgba(33, 150, 243, 0.95);
-webkit-transition: 400ms;
transition: 400ms;
}
.md .photo-browser-dark .navbar,
.md .photo-browser-page-dark .navbar,
.md .photo-browser-dark .toolbar,
.md .photo-browser-page-dark .toolbar {
background: rgba(30, 30, 30, 0.8) !important;
color: #fff;
}
.md .photo-browser-dark .navbar a,
.md .photo-browser-page-dark .navbar a,
.md .photo-browser-dark .toolbar a,
.md .photo-browser-page-dark .toolbar a {
color: #fff;
}
.md .color-theme-red .photo-browser-page:not(.photo-browser-page-dark) .navbar,
.md .color-red .photo-browser-page:not(.photo-browser-page-dark) .navbar,
.md .color-theme-red .photo-browser-page:not(.photo-browser-page-dark) .toolbar,
.md .color-red .photo-browser-page:not(.photo-browser-page-dark) .toolbar {
background-color: rgba(244, 67, 54, 0.95);
}
.md .color-theme-green .photo-browser-page:not(.photo-browser-page-dark) .navbar,
.md .color-green .photo-browser-page:not(.photo-browser-page-dark) .navbar,
.md .color-theme-green .photo-browser-page:not(.photo-browser-page-dark) .toolbar,
.md .color-green .photo-browser-page:not(.photo-browser-page-dark) .toolbar {
background-color: rgba(76, 175, 80, 0.95);
}
.md .color-theme-blue .photo-browser-page:not(.photo-browser-page-dark) .navbar,
.md .color-blue .photo-browser-page:not(.photo-browser-page-dark) .navbar,
.md .color-theme-blue .photo-browser-page:not(.photo-browser-page-dark) .toolbar,
.md .color-blue .photo-browser-page:not(.photo-browser-page-dark) .toolbar {
background-color: rgba(33, 150, 243, 0.95);
}
.md .color-theme-pink .photo-browser-page:not(.photo-browser-page-dark) .navbar,
.md .color-pink .photo-browser-page:not(.photo-browser-page-dark) .navbar,
.md .color-theme-pink .photo-browser-page:not(.photo-browser-page-dark) .toolbar,
.md .color-pink .photo-browser-page:not(.photo-browser-page-dark) .toolbar {
background-color: rgba(233, 30, 99, 0.95);
}
.md .color-theme-yellow .photo-browser-page:not(.photo-browser-page-dark) .navbar,
.md .color-yellow .photo-browser-page:not(.photo-browser-page-dark) .navbar,
.md .color-theme-yellow .photo-browser-page:not(.photo-browser-page-dark) .toolbar,
.md .color-yellow .photo-browser-page:not(.photo-browser-page-dark) .toolbar {
background-color: rgba(255, 235, 59, 0.95);
}
.md .color-theme-orange .photo-browser-page:not(.photo-browser-page-dark) .navbar,
.md .color-orange .photo-browser-page:not(.photo-browser-page-dark) .navbar,
.md .color-theme-orange .photo-browser-page:not(.photo-browser-page-dark) .toolbar,
.md .color-orange .photo-browser-page:not(.photo-browser-page-dark) .toolbar {
background-color: rgba(255, 152, 0, 0.95);
}
.md .color-theme-gray .photo-browser-page:not(.photo-browser-page-dark) .navbar,
.md .color-gray .photo-browser-page:not(.photo-browser-page-dark) .navbar,
.md .color-theme-gray .photo-browser-page:not(.photo-browser-page-dark) .toolbar,
.md .color-gray .photo-browser-page:not(.photo-browser-page-dark) .toolbar {
background-color: rgba(158, 158, 158, 0.95);
}
.md .color-theme-white .photo-browser-page:not(.photo-browser-page-dark) .navbar,
.md .color-white .photo-browser-page:not(.photo-browser-page-dark) .navbar,
.md .color-theme-white .photo-browser-page:not(.photo-browser-page-dark) .toolbar,
.md .color-white .photo-browser-page:not(.photo-browser-page-dark) .toolbar {
background-color: rgba(255, 255, 255, 0.95);
}
.md .color-theme-black .photo-browser-page:not(.photo-browser-page-dark) .navbar,
.md .color-black .photo-browser-page:not(.photo-browser-page-dark) .navbar,
.md .color-theme-black .photo-browser-page:not(.photo-browser-page-dark) .toolbar,
.md .color-black .photo-browser-page:not(.photo-browser-page-dark) .toolbar {
background-color: rgba(0, 0, 0, 0.95);
}
.md.device-iphone-x .photo-browser-captions {
bottom: constant(safe-area-inset-bottom);
bottom: env(safe-area-inset-bottom);
}
.md.device-iphone-x .toolbar ~ .photo-browser-captions {
bottom: calc(48px + constant(safe-area-inset-bottom));
bottom: calc(48px + env(safe-area-inset-bottom));
}
/* === Notifications === */
.notification {
position: absolute;
left: 0;
top: 0;
width: 100%;
z-index: 20000;
font-size: 14px;
margin: 0;
border: none;
display: none;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-transition-property: -webkit-transform;
transition-property: -webkit-transform;
transition-property: transform;
transition-property: transform, -webkit-transform;
direction: ltr;
}
.notification-icon {
font-size: 0;
}
.notification-header {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.notification-close-button {
margin-left: auto;
cursor: pointer;
}
html.with-statusbar.device-ios .notification,
html.with-statusbar.ios:not(.device-ios):not(.device-android) .notification {
margin-top: 20px;
}
html.with-statusbar.device-android .notification,
html.with-statusbar.md:not(.device-ios):not(.device-android) .notification {
margin-top: 24px;
}
html.with-statusbar.device-iphone-x .notification {
margin-top: constant(safe-area-inset-top);
margin-top: env(safe-area-inset-top);
}
.md .notification {
left: 0;
top: 0;
width: 100%;
background: #fff;
border-radius: 0px;
-webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.22), 0 1px 2px rgba(0, 0, 0, 0.24);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.22), 0 1px 2px rgba(0, 0, 0, 0.24);
padding: 16px;
color: #000;
max-width: 568px;
}
@media (min-width: 568px) {
.md .notification {
left: 50%;
margin-left: -284px;
}
}
.md .notification.modal-in {
-webkit-transition-duration: 0ms;
transition-duration: 0ms;
-webkit-animation: notification-md-in 400ms ease-out;
animation: notification-md-in 400ms ease-out;
}
.md .notification.modal-in.notification-transitioning {
-webkit-transition-duration: 200ms;
transition-duration: 200ms;
}
.md .notification.modal-out {
-webkit-animation: none;
animation: none;
-webkit-transition-duration: 200ms;
transition-duration: 200ms;
-webkit-transition-timing-function: ease-in;
transition-timing-function: ease-in;
-webkit-transform: translate3d(0, -150%, 0);
transform: translate3d(0, -150%, 0);
}
.md .notification-icon {
width: 16px;
height: 16px;
margin-right: 8px;
line-height: 16px;
}
.md .notification-icon i {
width: 16px;
height: 16px;
font-size: 16px;
}
.md .notification-title {
font-size: 12px;
line-height: 1;
color: #2196f3;
}
.md .notification-subtitle {
font-size: 14px;
line-height: 1.35;
color: #212121;
}
.md .notification-subtitle + .notification-text {
margin-top: 2px;
}
.md .notification-text {
font-size: 14px;
line-height: 1.35;
color: #757575;
}
.md .notification-header + .notification-content {
margin-top: 6px;
}
.md .notification-title-right-text {
font-size: 12px;
color: #757575;
margin-left: 4px;
}
.md .notification-title-right-text:before {
content: '';
width: 3px;
height: 3px;
border-radius: 50%;
display: inline-block;
vertical-align: middle;
margin-right: 4px;
background: #757575;
}
.md .notification-close-button {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20fill%3D'%23737373'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%20width%3D'24'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M19%206.41L17.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z'%2F%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
width: 16px;
height: 16px;
background-position: center top;
background-repeat: no-repeat;
background-size: 100% auto;
position: relative;
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
}
.md .notification-close-button:before {
content: '';
width: 152%;
height: 152%;
position: absolute;
left: -26%;
top: -26%;
background-image: -webkit-radial-gradient(center, circle, rgba(0, 0, 0, 0.1) 66%, rgba(0, 0, 0, 0) 66%);
background-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 66%, rgba(0, 0, 0, 0) 66%);
background-repeat: no-repeat;
background-position: center;
background-size: 100% 100%;
opacity: 0;
pointer-events: none;
-webkit-transition-duration: 600ms;
transition-duration: 600ms;
}
.md .notification-close-button.active-state:before {
opacity: 1;
-webkit-transition-duration: 150ms;
transition-duration: 150ms;
}
.md .notification-close-button:before {
width: 48px;
height: 48px;
left: 50%;
top: 50%;
margin-left: -24px;
margin-top: -24px;
}
.md .notification-close-button:after {
content: '';
position: absolute;
left: 50%;
top: 50%;
width: 48px;
height: 48px;
margin-left: -22px;
margin-top: -22px;
}
@-webkit-keyframes notification-md-in {
0% {
-webkit-transform: translate3d(0, -150%, 0);
transform: translate3d(0, -150%, 0);
}
50% {
-webkit-transform: translate3d(0, 10%, 0);
transform: translate3d(0, 10%, 0);
}
100% {
-webkit-transform: translate3d(0, 0%, 0);
transform: translate3d(0, 0%, 0);
}
}
@keyframes notification-md-in {
0% {
-webkit-transform: translate3d(0, -150%, 0);
transform: translate3d(0, -150%, 0);
}
50% {
-webkit-transform: translate3d(0, 10%, 0);
transform: translate3d(0, 10%, 0);
}
100% {
-webkit-transform: translate3d(0, 0%, 0);
transform: translate3d(0, 0%, 0);
}
}
/* === Autocomplete === */
.autocomplete-page .autocomplete-found {
display: block;
}
.autocomplete-page .autocomplete-not-found {
display: none;
}
.autocomplete-page .autocomplete-values {
display: block;
}
.autocomplete-page .list ul:empty {
display: none;
}
.autocomplete-preloader:not(.autocomplete-preloader-visible) {
visibility: hidden;
}
.autocomplete-preloader:not(.autocomplete-preloader-visible),
.autocomplete-preloader:not(.autocomplete-preloader-visible) * {
-webkit-animation: none;
animation: none;
}
.autocomplete-dropdown {
background: #fff;
-webkit-box-sizing: border-box;
box-sizing: border-box;
position: absolute;
z-index: 500;
width: 100%;
left: 0;
}
.autocomplete-dropdown .autocomplete-dropdown-inner {
position: relative;
overflow: auto;
-webkit-overflow-scrolling: touch;
height: 100%;
z-index: 1;
}
.autocomplete-dropdown .autocomplete-preloader {
display: none;
position: absolute;
bottom: 100%;
width: 20px;
height: 20px;
}
.autocomplete-dropdown .autocomplete-preloader-visible {
display: block;
}
.autocomplete-dropdown .autocomplete-dropdown-placeholder {
color: #a9a9a9;
}
.autocomplete-dropdown .list {
margin: 0;
}
.autocomplete-dropdown .list ul {
background: none !important;
}
.autocomplete-dropdown .list ul:before {
display: none !important;
}
.autocomplete-dropdown .list ul:after {
display: none !important;
}
.list .item-content-dropdown-expanded .item-title.item-label {
width: 0;
-webkit-flex-shrink: 10;
-ms-flex-negative: 10;
flex-shrink: 10;
overflow: hidden;
}
.list .item-content-dropdown-expanded .item-title.item-label + .item-input-wrap {
margin-left: 0;
}
.list .item-content-dropdown-expanded .item-input-wrap {
width: 100%;
}
.md .autocomplete-page .navbar .autocomplete-preloader {
margin-right: 16px;
}
.md .autocomplete-dropdown {
-webkit-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
}
.md .autocomplete-dropdown .autocomplete-preloader {
right: 16px;
margin-bottom: 8px;
}
.md .autocomplete-dropdown .autocomplete-preloader .preloader-inner-gap,
.md .autocomplete-dropdown .autocomplete-preloader .preloader-inner-half-circle {
border-width: 3px;
}
.md .autocomplete-dropdown .list {
color: rgba(0, 0, 0, 0.54);
}
.md .autocomplete-dropdown .list b {
font-weight: normal;
color: #212121;
}
.md .searchbar-input-wrap .autocomplete-dropdown .item-content {
padding-left: 73px;
}
.md .searchbar-input-wrap .autocomplete-dropdown li:last-child {
border-radius: 0 0 8px 8px;
position: relative;
overflow: hidden;
}
.md .searchbar-input-wrap .autocomplete-dropdown .autocomplete-dropdown-placeholder {
color: #939398;
}
/* === Tooltip === */
.tooltip {
position: absolute;
z-index: 20000;
background: rgba(0, 0, 0, 0.87);
border-radius: 4px;
padding: 8px 16px;
color: #fff;
font-size: 14px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
line-height: 1.2;
opacity: 0;
-webkit-transform: scale(0.9);
transform: scale(0.9);
-webkit-transition-duration: 150ms;
transition-duration: 150ms;
-webkit-transition-property: opacity, -webkit-transform;
transition-property: opacity, -webkit-transform;
transition-property: opacity, transform;
transition-property: opacity, transform, -webkit-transform;
z-index: 99000;
font-weight: 500;
}
.tooltip.tooltip-in {
-webkit-transform: scale(1);
transform: scale(1);
opacity: 1;
}
.tooltip.tooltip-out {
opacity: 0;
-webkit-transform: scale(1);
transform: scale(1);
}
.device-desktop .tooltip {
font-size: 12px;
padding: 6px 8px;
}
/* === Gauge === */
.gauge {
position: relative;
text-align: center;
margin-left: auto;
margin-right: auto;
display: inline-block;
}
.gauge-svg,
.gauge svg {
max-width: 100%;
height: auto;
}
.gauge-svg circle,
.gauge svg circle,
.gauge-svg path,
.gauge svg path {
-webkit-transition-duration: 400ms;
transition-duration: 400ms;
}
iframe#viAd {
z-index: 12900 !important;
background: #000 !important;
}
.vi-overlay {
background: rgba(0, 0, 0, 0.85);
z-index: 13100;
position: absolute;
left: 0%;
top: 0%;
width: 100%;
height: 100%;
border-radius: 3px;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-align-content: center;
-ms-flex-line-pack: center;
align-content: center;
text-align: center;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
.vi-overlay {
background: rgba(0, 0, 0, 0.65);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
}
}
.vi-overlay .vi-overlay-text {
text-align: center;
color: #fff;
max-width: 80%;
}
.vi-overlay .vi-overlay-text + .vi-overlay-play-button {
margin-top: 15px;
}
.vi-overlay .vi-overlay-play-button {
width: 44px;
height: 44px;
border-radius: 50%;
border: 2px solid #fff;
position: relative;
}
.vi-overlay .vi-overlay-play-button.active-state {
opacity: 0.55;
}
.vi-overlay .vi-overlay-play-button:before {
content: '';
width: 0;
height: 0;
border-top: 8px solid transparent;
border-bottom: 8px solid transparent;
border-left: 14px solid #fff;
position: absolute;
left: 50%;
top: 50%;
margin-left: 2px;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
/* === Elevation === */
.elevation-0 {
-webkit-box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0) !important;
box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0) !important;
}
.elevation-1 {
-webkit-box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12) !important;
}
.elevation-2 {
-webkit-box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12) !important;
}
.elevation-3 {
-webkit-box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12) !important;
}
.elevation-4 {
-webkit-box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12) !important;
}
.elevation-5 {
-webkit-box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 5px 8px 0px rgba(0, 0, 0, 0.14), 0px 1px 14px 0px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 5px 8px 0px rgba(0, 0, 0, 0.14), 0px 1px 14px 0px rgba(0, 0, 0, 0.12) !important;
}
.elevation-6 {
-webkit-box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12) !important;
}
.elevation-7 {
-webkit-box-shadow: 0px 4px 5px -2px rgba(0, 0, 0, 0.2), 0px 7px 10px 1px rgba(0, 0, 0, 0.14), 0px 2px 16px 1px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 4px 5px -2px rgba(0, 0, 0, 0.2), 0px 7px 10px 1px rgba(0, 0, 0, 0.14), 0px 2px 16px 1px rgba(0, 0, 0, 0.12) !important;
}
.elevation-8 {
-webkit-box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12) !important;
}
.elevation-9 {
-webkit-box-shadow: 0px 5px 6px -3px rgba(0, 0, 0, 0.2), 0px 9px 12px 1px rgba(0, 0, 0, 0.14), 0px 3px 16px 2px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 5px 6px -3px rgba(0, 0, 0, 0.2), 0px 9px 12px 1px rgba(0, 0, 0, 0.14), 0px 3px 16px 2px rgba(0, 0, 0, 0.12) !important;
}
.elevation-10 {
-webkit-box-shadow: 0px 6px 6px -3px rgba(0, 0, 0, 0.2), 0px 10px 14px 1px rgba(0, 0, 0, 0.14), 0px 4px 18px 3px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 6px 6px -3px rgba(0, 0, 0, 0.2), 0px 10px 14px 1px rgba(0, 0, 0, 0.14), 0px 4px 18px 3px rgba(0, 0, 0, 0.12) !important;
}
.elevation-11 {
-webkit-box-shadow: 0px 6px 7px -4px rgba(0, 0, 0, 0.2), 0px 11px 15px 1px rgba(0, 0, 0, 0.14), 0px 4px 20px 3px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 6px 7px -4px rgba(0, 0, 0, 0.2), 0px 11px 15px 1px rgba(0, 0, 0, 0.14), 0px 4px 20px 3px rgba(0, 0, 0, 0.12) !important;
}
.elevation-12 {
-webkit-box-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12) !important;
}
.elevation-13 {
-webkit-box-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 13px 19px 2px rgba(0, 0, 0, 0.14), 0px 5px 24px 4px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 13px 19px 2px rgba(0, 0, 0, 0.14), 0px 5px 24px 4px rgba(0, 0, 0, 0.12) !important;
}
.elevation-14 {
-webkit-box-shadow: 0px 7px 9px -4px rgba(0, 0, 0, 0.2), 0px 14px 21px 2px rgba(0, 0, 0, 0.14), 0px 5px 26px 4px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 7px 9px -4px rgba(0, 0, 0, 0.2), 0px 14px 21px 2px rgba(0, 0, 0, 0.14), 0px 5px 26px 4px rgba(0, 0, 0, 0.12) !important;
}
.elevation-15 {
-webkit-box-shadow: 0px 8px 9px -5px rgba(0, 0, 0, 0.2), 0px 15px 22px 2px rgba(0, 0, 0, 0.14), 0px 6px 28px 5px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 8px 9px -5px rgba(0, 0, 0, 0.2), 0px 15px 22px 2px rgba(0, 0, 0, 0.14), 0px 6px 28px 5px rgba(0, 0, 0, 0.12) !important;
}
.elevation-16 {
-webkit-box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12) !important;
}
.elevation-17 {
-webkit-box-shadow: 0px 8px 11px -5px rgba(0, 0, 0, 0.2), 0px 17px 26px 2px rgba(0, 0, 0, 0.14), 0px 6px 32px 5px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 8px 11px -5px rgba(0, 0, 0, 0.2), 0px 17px 26px 2px rgba(0, 0, 0, 0.14), 0px 6px 32px 5px rgba(0, 0, 0, 0.12) !important;
}
.elevation-18 {
-webkit-box-shadow: 0px 9px 11px -5px rgba(0, 0, 0, 0.2), 0px 18px 28px 2px rgba(0, 0, 0, 0.14), 0px 7px 34px 6px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 9px 11px -5px rgba(0, 0, 0, 0.2), 0px 18px 28px 2px rgba(0, 0, 0, 0.14), 0px 7px 34px 6px rgba(0, 0, 0, 0.12) !important;
}
.elevation-19 {
-webkit-box-shadow: 0px 9px 12px -6px rgba(0, 0, 0, 0.2), 0px 19px 29px 2px rgba(0, 0, 0, 0.14), 0px 7px 36px 6px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 9px 12px -6px rgba(0, 0, 0, 0.2), 0px 19px 29px 2px rgba(0, 0, 0, 0.14), 0px 7px 36px 6px rgba(0, 0, 0, 0.12) !important;
}
.elevation-20 {
-webkit-box-shadow: 0px 10px 13px -6px rgba(0, 0, 0, 0.2), 0px 20px 31px 3px rgba(0, 0, 0, 0.14), 0px 8px 38px 7px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 10px 13px -6px rgba(0, 0, 0, 0.2), 0px 20px 31px 3px rgba(0, 0, 0, 0.14), 0px 8px 38px 7px rgba(0, 0, 0, 0.12) !important;
}
.elevation-21 {
-webkit-box-shadow: 0px 10px 13px -6px rgba(0, 0, 0, 0.2), 0px 21px 33px 3px rgba(0, 0, 0, 0.14), 0px 8px 40px 7px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 10px 13px -6px rgba(0, 0, 0, 0.2), 0px 21px 33px 3px rgba(0, 0, 0, 0.14), 0px 8px 40px 7px rgba(0, 0, 0, 0.12) !important;
}
.elevation-22 {
-webkit-box-shadow: 0px 10px 14px -6px rgba(0, 0, 0, 0.2), 0px 22px 35px 3px rgba(0, 0, 0, 0.14), 0px 8px 42px 7px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 10px 14px -6px rgba(0, 0, 0, 0.2), 0px 22px 35px 3px rgba(0, 0, 0, 0.14), 0px 8px 42px 7px rgba(0, 0, 0, 0.12) !important;
}
.elevation-23 {
-webkit-box-shadow: 0px 11px 14px -7px rgba(0, 0, 0, 0.2), 0px 23px 36px 3px rgba(0, 0, 0, 0.14), 0px 9px 44px 8px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 11px 14px -7px rgba(0, 0, 0, 0.2), 0px 23px 36px 3px rgba(0, 0, 0, 0.14), 0px 9px 44px 8px rgba(0, 0, 0, 0.12) !important;
}
.elevation-24 {
-webkit-box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12) !important;
}
.device-desktop .elevation-hover-0:hover {
-webkit-box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0) !important;
box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0) !important;
}
.device-desktop .elevation-hover-1:hover {
-webkit-box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12) !important;
}
.device-desktop .elevation-hover-2:hover {
-webkit-box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12) !important;
}
.device-desktop .elevation-hover-3:hover {
-webkit-box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12) !important;
}
.device-desktop .elevation-hover-4:hover {
-webkit-box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12) !important;
}
.device-desktop .elevation-hover-5:hover {
-webkit-box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 5px 8px 0px rgba(0, 0, 0, 0.14), 0px 1px 14px 0px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 5px 8px 0px rgba(0, 0, 0, 0.14), 0px 1px 14px 0px rgba(0, 0, 0, 0.12) !important;
}
.device-desktop .elevation-hover-6:hover {
-webkit-box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12) !important;
}
.device-desktop .elevation-hover-7:hover {
-webkit-box-shadow: 0px 4px 5px -2px rgba(0, 0, 0, 0.2), 0px 7px 10px 1px rgba(0, 0, 0, 0.14), 0px 2px 16px 1px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 4px 5px -2px rgba(0, 0, 0, 0.2), 0px 7px 10px 1px rgba(0, 0, 0, 0.14), 0px 2px 16px 1px rgba(0, 0, 0, 0.12) !important;
}
.device-desktop .elevation-hover-8:hover {
-webkit-box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12) !important;
}
.device-desktop .elevation-hover-9:hover {
-webkit-box-shadow: 0px 5px 6px -3px rgba(0, 0, 0, 0.2), 0px 9px 12px 1px rgba(0, 0, 0, 0.14), 0px 3px 16px 2px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 5px 6px -3px rgba(0, 0, 0, 0.2), 0px 9px 12px 1px rgba(0, 0, 0, 0.14), 0px 3px 16px 2px rgba(0, 0, 0, 0.12) !important;
}
.device-desktop .elevation-hover-10:hover {
-webkit-box-shadow: 0px 6px 6px -3px rgba(0, 0, 0, 0.2), 0px 10px 14px 1px rgba(0, 0, 0, 0.14), 0px 4px 18px 3px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 6px 6px -3px rgba(0, 0, 0, 0.2), 0px 10px 14px 1px rgba(0, 0, 0, 0.14), 0px 4px 18px 3px rgba(0, 0, 0, 0.12) !important;
}
.device-desktop .elevation-hover-11:hover {
-webkit-box-shadow: 0px 6px 7px -4px rgba(0, 0, 0, 0.2), 0px 11px 15px 1px rgba(0, 0, 0, 0.14), 0px 4px 20px 3px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 6px 7px -4px rgba(0, 0, 0, 0.2), 0px 11px 15px 1px rgba(0, 0, 0, 0.14), 0px 4px 20px 3px rgba(0, 0, 0, 0.12) !important;
}
.device-desktop .elevation-hover-12:hover {
-webkit-box-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12) !important;
}
.device-desktop .elevation-hover-13:hover {
-webkit-box-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 13px 19px 2px rgba(0, 0, 0, 0.14), 0px 5px 24px 4px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 13px 19px 2px rgba(0, 0, 0, 0.14), 0px 5px 24px 4px rgba(0, 0, 0, 0.12) !important;
}
.device-desktop .elevation-hover-14:hover {
-webkit-box-shadow: 0px 7px 9px -4px rgba(0, 0, 0, 0.2), 0px 14px 21px 2px rgba(0, 0, 0, 0.14), 0px 5px 26px 4px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 7px 9px -4px rgba(0, 0, 0, 0.2), 0px 14px 21px 2px rgba(0, 0, 0, 0.14), 0px 5px 26px 4px rgba(0, 0, 0, 0.12) !important;
}
.device-desktop .elevation-hover-15:hover {
-webkit-box-shadow: 0px 8px 9px -5px rgba(0, 0, 0, 0.2), 0px 15px 22px 2px rgba(0, 0, 0, 0.14), 0px 6px 28px 5px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 8px 9px -5px rgba(0, 0, 0, 0.2), 0px 15px 22px 2px rgba(0, 0, 0, 0.14), 0px 6px 28px 5px rgba(0, 0, 0, 0.12) !important;
}
.device-desktop .elevation-hover-16:hover {
-webkit-box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12) !important;
}
.device-desktop .elevation-hover-17:hover {
-webkit-box-shadow: 0px 8px 11px -5px rgba(0, 0, 0, 0.2), 0px 17px 26px 2px rgba(0, 0, 0, 0.14), 0px 6px 32px 5px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 8px 11px -5px rgba(0, 0, 0, 0.2), 0px 17px 26px 2px rgba(0, 0, 0, 0.14), 0px 6px 32px 5px rgba(0, 0, 0, 0.12) !important;
}
.device-desktop .elevation-hover-18:hover {
-webkit-box-shadow: 0px 9px 11px -5px rgba(0, 0, 0, 0.2), 0px 18px 28px 2px rgba(0, 0, 0, 0.14), 0px 7px 34px 6px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 9px 11px -5px rgba(0, 0, 0, 0.2), 0px 18px 28px 2px rgba(0, 0, 0, 0.14), 0px 7px 34px 6px rgba(0, 0, 0, 0.12) !important;
}
.device-desktop .elevation-hover-19:hover {
-webkit-box-shadow: 0px 9px 12px -6px rgba(0, 0, 0, 0.2), 0px 19px 29px 2px rgba(0, 0, 0, 0.14), 0px 7px 36px 6px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 9px 12px -6px rgba(0, 0, 0, 0.2), 0px 19px 29px 2px rgba(0, 0, 0, 0.14), 0px 7px 36px 6px rgba(0, 0, 0, 0.12) !important;
}
.device-desktop .elevation-hover-20:hover {
-webkit-box-shadow: 0px 10px 13px -6px rgba(0, 0, 0, 0.2), 0px 20px 31px 3px rgba(0, 0, 0, 0.14), 0px 8px 38px 7px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 10px 13px -6px rgba(0, 0, 0, 0.2), 0px 20px 31px 3px rgba(0, 0, 0, 0.14), 0px 8px 38px 7px rgba(0, 0, 0, 0.12) !important;
}
.device-desktop .elevation-hover-21:hover {
-webkit-box-shadow: 0px 10px 13px -6px rgba(0, 0, 0, 0.2), 0px 21px 33px 3px rgba(0, 0, 0, 0.14), 0px 8px 40px 7px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 10px 13px -6px rgba(0, 0, 0, 0.2), 0px 21px 33px 3px rgba(0, 0, 0, 0.14), 0px 8px 40px 7px rgba(0, 0, 0, 0.12) !important;
}
.device-desktop .elevation-hover-22:hover {
-webkit-box-shadow: 0px 10px 14px -6px rgba(0, 0, 0, 0.2), 0px 22px 35px 3px rgba(0, 0, 0, 0.14), 0px 8px 42px 7px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 10px 14px -6px rgba(0, 0, 0, 0.2), 0px 22px 35px 3px rgba(0, 0, 0, 0.14), 0px 8px 42px 7px rgba(0, 0, 0, 0.12) !important;
}
.device-desktop .elevation-hover-23:hover {
-webkit-box-shadow: 0px 11px 14px -7px rgba(0, 0, 0, 0.2), 0px 23px 36px 3px rgba(0, 0, 0, 0.14), 0px 9px 44px 8px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 11px 14px -7px rgba(0, 0, 0, 0.2), 0px 23px 36px 3px rgba(0, 0, 0, 0.14), 0px 9px 44px 8px rgba(0, 0, 0, 0.12) !important;
}
.device-desktop .elevation-hover-24:hover {
-webkit-box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12) !important;
}
.active-state.elevation-pressed-0,
.device-desktop .active-state.elevation-pressed-0 {
-webkit-box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0) !important;
box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0) !important;
}
.active-state.elevation-pressed-1,
.device-desktop .active-state.elevation-pressed-1 {
-webkit-box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12) !important;
}
.active-state.elevation-pressed-2,
.device-desktop .active-state.elevation-pressed-2 {
-webkit-box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12) !important;
}
.active-state.elevation-pressed-3,
.device-desktop .active-state.elevation-pressed-3 {
-webkit-box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12) !important;
}
.active-state.elevation-pressed-4,
.device-desktop .active-state.elevation-pressed-4 {
-webkit-box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12) !important;
}
.active-state.elevation-pressed-5,
.device-desktop .active-state.elevation-pressed-5 {
-webkit-box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 5px 8px 0px rgba(0, 0, 0, 0.14), 0px 1px 14px 0px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 5px 8px 0px rgba(0, 0, 0, 0.14), 0px 1px 14px 0px rgba(0, 0, 0, 0.12) !important;
}
.active-state.elevation-pressed-6,
.device-desktop .active-state.elevation-pressed-6 {
-webkit-box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12) !important;
}
.active-state.elevation-pressed-7,
.device-desktop .active-state.elevation-pressed-7 {
-webkit-box-shadow: 0px 4px 5px -2px rgba(0, 0, 0, 0.2), 0px 7px 10px 1px rgba(0, 0, 0, 0.14), 0px 2px 16px 1px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 4px 5px -2px rgba(0, 0, 0, 0.2), 0px 7px 10px 1px rgba(0, 0, 0, 0.14), 0px 2px 16px 1px rgba(0, 0, 0, 0.12) !important;
}
.active-state.elevation-pressed-8,
.device-desktop .active-state.elevation-pressed-8 {
-webkit-box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12) !important;
}
.active-state.elevation-pressed-9,
.device-desktop .active-state.elevation-pressed-9 {
-webkit-box-shadow: 0px 5px 6px -3px rgba(0, 0, 0, 0.2), 0px 9px 12px 1px rgba(0, 0, 0, 0.14), 0px 3px 16px 2px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 5px 6px -3px rgba(0, 0, 0, 0.2), 0px 9px 12px 1px rgba(0, 0, 0, 0.14), 0px 3px 16px 2px rgba(0, 0, 0, 0.12) !important;
}
.active-state.elevation-pressed-10,
.device-desktop .active-state.elevation-pressed-10 {
-webkit-box-shadow: 0px 6px 6px -3px rgba(0, 0, 0, 0.2), 0px 10px 14px 1px rgba(0, 0, 0, 0.14), 0px 4px 18px 3px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 6px 6px -3px rgba(0, 0, 0, 0.2), 0px 10px 14px 1px rgba(0, 0, 0, 0.14), 0px 4px 18px 3px rgba(0, 0, 0, 0.12) !important;
}
.active-state.elevation-pressed-11,
.device-desktop .active-state.elevation-pressed-11 {
-webkit-box-shadow: 0px 6px 7px -4px rgba(0, 0, 0, 0.2), 0px 11px 15px 1px rgba(0, 0, 0, 0.14), 0px 4px 20px 3px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 6px 7px -4px rgba(0, 0, 0, 0.2), 0px 11px 15px 1px rgba(0, 0, 0, 0.14), 0px 4px 20px 3px rgba(0, 0, 0, 0.12) !important;
}
.active-state.elevation-pressed-12,
.device-desktop .active-state.elevation-pressed-12 {
-webkit-box-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12) !important;
}
.active-state.elevation-pressed-13,
.device-desktop .active-state.elevation-pressed-13 {
-webkit-box-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 13px 19px 2px rgba(0, 0, 0, 0.14), 0px 5px 24px 4px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 13px 19px 2px rgba(0, 0, 0, 0.14), 0px 5px 24px 4px rgba(0, 0, 0, 0.12) !important;
}
.active-state.elevation-pressed-14,
.device-desktop .active-state.elevation-pressed-14 {
-webkit-box-shadow: 0px 7px 9px -4px rgba(0, 0, 0, 0.2), 0px 14px 21px 2px rgba(0, 0, 0, 0.14), 0px 5px 26px 4px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 7px 9px -4px rgba(0, 0, 0, 0.2), 0px 14px 21px 2px rgba(0, 0, 0, 0.14), 0px 5px 26px 4px rgba(0, 0, 0, 0.12) !important;
}
.active-state.elevation-pressed-15,
.device-desktop .active-state.elevation-pressed-15 {
-webkit-box-shadow: 0px 8px 9px -5px rgba(0, 0, 0, 0.2), 0px 15px 22px 2px rgba(0, 0, 0, 0.14), 0px 6px 28px 5px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 8px 9px -5px rgba(0, 0, 0, 0.2), 0px 15px 22px 2px rgba(0, 0, 0, 0.14), 0px 6px 28px 5px rgba(0, 0, 0, 0.12) !important;
}
.active-state.elevation-pressed-16,
.device-desktop .active-state.elevation-pressed-16 {
-webkit-box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12) !important;
}
.active-state.elevation-pressed-17,
.device-desktop .active-state.elevation-pressed-17 {
-webkit-box-shadow: 0px 8px 11px -5px rgba(0, 0, 0, 0.2), 0px 17px 26px 2px rgba(0, 0, 0, 0.14), 0px 6px 32px 5px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 8px 11px -5px rgba(0, 0, 0, 0.2), 0px 17px 26px 2px rgba(0, 0, 0, 0.14), 0px 6px 32px 5px rgba(0, 0, 0, 0.12) !important;
}
.active-state.elevation-pressed-18,
.device-desktop .active-state.elevation-pressed-18 {
-webkit-box-shadow: 0px 9px 11px -5px rgba(0, 0, 0, 0.2), 0px 18px 28px 2px rgba(0, 0, 0, 0.14), 0px 7px 34px 6px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 9px 11px -5px rgba(0, 0, 0, 0.2), 0px 18px 28px 2px rgba(0, 0, 0, 0.14), 0px 7px 34px 6px rgba(0, 0, 0, 0.12) !important;
}
.active-state.elevation-pressed-19,
.device-desktop .active-state.elevation-pressed-19 {
-webkit-box-shadow: 0px 9px 12px -6px rgba(0, 0, 0, 0.2), 0px 19px 29px 2px rgba(0, 0, 0, 0.14), 0px 7px 36px 6px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 9px 12px -6px rgba(0, 0, 0, 0.2), 0px 19px 29px 2px rgba(0, 0, 0, 0.14), 0px 7px 36px 6px rgba(0, 0, 0, 0.12) !important;
}
.active-state.elevation-pressed-20,
.device-desktop .active-state.elevation-pressed-20 {
-webkit-box-shadow: 0px 10px 13px -6px rgba(0, 0, 0, 0.2), 0px 20px 31px 3px rgba(0, 0, 0, 0.14), 0px 8px 38px 7px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 10px 13px -6px rgba(0, 0, 0, 0.2), 0px 20px 31px 3px rgba(0, 0, 0, 0.14), 0px 8px 38px 7px rgba(0, 0, 0, 0.12) !important;
}
.active-state.elevation-pressed-21,
.device-desktop .active-state.elevation-pressed-21 {
-webkit-box-shadow: 0px 10px 13px -6px rgba(0, 0, 0, 0.2), 0px 21px 33px 3px rgba(0, 0, 0, 0.14), 0px 8px 40px 7px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 10px 13px -6px rgba(0, 0, 0, 0.2), 0px 21px 33px 3px rgba(0, 0, 0, 0.14), 0px 8px 40px 7px rgba(0, 0, 0, 0.12) !important;
}
.active-state.elevation-pressed-22,
.device-desktop .active-state.elevation-pressed-22 {
-webkit-box-shadow: 0px 10px 14px -6px rgba(0, 0, 0, 0.2), 0px 22px 35px 3px rgba(0, 0, 0, 0.14), 0px 8px 42px 7px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 10px 14px -6px rgba(0, 0, 0, 0.2), 0px 22px 35px 3px rgba(0, 0, 0, 0.14), 0px 8px 42px 7px rgba(0, 0, 0, 0.12) !important;
}
.active-state.elevation-pressed-23,
.device-desktop .active-state.elevation-pressed-23 {
-webkit-box-shadow: 0px 11px 14px -7px rgba(0, 0, 0, 0.2), 0px 23px 36px 3px rgba(0, 0, 0, 0.14), 0px 9px 44px 8px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 11px 14px -7px rgba(0, 0, 0, 0.2), 0px 23px 36px 3px rgba(0, 0, 0, 0.14), 0px 9px 44px 8px rgba(0, 0, 0, 0.12) !important;
}
.active-state.elevation-pressed-24,
.device-desktop .active-state.elevation-pressed-24 {
-webkit-box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12) !important;
box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12) !important;
}
.elevation-transition-100 {
-webkit-transition-duration: 100ms;
transition-duration: 100ms;
-webkit-transition-property: -webkit-box-shadow;
transition-property: -webkit-box-shadow;
transition-property: box-shadow;
transition-property: box-shadow, -webkit-box-shadow;
}
.elevation-transition,
.elevation-transition-200 {
-webkit-transition-duration: 200ms;
transition-duration: 200ms;
-webkit-transition-property: -webkit-box-shadow;
transition-property: -webkit-box-shadow;
transition-property: box-shadow;
transition-property: box-shadow, -webkit-box-shadow;
}
.elevation-transition-300 {
-webkit-transition-duration: 300ms;
transition-duration: 300ms;
-webkit-transition-property: -webkit-box-shadow;
transition-property: -webkit-box-shadow;
transition-property: box-shadow;
transition-property: box-shadow, -webkit-box-shadow;
}
.elevation-transition-400 {
-webkit-transition-duration: 400ms;
transition-duration: 400ms;
-webkit-transition-property: -webkit-box-shadow;
transition-property: -webkit-box-shadow;
transition-property: box-shadow;
transition-property: box-shadow, -webkit-box-shadow;
}
.elevation-transition-500 {
-webkit-transition-duration: 500ms;
transition-duration: 500ms;
-webkit-transition-property: -webkit-box-shadow;
transition-property: -webkit-box-shadow;
transition-property: box-shadow;
transition-property: box-shadow, -webkit-box-shadow;
}
/* === Typography === */
.display-flex {
display: -webkit-box !important;
display: -webkit-flex !important;
display: -ms-flexbox !important;
display: flex !important;
}
.display-block {
display: block !important;
}
.display-inline-flex {
display: -webkit-inline-box !important;
display: -webkit-inline-flex !important;
display: -ms-inline-flexbox !important;
display: inline-flex !important;
}
.display-inline-block {
display: inline-block !important;
}
.display-inline {
display: inline !important;
}
.display-none {
display: none !important;
}
.flex-shrink-0 {
-webkit-flex-shrink: 0 !important;
-ms-flex-negative: 0 !important;
flex-shrink: 0 !important;
}
.flex-shrink-1 {
-webkit-flex-shrink: 1 !important;
-ms-flex-negative: 1 !important;
flex-shrink: 1 !important;
}
.flex-shrink-2 {
-webkit-flex-shrink: 2 !important;
-ms-flex-negative: 2 !important;
flex-shrink: 2 !important;
}
.flex-shrink-3 {
-webkit-flex-shrink: 3 !important;
-ms-flex-negative: 3 !important;
flex-shrink: 3 !important;
}
.flex-shrink-4 {
-webkit-flex-shrink: 4 !important;
-ms-flex-negative: 4 !important;
flex-shrink: 4 !important;
}
.flex-shrink-5 {
-webkit-flex-shrink: 5 !important;
-ms-flex-negative: 5 !important;
flex-shrink: 5 !important;
}
.flex-shrink-6 {
-webkit-flex-shrink: 6 !important;
-ms-flex-negative: 6 !important;
flex-shrink: 6 !important;
}
.flex-shrink-7 {
-webkit-flex-shrink: 7 !important;
-ms-flex-negative: 7 !important;
flex-shrink: 7 !important;
}
.flex-shrink-8 {
-webkit-flex-shrink: 8 !important;
-ms-flex-negative: 8 !important;
flex-shrink: 8 !important;
}
.flex-shrink-9 {
-webkit-flex-shrink: 9 !important;
-ms-flex-negative: 9 !important;
flex-shrink: 9 !important;
}
.flex-shrink-10 {
-webkit-flex-shrink: 10 !important;
-ms-flex-negative: 10 !important;
flex-shrink: 10 !important;
}
.justify-content-flex-start {
-webkit-box-pack: start !important;
-webkit-justify-content: flex-start !important;
-ms-flex-pack: start !important;
justify-content: flex-start !important;
}
.justify-content-center {
-webkit-box-pack: center !important;
-webkit-justify-content: center !important;
-ms-flex-pack: center !important;
justify-content: center !important;
}
.justify-content-flex-end {
-webkit-box-pack: end !important;
-webkit-justify-content: flex-end !important;
-ms-flex-pack: end !important;
justify-content: flex-end !important;
}
.justify-content-space-between {
-webkit-box-pack: justify !important;
-webkit-justify-content: space-between !important;
-ms-flex-pack: justify !important;
justify-content: space-between !important;
}
.justify-content-space-around {
-webkit-justify-content: space-around !important;
-ms-flex-pack: distribute !important;
justify-content: space-around !important;
}
.justify-content-space-evenly {
-webkit-box-pack: space-evenly !important;
-webkit-justify-content: space-evenly !important;
-ms-flex-pack: space-evenly !important;
justify-content: space-evenly !important;
}
.justify-content-stretch {
-webkit-box-pack: stretch !important;
-webkit-justify-content: stretch !important;
-ms-flex-pack: stretch !important;
justify-content: stretch !important;
}
.justify-content-start {
-webkit-box-pack: start !important;
-webkit-justify-content: start !important;
-ms-flex-pack: start !important;
justify-content: start !important;
}
.justify-content-end {
-webkit-box-pack: end !important;
-webkit-justify-content: end !important;
-ms-flex-pack: end !important;
justify-content: end !important;
}
.justify-content-left {
-webkit-box-pack: left !important;
-webkit-justify-content: left !important;
-ms-flex-pack: left !important;
justify-content: left !important;
}
.justify-content-right {
-webkit-box-pack: right !important;
-webkit-justify-content: right !important;
-ms-flex-pack: right !important;
justify-content: right !important;
}
.align-content-flex-start {
-webkit-align-content: flex-start !important;
-ms-flex-line-pack: start !important;
align-content: flex-start !important;
}
.align-content-flex-end {
-webkit-align-content: flex-end !important;
-ms-flex-line-pack: end !important;
align-content: flex-end !important;
}
.align-content-center {
-webkit-align-content: center !important;
-ms-flex-line-pack: center !important;
align-content: center !important;
}
.align-content-space-between {
-webkit-align-content: space-between !important;
-ms-flex-line-pack: justify !important;
align-content: space-between !important;
}
.align-content-space-around {
-webkit-align-content: space-around !important;
-ms-flex-line-pack: distribute !important;
align-content: space-around !important;
}
.align-content-stretch {
-webkit-align-content: stretch !important;
-ms-flex-line-pack: stretch !important;
align-content: stretch !important;
}
.align-items-flex-start {
-webkit-box-align: start !important;
-webkit-align-items: flex-start !important;
-ms-flex-align: start !important;
align-items: flex-start !important;
}
.align-items-flex-end {
-webkit-box-align: end !important;
-webkit-align-items: flex-end !important;
-ms-flex-align: end !important;
align-items: flex-end !important;
}
.align-items-center {
-webkit-box-align: center !important;
-webkit-align-items: center !important;
-ms-flex-align: center !important;
align-items: center !important;
}
.align-items-stretch {
-webkit-box-align: stretch !important;
-webkit-align-items: stretch !important;
-ms-flex-align: stretch !important;
align-items: stretch !important;
}
.align-self-flex-start {
-webkit-align-self: flex-start !important;
-ms-flex-item-align: start !important;
align-self: flex-start !important;
}
.align-self-flex-end {
-webkit-align-self: flex-end !important;
-ms-flex-item-align: end !important;
align-self: flex-end !important;
}
.align-self-center {
-webkit-align-self: center !important;
-ms-flex-item-align: center !important;
align-self: center !important;
}
.align-self-stretch {
-webkit-align-self: stretch !important;
-ms-flex-item-align: stretch !important;
align-self: stretch !important;
}
.text-align-left {
text-align: left !important;
}
.text-align-center {
text-align: center !important;
}
.text-align-right {
text-align: right !important;
}
.text-align-justify {
text-align: justify !important;
}
.float-left {
float: left !important;
}
.float-right {
float: right !important;
}
.float-none {
float: none !important;
}
.vertical-align-bottom {
vertical-align: bottom !important;
}
.vertical-align-middle {
vertical-align: middle !important;
}
.vertical-align-top {
vertical-align: top !important;
}
.no-padding {
padding: 0 !important;
}
.no-padding-left {
padding-left: 0 !important;
}
.no-padding-right {
padding-right: 0 !important;
}
.no-padding-top {
padding-top: 0 !important;
}
.no-padding-bottom {
padding-bottom: 0 !important;
}
.no-margin {
margin: 0 !important;
}
.no-margin-left {
margin-left: 0 !important;
}
.no-margin-right {
margin-right: 0 !important;
}
.no-margin-top {
margin-top: 0 !important;
}
.no-margin-bottom {
margin-bottom: 0 !important;
}
.width-auto {
width: auto !important;
}
.width-100 {
width: 100% !important;
}
.md .padding {
padding: 16px !important;
}
.md .padding-top {
padding-top: 16px !important;
}
.md .padding-bottom {
padding-bottom: 16px !important;
}
.md .padding-left {
padding-left: 16px !important;
}
.md .padding-right {
padding-right: 16px !important;
}
.md .padding-vertical {
padding-top: 16px !important;
padding-bottom: 16px !important;
}
.md .padding-horizontal {
padding-left: 16px !important;
padding-right: 16px !important;
}
.md .margin {
margin: 16px !important;
}
.md .margin-top {
margin-top: 16px !important;
}
.md .margin-bottom {
margin-bottom: 16px !important;
}
.md .margin-left {
margin-left: 16px !important;
}
.md .margin-right {
margin-right: 16px !important;
}
.md .margin-vertical {
margin-top: 16px !important;
margin-bottom: 16px !important;
}
.md .margin-horizontal {
margin-left: 16px !important;
margin-right: 16px !important;
}
.md .text-color-red {
color: #f44336 !important;
}
.md .bg-color-red {
background-color: #f44336 !important;
}
.md .border-color-red {
border-color: #f44336 !important;
}
.md .text-color-green {
color: #4caf50 !important;
}
.md .bg-color-green {
background-color: #4caf50 !important;
}
.md .border-color-green {
border-color: #4caf50 !important;
}
.md .text-color-blue {
color: #2196f3 !important;
}
.md .bg-color-blue {
background-color: #2196f3 !important;
}
.md .border-color-blue {
border-color: #2196f3 !important;
}
.md .text-color-pink {
color: #e91e63 !important;
}
.md .bg-color-pink {
background-color: #e91e63 !important;
}
.md .border-color-pink {
border-color: #e91e63 !important;
}
.md .text-color-yellow {
color: #ffeb3b !important;
}
.md .bg-color-yellow {
background-color: #ffeb3b !important;
}
.md .border-color-yellow {
border-color: #ffeb3b !important;
}
.md .text-color-orange {
color: #ff9800 !important;
}
.md .bg-color-orange {
background-color: #ff9800 !important;
}
.md .border-color-orange {
border-color: #ff9800 !important;
}
.md .text-color-gray {
color: #9e9e9e !important;
}
.md .bg-color-gray {
background-color: #9e9e9e !important;
}
.md .border-color-gray {
border-color: #9e9e9e !important;
}
.md .text-color-white {
color: #ffffff !important;
}
.md .bg-color-white {
background-color: #ffffff !important;
}
.md .border-color-white {
border-color: #ffffff !important;
}
.md .text-color-black {
color: #000000 !important;
}
.md .bg-color-black {
background-color: #000000 !important;
}
.md .border-color-black {
border-color: #000000 !important;
}
|
{
"content_hash": "90f7f4c8f2f6bced4ecdb9d56ad4420c",
"timestamp": "",
"source": "github",
"line_count": 18879,
"max_line_length": 604,
"avg_line_length": 32.925790560940726,
"alnum_prop": 0.6941165304067206,
"repo_name": "cdnjs/cdnjs",
"id": "59344ce18938c1e49e04e3f63de21a3f02da9321",
"size": "621853",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "ajax/libs/framework7/3.0.0-beta.18/css/framework7.md.css",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
}
|
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { HttpClientModule } from '@angular/common/http';
// Imports for loading & configuring the in-memory web api
import { InMemoryWebApiModule } from 'angular-in-memory-web-api';
import { ProductData } from './products/product-data';
import { AppComponent } from './app.component';
import { WelcomeComponent } from './home/welcome.component';
import { PageNotFoundComponent } from './page-not-found.component';
/* Feature Modules */
import { ProductModule } from './products/product.module';
import { UserModule } from './user/user.module';
import { MessageModule } from './messages/message.module';
@NgModule({
imports: [
BrowserModule,
HttpClientModule,
InMemoryWebApiModule.forRoot(ProductData, { delay: 1000 }),
ProductModule,
UserModule,
MessageModule
],
declarations: [
AppComponent,
WelcomeComponent,
PageNotFoundComponent
],
bootstrap: [AppComponent]
})
export class AppModule { }
|
{
"content_hash": "68973f86ec416fac60ea2257d929b0bd",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 67,
"avg_line_length": 30.676470588235293,
"alnum_prop": 0.7190795781399808,
"repo_name": "DeborahK/Angular-Routing",
"id": "9021e45623742f182348fd937c0752995a2a3fd2",
"size": "1043",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "APM-Start/src/app/app.module.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "10599"
},
{
"name": "HTML",
"bytes": "71104"
},
{
"name": "JavaScript",
"bytes": "6608"
},
{
"name": "TypeScript",
"bytes": "117918"
}
],
"symlink_target": ""
}
|
package armsubscriptions_test
import (
"context"
"testing"
"github.com/Azure/azure-sdk-for-go/sdk/azcore"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions"
"github.com/stretchr/testify/suite"
)
type TenantsClientTestSuite struct {
suite.Suite
ctx context.Context
cred azcore.TokenCredential
options *arm.ClientOptions
location string
resourceGroupName string
subscriptionID string
}
func (testsuite *TenantsClientTestSuite) SetupSuite() {
testsuite.ctx = context.Background()
testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T())
testsuite.location = testutil.GetEnv("LOCATION", "eastus")
testsuite.subscriptionID = testutil.GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000")
testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/resources/armsubscriptions/testdata")
resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionID, testsuite.cred, testsuite.options, testsuite.location)
testsuite.Require().NoError(err)
testsuite.resourceGroupName = *resourceGroup.Name
}
func (testsuite *TenantsClientTestSuite) TearDownSuite() {
_, err := testutil.DeleteResourceGroup(testsuite.ctx, testsuite.subscriptionID, testsuite.cred, testsuite.options, testsuite.resourceGroupName)
testsuite.Require().NoError(err)
testutil.StopRecording(testsuite.T())
}
func TestTenantsClient(t *testing.T) {
suite.Run(t, new(TenantsClientTestSuite))
}
func (testsuite *TenantsClientTestSuite) TestTenantsCRUD() {
tenantsClient, err := armsubscriptions.NewTenantsClient(testsuite.cred, testsuite.options)
testsuite.Require().NoError(err)
pager := tenantsClient.NewListPager(nil)
testsuite.Require().True(pager.More())
}
|
{
"content_hash": "a9158630a0c85cc6e762cb8e0cc615ba",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 150,
"avg_line_length": 37.15384615384615,
"alnum_prop": 0.7779503105590062,
"repo_name": "Azure/azure-sdk-for-go",
"id": "11eace79347784362814617dceecdff0f7d3a7d1",
"size": "2126",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "sdk/resourcemanager/resources/armsubscriptions/tenants_client_live_test.go",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "1629"
},
{
"name": "Bicep",
"bytes": "8394"
},
{
"name": "CSS",
"bytes": "6089"
},
{
"name": "Dockerfile",
"bytes": "1435"
},
{
"name": "Go",
"bytes": "5463500"
},
{
"name": "HTML",
"bytes": "8933"
},
{
"name": "JavaScript",
"bytes": "8137"
},
{
"name": "PowerShell",
"bytes": "504494"
},
{
"name": "Shell",
"bytes": "3893"
},
{
"name": "Smarty",
"bytes": "1723"
}
],
"symlink_target": ""
}
|
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { NgaModule } from '../../theme/nga.module';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { DataTableModule, SharedModule, DialogModule, PanelModule, CalendarModule, AutoCompleteModule, InputTextModule, ContextMenuModule } from 'primeng/primeng';
import { LoadingPlan } from './loadingPlan.component';
import { LossTypeService } from '../../services/lossType.service';
import { LoadingPlanTable } from './components/loadingPlanTable/loadingPlanTable.component';
import { LoadingPlanForm } from './components/loadingPlanForm/loadingPlanForm.component';
import { routing } from './loadingPlan.routing';
import { LoadingPlanService } from './loadingPlan.service';
import { AddressService } from '../../services/address.service';
import { EmployeeService } from '../employee/employee.service';
import { DispatchScheduleService } from '../dispatchSchedule/dispatchSchedule.service';
import { CountryService } from '../country/country.service';
import { ContainerSizeService } from '../containerSize/containerSize.service';
import { PackagingSpecificationService } from '../packagingSpecification/packagingSpecification.service';
import { PortService } from '../port/port.service';
import { CustomerService } from '../customer/customer.service';
import { PrintService } from '../../services/print.service';
import { LoadingPlanPrint } from './components/loadingPlanPrint/loadingPlanPrint.component';
import { PalletLablePrint } from './components/palletLablePrint';
import { PackingListPrint } from './components/packingListPrint';
import {LoadingPlanItemService} from "../../services/loadingPlanItem.service";
@NgModule({
imports: [
CommonModule,
FormsModule,
ReactiveFormsModule,
NgaModule,
DataTableModule,
DialogModule,
CalendarModule,
ContextMenuModule,
SharedModule,
PanelModule,
AutoCompleteModule,
InputTextModule,
routing
],
declarations: [
LoadingPlan,
LoadingPlanTable,
LoadingPlanForm,
LoadingPlanPrint,
PalletLablePrint,
PackingListPrint
],
providers:
[
LoadingPlanService,
LoadingPlanItemService,
AddressService,
EmployeeService,
DispatchScheduleService,
PortService,
CountryService,
ContainerSizeService,
CustomerService,
PrintService,
PackagingSpecificationService
]
})
export class LoadingPlanModule { }
|
{
"content_hash": "d94278442f925a02193ba970c5e29947",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 163,
"avg_line_length": 36.455882352941174,
"alnum_prop": 0.7503025413473174,
"repo_name": "thilina01/kpi-client",
"id": "216aa23fda55a52705193a060e8d7c93a5c56d9c",
"size": "2479",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/app/pages/loadingPlan/loadingPlan.module.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "52"
},
{
"name": "CSS",
"bytes": "115830"
},
{
"name": "Dockerfile",
"bytes": "381"
},
{
"name": "HTML",
"bytes": "775116"
},
{
"name": "JavaScript",
"bytes": "38435"
},
{
"name": "SCSS",
"bytes": "109026"
},
{
"name": "Shell",
"bytes": "269"
},
{
"name": "TypeScript",
"bytes": "1428974"
}
],
"symlink_target": ""
}
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-character: 13 m 19 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.5.3 / mathcomp-character - 1.6.2</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
mathcomp-character
<small>
1.6.2
<span class="label label-success">13 m 19 s 🏆</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-11-01 06:03:43 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-11-01 06:03:43 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 2 Virtual package relying on perl
coq 8.5.3 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.04.2 The OCaml compiler (virtual package)
ocaml-base-compiler 4.04.2 Official 4.04.2 release
ocaml-config 1 OCaml Switch Configuration
# opam file:
opam-version: "2.0"
name: "coq-mathcomp-character"
version: "1.6.2"
maintainer: "Mathematical Components <mathcomp-dev@sympa.inria.fr>"
homepage: "http://math-comp.github.io/math-comp/"
bug-reports: "Mathematical Components <mathcomp-dev@sympa.inria.fr>"
license: "CeCILL-B"
build: [ make "-C" "mathcomp/character" "-j" "%{jobs}%" ]
install: [ make "-C" "mathcomp/character" "install" ]
remove: [ "sh" "-c" "rm -rf '%{lib}%/coq/user-contrib/mathcomp/character'" ]
depends: [
"ocaml"
"coq-mathcomp-field" {= "1.6.2"}
]
tags: [ "keyword:algebra" "keyword:character" "keyword:small scale reflection" "keyword:mathematical components" "keyword:odd order theorem" ]
authors: [ "Jeremy Avigad <>" "Andrea Asperti <>" "Stephane Le Roux <>" "Yves Bertot <>" "Laurence Rideau <>" "Enrico Tassi <>" "Ioana Pasca <>" "Georges Gonthier <>" "Sidi Ould Biha <>" "Cyril Cohen <>" "Francois Garillot <>" "Alexey Solovyev <>" "Russell O'Connor <>" "Laurent Théry <>" "Assia Mahboubi <>" ]
synopsis: "Mathematical Components Library on character theory"
description: """
This library contains definitions and theorems about group
representations, characters and class functions."""
url {
src: "http://github.com/math-comp/math-comp/archive/mathcomp-1.6.2.tar.gz"
checksum: "md5=cf10cb16f1ac239a9d52c029a4e00f66"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-mathcomp-character.1.6.2 coq.8.5.3</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam list; echo; ulimit -Sv 4000000; timeout 4h opam install -y --deps-only coq-mathcomp-character.1.6.2 coq.8.5.3</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>49 m 31 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam list; echo; ulimit -Sv 16000000; timeout 4h opam install -y -v coq-mathcomp-character.1.6.2 coq.8.5.3</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>13 m 19 s</dd>
</dl>
<h2>Installation size</h2>
<p>Total: 14 M</p>
<ul>
<li>3 M <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/mxrepresentation.vo</code></li>
<li>2 M <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/mxrepresentation.glob</code></li>
<li>1 M <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/character.vo</code></li>
<li>1 M <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/classfun.vo</code></li>
<li>1 M <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/character.glob</code></li>
<li>866 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/classfun.glob</code></li>
<li>811 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/inertia.vo</code></li>
<li>758 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/inertia.glob</code></li>
<li>528 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/mxabelem.vo</code></li>
<li>515 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/integral_char.vo</code></li>
<li>470 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/vcharacter.vo</code></li>
<li>392 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/vcharacter.glob</code></li>
<li>369 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/mxabelem.glob</code></li>
<li>362 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/integral_char.glob</code></li>
<li>237 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/mxrepresentation.v</code></li>
<li>113 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/character.v</code></li>
<li>96 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/classfun.v</code></li>
<li>69 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/inertia.v</code></li>
<li>60 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/all_character.vo</code></li>
<li>43 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/mxabelem.v</code></li>
<li>38 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/vcharacter.v</code></li>
<li>36 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/integral_char.v</code></li>
<li>1 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/all_character.glob</code></li>
<li>1 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/mathcomp/character/all_character.v</code></li>
</ul>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq-mathcomp-character.1.6.2</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
|
{
"content_hash": "8e0e75a65bdf8cd80618816e0bd5dd40",
"timestamp": "",
"source": "github",
"line_count": 183,
"max_line_length": 554,
"avg_line_length": 57.278688524590166,
"alnum_prop": 0.5845258538446861,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "9e7e8e35e67ea2d05a15791aaf62ec64b742f50c",
"size": "10508",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "clean/Linux-x86_64-4.04.2-2.0.5/released/8.5.3/mathcomp-character/1.6.2.html",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
}
|
#ifndef EVMS_OPTIONS_H_INCLUDED
#define EVMS_OPTIONS_H_INCLUDED 1
#include <common.h>
/*
* Dear Reader,
*
* Yes, some of the structures look a lot like the ones the SANE
* (Scanner Access Now Easy) folks use for negotiating options
* between a frontend and backend. In fact, some of the structures
* here were derived from their solution with some tweaks for EVMS.
*
* Kindest regards and most humble apologies to the SANE folks for
* borrowing their solution.
*/
/*
* Task API typedefs
*/
typedef u_int32_t task_handle_t;
/*
* Task actions correspond to the low-level API available to frontends.
* The task API allows binding of action, plugin, target objects, and
* plugin-specific options. This allows for interaction with the backend
* to validate the correctness of parameters and options necessary to
* fulfill the requirements of the low-level API which eventually is invoked.
*/
typedef enum {
EVMS_Task_Create = 0,
EVMS_Task_Create_Container,
EVMS_Task_Assign_Plugin,
EVMS_Task_Expand_Container,
EVMS_Task_Set_Info,
EVMS_Task_Expand,
EVMS_Task_Shrink,
EVMS_Task_Slide,
EVMS_Task_Move,
EVMS_Task_mkfs,
EVMS_Task_fsck,
EVMS_Task_defrag,
EVMS_Task_Message,
EVMS_Task_Add_Feature,
EVMS_Task_Shrink_Container,
EVMS_Task_Set_Container_Info,
EVMS_Task_Plugin_Function = 0x1000 /* Base number for plug-in funtions */
} task_action_t;
typedef struct function_info_s {
task_action_t function; /* Plugin function number */
#if (EVMS_ABI_CODE >= 110)
char * name; /* Short, unique (within the plug-in) name for the function */
/* e.g., "addspare" */
#endif
char * title; /* Short title for the function */
/* e.g. "Add a spare" */
/* Example usage: A UI might put this in */
/* a menu of functions to select. */
char * verb; /* One or two action words for the function */
/* e.g. "Add" */
/* Example usage: A GUI may use this on an */
/* action button for the function. */
char * help; /* Full help text */
/* e.g. "Use this function to add a spare blah blah blah..." */
} function_info_t;
typedef struct function_info_array_s {
uint count;
function_info_t info[1];
} function_info_array_t;
/*
* Object API typedefs
*/
typedef struct declined_handle_s {
object_handle_t handle; /* Handle of object declined */
int reason; /* Reason for being declined */
} declined_handle_t;
typedef struct declined_handle_array_s {
uint count;
declined_handle_t declined[1];
} declined_handle_array_t;
/*
* Option API typedefs and constants
*/
typedef enum {
EVMS_Type_String = 1, /* char* */
EVMS_Type_Boolean, /* BOOLEAN */
EVMS_Type_Char, /* char */
EVMS_Type_Unsigned_Char, /* unsigned char */
EVMS_Type_Real32, /* float */
EVMS_Type_Real64, /* double */
EVMS_Type_Int, /* int */
EVMS_Type_Int8, /* int8_t */
EVMS_Type_Int16, /* int16_t */
EVMS_Type_Int32, /* int32_t */
EVMS_Type_Int64, /* int64_t */
EVMS_Type_Unsigned_Int, /* uint */
EVMS_Type_Unsigned_Int8, /* u_int8_t */
EVMS_Type_Unsigned_Int16, /* u_int16_t */
EVMS_Type_Unsigned_Int32, /* u_int32_t */
EVMS_Type_Unsigned_Int64 /* u_int64_t */
} value_type_t;
typedef enum {
EVMS_Unit_None = 0,
EVMS_Unit_Disks,
EVMS_Unit_Sectors,
EVMS_Unit_Segments,
EVMS_Unit_Regions,
EVMS_Unit_Percent,
EVMS_Unit_Milliseconds,
EVMS_Unit_Microseconds,
EVMS_Unit_Bytes,
EVMS_Unit_Kilobytes,
EVMS_Unit_Megabytes,
EVMS_Unit_Gigabytes,
EVMS_Unit_Terabytes,
EVMS_Unit_Petabytes
} value_unit_t;
typedef enum {
EVMS_Collection_None = 0, /* No collection */
EVMS_Collection_List, /* Use a value_list_t structure */
EVMS_Collection_Range /* Use a value_range_t structure */
} collection_type_t;
typedef enum {
EVMS_Format_Normal = 0,
EVMS_Format_Hex,
EVMS_Format_Ascii,
EVMS_Format_Binary
} value_format_t;
typedef union {
char c; /* one character, e.g. 'C' */
char *s; /* string pointer */
u_char uc;
int bool;
int i;
int8_t i8;
int16_t i16;
int32_t i32;
int64_t i64;
u_int ui;
u_int8_t ui8;
u_int16_t ui16;
u_int32_t ui32;
u_int64_t ui64;
float r32;
double r64;
struct value_list_s *list;
} value_t;
/*
* The struct key_value_pair_s allows some generic passing
* of a key/value pair for some basic data type values. The
* key can be a name (a string) or a number. The sending
* and receiving ends denote, through the is_number_based flag,
* which key should be looked at for identification purposes.
*/
typedef struct key_value_pair_s {
char *name; /* Key if name-based */
u_int16_t number; /* Key if number-based */
BOOLEAN is_number_based; /* TRUE if number-based */
value_type_t type; /* Value type */
value_t value; /* Union of basic data types */
} key_value_pair_t;
/*
* Some frontends may supply plugin-specific data as "options" through
* the API functions, e.g. evms_create(), available to a frontend.
* Options are essentially key/value pairs where the key and value types
* are known ahead-of-time or were interrogated through the option
* descriptor API.
*/
typedef struct option_array_s {
u_int count;
key_value_pair_t option[1];
} option_array_t;
typedef struct value_list_s {
u_int count;
value_t value[1];
} value_list_t;
typedef struct value_range_s {
value_t min; /* Minimum value */
value_t max; /* Maximum value */
value_t increment; /* Step or increment for changes in-between */
} value_range_t;
typedef union {
value_list_t *list; /* Array of values of the same type */
value_range_t *range; /* Range of values for numeric types */
} value_collection_t;
typedef struct group_info_s {
u_int32_t group_number; /* group number, 0 if not grouped */
u_int32_t group_level; /* possibly used for indenting, or sub fields */
char *group_name; /* name of group */
} group_info_t;
typedef struct option_descriptor_s {
char *name; /* Option name/key */
char *title; /* One or two word description of option */
char *tip; /* Multi-sentence description of option for tip */
char *help; /* Multi-paragraph detailed option help */
value_type_t type; /* Defines option data type */
value_unit_t unit; /* Defines unit value */
#if (EVMS_ABI_CODE == 100)
u_int32_t size; /* Maximum size (in bytes) of option value */
#else
value_format_t format; /* Suggested format for display of values */
u_int32_t min_len; /* Minimum length for string types */
u_int32_t max_len; /* Maximum length for string types */
#endif
u_int64_t flags; /* Option flags (defined below) */
collection_type_t constraint_type; /* Constraint type (none, range, list) */
value_collection_t constraint; /* Either a list or range of valid input values */
value_t value; /* Initial/current value */
group_info_t group; /* Group information for display purposes */
} option_descriptor_t;
/*
* option_descriptor_t flags bitset
*/
#define EVMS_OPTION_FLAGS_NOT_REQUIRED (1 << 0) /* A key_value_pair_t for this option can be provided */
/* but is not absolutely required by the plug-in */
#define EVMS_OPTION_FLAGS_NO_INITIAL_VALUE (1 << 1) /* The plug-in has not provided an initial value */
#define EVMS_OPTION_FLAGS_AUTOMATIC (1 << 2) /* Backend is capable of selecting reasonable value */
#define EVMS_OPTION_FLAGS_INACTIVE (1 << 3) /* Option exists but is neither optional or required */
#define EVMS_OPTION_FLAGS_ADVANCED (1 << 4) /* Option is an "advanced user option" */
#define EVMS_OPTION_FLAGS_VALUE_IS_LIST (1 << 5) /* Value is/is expected to be a pointer to value_list_t */
#define EVMS_OPTION_FLAGS_NO_UNIT_CONVERSION (1 << 6) /* Don't convert unit measurements, e.g. I really mean */
/* to have the user specify/see sectors not KB or MB */
#define EVMS_OPTION_IS_ACTIVE(flags) (((flags) & EVMS_OPTION_FLAGS_INACTIVE) == 0)
#define EVMS_OPTION_IS_REQUIRED(flags) (((flags) & EVMS_OPTION_FLAGS_NOT_REQUIRED) == 0)
#define EVMS_OPTION_HAS_VALUE(flags) (((flags) & EVMS_OPTION_FLAGS_NO_INITIAL_VALUE) == 0)
#define EVMS_OPTION_VALUE_IS_LIST(flags) (((flags) & EVMS_OPTION_FLAGS_VALUE_IS_LIST) != 0)
/*
* Following bitset indicating additional information of
* the outcome of a set_object or a set action on a option value.
*/
typedef enum {
EVMS_Effect_Inexact = (1 << 0), /* Option value was adjusted by backend */
EVMS_Effect_Reload_Options = (1 << 1), /* Setting of an object or option has affected */
/* the value or availability of other options */
EVMS_Effect_Reload_Objects = (1 << 2) /* Setting of an object or option has affected */
/* the acceptable and/or selected objects */
/* or the limits of objects selected. */
} task_effect_t;
/*
* Extended information structure. Plug-ins generate an
* array of these to supply plugin-specific information.
* They are similar to option descriptors but lighter.
*/
typedef struct extended_info_s {
char *name; /* Info field name */
char *title; /* One or two word description of info field */
char *desc; /* Multi-sentence description of info field */
value_type_t type; /* Defines info data type */
value_unit_t unit; /* Defines info unit value */
value_format_t format; /* Suggested format for display of values */
value_t value; /* Single value if not a collection */
collection_type_t collection_type; /* Defines if either a list or range of values */
value_collection_t collection; /* Either a list or range of values of value_type_t */
group_info_t group; /* Group information for display purposes */
u_int16_t flags; /* Extended info flags (defined below) */
} extended_info_t;
#define EVMS_EINFO_FLAGS_NO_UNIT_CONVERSION (1 << 0) /* Don't convert unit measurements, e.g. I really */
/* mean the user to see sectors not KB or MB */
#define EVMS_EINFO_FLAGS_MORE_INFO_AVAILABLE (1 << 1)/* This entry has more information if */
/* queried by name. */
typedef struct extended_info_array_s {
u_int count; /* Count of extended_info_t structs in array */
extended_info_t info[1]; /* Info descriptors */
} extended_info_array_t;
#endif
|
{
"content_hash": "d4bae123cb9d099d48104e3ed9be2fd3",
"timestamp": "",
"source": "github",
"line_count": 301,
"max_line_length": 111,
"avg_line_length": 44.119601328903656,
"alnum_prop": 0.516039156626506,
"repo_name": "georghe-crihan/ext2fsx",
"id": "45826a0f0362618470e9ceebb4a65948329d2a8a",
"size": "14183",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/e2fsprogs/lib/evms/options.h",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "Awk",
"bytes": "13382"
},
{
"name": "Batchfile",
"bytes": "53"
},
{
"name": "C",
"bytes": "3744030"
},
{
"name": "C++",
"bytes": "57143"
},
{
"name": "GDB",
"bytes": "18978"
},
{
"name": "Groff",
"bytes": "555865"
},
{
"name": "Makefile",
"bytes": "164020"
},
{
"name": "Objective-C",
"bytes": "228000"
},
{
"name": "Perl",
"bytes": "5352"
},
{
"name": "Scilab",
"bytes": "554"
},
{
"name": "Shell",
"bytes": "94386"
},
{
"name": "TeX",
"bytes": "225475"
},
{
"name": "Yacc",
"bytes": "7353"
}
],
"symlink_target": ""
}
|
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="60dp"
android:layout_height="60dp"
android:orientation="vertical" >
<ImageView
android:id="@+id/shareImageItem"
android:layout_width="60dp"
android:layout_height="60dp"
/>
</LinearLayout>
|
{
"content_hash": "70c47d6d0c5e75f28fe6d2a6bb572f12",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 72,
"avg_line_length": 33.54545454545455,
"alnum_prop": 0.6612466124661247,
"repo_name": "YiNPNG/test",
"id": "67e1e3939bd47e23c4e3d9d0ed63f04812c00086",
"size": "369",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "MyTextApplication/app/src/main/res/layout/share_list_item.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "2167265"
}
],
"symlink_target": ""
}
|
.nutritionLabel {
border-bottom: 2px solid #333 !important;
margin-bottom: 0;
font-size: 13px;
background: #fff;
line-height: normal;
}
.nutritionLabel .title {
padding-top: 0;
}
.nutritionLabel .name.inline {
padding-top: .4em;
}
.truncate {
text-overflow: ellipsis;
overflow: hidden;
}
.servingSizeField .ui-input-text {
margin: 0 0 0 15px;
}
.servingSizeField .ui-input-text input {
min-height: 2em;
}
.ui-shadow-inset {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
/*
* default style override for the demo pages
*/
.nutritionLabel a.unitQuantityUp {
background: transparent url("../images/up.png") left top no-repeat;
}
.nutritionLabel a.unitQuantityDown {
background: transparent url("../images/down.png") left bottom no-repeat;
}
|
{
"content_hash": "79d854b730c76291450c861ba7a07de7",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 73,
"avg_line_length": 20.75,
"alnum_prop": 0.6674698795180722,
"repo_name": "nutritionix/nutrition-label",
"id": "0fd5322c34c12ba553078e6c7188b1b1263639b6",
"size": "830",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "dist/demo/css/demo-mobile.css",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "33745"
},
{
"name": "HTML",
"bytes": "21601"
},
{
"name": "JavaScript",
"bytes": "308895"
}
],
"symlink_target": ""
}
|
title: Hosted Engine add hosts with Web UI
category: feature
authors: sandrobonazzola
wiki_category: Feature|Hosted Engine add hosts with Web UI
wiki_title: Features/Hosted Engine add hosts with Web UI
wiki_revision_count: 3
wiki_last_updated: 2015-10-06
feature_name: 'Hosted Engine: add hosts with Web UI'
feature_modules: all
feature_status: NEW
---
# Hosted Engine: add hosts with Web UI
## Summary
Allow to deploy additional hosts for Hosted Engine using Web UI
## Owner
* Name: Sandro Bonazzola
* Email: <sbonazzo@redhat.com>
## Detailed Description
* ovirt-host-deploy must allow to deploy and configure ovirt-hosted-engine-ha daemons
* ovirt-engine web UI must be changed for allowing the user to set an host as part of Hosted Engine HA cluster
## Benefit to oVirt
* will simplify Hosted Engine deployment on additional hosts
## Dependencies / Related Features
* Depends on [Features/Hosted_Engine_configuration_on_shared_storage](Features/Hosted_Engine_configuration_on_shared_storage)
* A tracker bug has been created for tracking issues:
## Documentation / External references
## Testing
In order to test the ovirt host deploy part, the following content can be added to '''/etc/ovirt-host-deploy.conf.d/hosted_engine.conf''' on the host, adapting it with the data from first host deployed:
[environment:default]
HOSTED_ENGINE/enable=bool:true
HOSTED_ENGINE_CONFIG/fqdn=str:topolino.localdomain
HOSTED_ENGINE_CONFIG/vm_disk_id=str:c00e477d-97bb-4cf9-95e0-a02232d84e26
HOSTED_ENGINE_CONFIG/vm_disk_vol_id=str:859a498a-5e7b-4dc0-af59-4de015c562ee
HOSTED_ENGINE_CONFIG/vmid=str:67f3f110-f076-4802-b9e2-077a537849f4
HOSTED_ENGINE_CONFIG/storage=str:192.168.1.115:/Virtual/exthe7
HOSTED_ENGINE_CONFIG/conf=str:/var/run/ovirt-hosted-engine-ha/vm.conf
HOSTED_ENGINE_CONFIG/host_id=str:2
HOSTED_ENGINE_CONFIG/console=str:vnc
HOSTED_ENGINE_CONFIG/domainType=str:nfs4
HOSTED_ENGINE_CONFIG/spUUID=str:029c8ec6-0bb3-4e02-a2e1-2f23be68fee3
HOSTED_ENGINE_CONFIG/sdUUID=str:906222d7-7337-4b0b-b5fe-45073b1c9590
HOSTED_ENGINE_CONFIG/connectionUUID=str:ec4ebf7a-54cc-4f8c-bcac-1c5653f74c51
HOSTED_ENGINE_CONFIG/ca_cert=str:/etc/pki/vdsm/libvirt-spice/ca-cert.pem
HOSTED_ENGINE_CONFIG/ca_subject=str:"O=localdomain, CN=c71ghe1.localdomain"
HOSTED_ENGINE_CONFIG/vdsm_use_ssl=str:true
HOSTED_ENGINE_CONFIG/gateway=str:192.168.1.1
HOSTED_ENGINE_CONFIG/bridge=str:ovirtmgmt
HOSTED_ENGINE_CONFIG/metadata_volume_UUID=str:c1e0abc2-b751-482f-8fe2-91d2ed3c1843
HOSTED_ENGINE_CONFIG/metadata_image_UUID=str:29cc397b-f589-4968-9414-2ba1f9d0dcb1
HOSTED_ENGINE_CONFIG/lockspace_volume_UUID=str:7f37194b-6143-4a5f-94d0-bda3e80433b2
HOSTED_ENGINE_CONFIG/lockspace_image_UUID=str:4d729489-11b7-464c-b0e4-f463dc595f11
HOSTED_ENGINE_CONFIG/conf_volume_UUID=str:2f15641b-f94a-4d13-962d-87f28048f537
HOSTED_ENGINE_CONFIG/conf_image_UUID=str:5963872c-e756-47d8-ac41-30e837280cf2
HOSTED_ENGINE_CONFIG/iqn=str:
HOSTED_ENGINE_CONFIG/portal=str:
HOSTED_ENGINE_CONFIG/user=str:
HOSTED_ENGINE_CONFIG/password=str:
HOSTED_ENGINE_CONFIG/port=str:
## Contingency Plan
* The additional hosts will still be deployed by running hosted-engine --deploy and related patches will be reverted.
## Release Notes
== Hosted Engine ==
Hosted Engine additional hosts can now be deployed using the Web UI
## Comments and Discussion
* Refer to [Talk:Hosted Engine add hosts with Web UI](Talk:Hosted Engine add hosts with Web UI)
|
{
"content_hash": "0f3906b205967faf5e3d1575c95dc225",
"timestamp": "",
"source": "github",
"line_count": 90,
"max_line_length": 203,
"avg_line_length": 40.15555555555556,
"alnum_prop": 0.7573325954620919,
"repo_name": "jtokar/ovirt-site",
"id": "ea8f5c0a9771b6d0cdd563608b57306098f2d542",
"size": "3632",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "source/develop/release-management/features/hosted-engine-add-hosts-with-web-ui.html.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "70441"
},
{
"name": "CoffeeScript",
"bytes": "1977"
},
{
"name": "HTML",
"bytes": "129255"
},
{
"name": "JavaScript",
"bytes": "785"
},
{
"name": "Ruby",
"bytes": "39142"
},
{
"name": "Shell",
"bytes": "973"
}
],
"symlink_target": ""
}
|
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use App\Logic\User\UserRepository;
use App\Models\About;
use Validator;
use Input;
use Response;
class AboutsController extends Controller
{
/**
* Post Repository
*
* @var Post
*/
protected $about;
public function __construct(About $about)
{
$this->about = $about;
}
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
{
$about = $this->about->first();
$user = \Auth::user();
$users = \DB::table('users')->get();
$total_users = \DB::table('users')->count();
$userRole = $user->hasRole('user');
$editorRole = $user->hasRole('editor');
$adminRole = $user->hasRole('administrator');
$userRole = $user->hasRole('user');
$editorRole = $user->hasRole('editor');
$adminRole = $user->hasRole('administrator');
if($userRole)
{
$access = 'User';
} elseif ($editorRole) {
$access = 'Editor';
} elseif ($adminRole) {
$access = 'Administrator';
}
return view('admin.pages.edit-about', [
'users' => $users,
'total_users' => $total_users,
'user' => $user,
'access' => $access,
'success' => '',
'errors' => '',
'message' => '',], compact('about'));
}
/**
* Show the form for creating a new resource.
*
* @return Response
*/
public function create()
{
return view('admin.posts.create');
}
/**
* Store a newly created resource in storage.
*
* @return Response
*/
public function store()
{
$about = $this->about->first();
$user = \Auth::user();
$users = \DB::table('users')->get();
$total_users = \DB::table('users')->count();
$userRole = $user->hasRole('user');
$editorRole = $user->hasRole('editor');
$adminRole = $user->hasRole('administrator');
$userRole = $user->hasRole('user');
$editorRole = $user->hasRole('editor');
$adminRole = $user->hasRole('administrator');
if($userRole)
{
$access = 'User';
} elseif ($editorRole) {
$access = 'Editor';
} elseif ($adminRole) {
$access = 'Administrator';
}
$input = Input::all();
$validation = Validator::make($input, About::$rules);
if ($validation->passes())
{
$about = $this->about->first();
$about->update($input);
//$this->post->create($input);
return view('admin.pages.edit-about', [
'users' => $users,
'total_users' => $total_users,
'user' => $user,
'access' => $access,
'success' => 'true',
'errors' => '',
'message' => 'Post created successfully.',], compact('about'));
}
return view('admin.pages.edit-about', [
'users' => $users,
'total_users' => $total_users,
'user' => $user,
'access' => $access,
'success' => 'false',
'errors' => $validation,
'message' => 'All fields are required.',], compact('about'));
}
/**
* Display the specified resource.
*
* @param int $id
* @return Response
*/
public function show($id)
{
$post = $this->post->findOrFail($id);
return view('admin.posts.show', compact('post'));
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return Response
*/
public function edit($id)
{
$post = $this->post->find($id);
if (is_null($post))
{
return Redirect::route('posts.index');
}
return view('admin.posts.edit', compact('post'));
}
/**
* Update the specified resource in storage.
*
* @param int $id
* @return Response
*/
public function update($id)
{
$id = 1;
$input = array_except(Input::all(), '_method');
$validation = Validator::make($input, About::$rules);
if ($validation->passes())
{
$about = About::find($id);
$about->update($input);
return Response::json(array('success' => true, 'errors' => '', 'message' => 'Post updated successfully.'));
}
return Response::json(array('success' => false, 'errors' => $validation, 'message' => 'All fields are required.'));
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return Response
*/
public function destroy($id)
{
$this->post->find($id)->delete();
return Redirect::route('admin.posts.index');
}
public function upload()
{
$file = Input::file('file');
$input = array('image' => $file);
$rules = array(
'image' => 'image'
);
$validator = Validator::make($input, $rules);
if ( $validator->fails()) {
return Response::json(array('success' => false, 'errors' => $validator->getMessageBag()->toArray()));
}
$fileName = time() . '-' . $file->getClientOriginalName();
$destination = public_path() . '/uploads/';
$file->move($destination, $fileName);
echo url('/uploads/'. $fileName);
}
}
|
{
"content_hash": "546d021c135005d49c47c2590ad549bb",
"timestamp": "",
"source": "github",
"line_count": 221,
"max_line_length": 123,
"avg_line_length": 28.1131221719457,
"alnum_prop": 0.4703042008691453,
"repo_name": "loveisbluenova/airtable_mysql",
"id": "fe4be5fd6ce44148bdfba9d50f76356926d4464b",
"size": "6213",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/Http/Controllers/AboutsController.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "3141776"
},
{
"name": "HTML",
"bytes": "4853585"
},
{
"name": "JavaScript",
"bytes": "7900114"
},
{
"name": "PHP",
"bytes": "288692"
},
{
"name": "PowerShell",
"bytes": "468"
}
],
"symlink_target": ""
}
|
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "txdb.h"
#include "walletdb.h"
#include "bitcoinrpc.h"
#include "net.h"
#include "init.h"
#include "util.h"
#include "ui_interface.h"
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/filesystem/convenience.hpp>
#include <boost/interprocess/sync/file_lock.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <openssl/crypto.h>
#ifndef WIN32
#include <signal.h>
#endif
using namespace std;
using namespace boost;
CWallet* pwalletMain;
CClientUIInterface uiInterface;
#ifdef WIN32
// Win32 LevelDB doesn't use filedescriptors, and the ones used for
// accessing block files, don't count towards to fd_set size limit
// anyway.
#define MIN_CORE_FILEDESCRIPTORS 0
#else
#define MIN_CORE_FILEDESCRIPTORS 150
#endif
// Used to pass flags to the Bind() function
enum BindFlags {
BF_NONE = 0,
BF_EXPLICIT = (1U << 0),
BF_REPORT_ERROR = (1U << 1)
};
//////////////////////////////////////////////////////////////////////////////
//
// Shutdown
//
//
// Thread management and startup/shutdown:
//
// The network-processing threads are all part of a thread group
// created by AppInit() or the Qt main() function.
//
// A clean exit happens when StartShutdown() or the SIGTERM
// signal handler sets fRequestShutdown, which triggers
// the DetectShutdownThread(), which interrupts the main thread group.
// DetectShutdownThread() then exits, which causes AppInit() to
// continue (it .joins the shutdown thread).
// Shutdown() is then
// called to clean up database connections, and stop other
// threads that should only be stopped after the main network-processing
// threads have exited.
//
// Note that if running -daemon the parent process returns from AppInit2
// before adding any threads to the threadGroup, so .join_all() returns
// immediately and the parent exits from main().
//
// Shutdown for Qt is very similar, only it uses a QTimer to detect
// fRequestShutdown getting set, and then does the normal Qt
// shutdown thing.
//
volatile bool fRequestShutdown = false;
void StartShutdown()
{
fRequestShutdown = true;
}
bool ShutdownRequested()
{
return fRequestShutdown;
}
static CCoinsViewDB *pcoinsdbview;
void Shutdown()
{
printf("Shutdown : In progress...\n");
static CCriticalSection cs_Shutdown;
TRY_LOCK(cs_Shutdown, lockShutdown);
if (!lockShutdown) return;
RenameThread("bitcoin-shutoff");
nTransactionsUpdated++;
StopRPCThreads();
bitdb.Flush(false);
StopNode();
{
LOCK(cs_main);
if (pwalletMain)
pwalletMain->SetBestChain(CBlockLocator(pindexBest));
if (pblocktree)
pblocktree->Flush();
if (pcoinsTip)
pcoinsTip->Flush();
delete pcoinsTip; pcoinsTip = NULL;
delete pcoinsdbview; pcoinsdbview = NULL;
delete pblocktree; pblocktree = NULL;
}
bitdb.Flush(true);
boost::filesystem::remove(GetPidFile());
UnregisterWallet(pwalletMain);
delete pwalletMain;
printf("Shutdown : done\n");
}
//
// Signal handlers are very limited in what they are allowed to do, so:
//
void DetectShutdownThread(boost::thread_group* threadGroup)
{
// Tell the main threads to shutdown.
while (!fRequestShutdown)
{
MilliSleep(200);
if (fRequestShutdown)
threadGroup->interrupt_all();
}
}
void HandleSIGTERM(int)
{
fRequestShutdown = true;
}
void HandleSIGHUP(int)
{
fReopenDebugLog = true;
}
//////////////////////////////////////////////////////////////////////////////
//
// Start
//
#if !defined(QT_GUI)
bool AppInit(int argc, char* argv[])
{
boost::thread_group threadGroup;
boost::thread* detectShutdownThread = NULL;
bool fRet = false;
try
{
//
// Parameters
//
// If Qt is used, parameters/bitcoin.conf are parsed in qt/bitcoin.cpp's main()
ParseParameters(argc, argv);
if (!boost::filesystem::is_directory(GetDataDir(false)))
{
fprintf(stderr, "Error: Specified directory does not exist\n");
Shutdown();
}
ReadConfigFile(mapArgs, mapMultiArgs);
if (mapArgs.count("-?") || mapArgs.count("--help"))
{
// First part of help message is specific to bitcoind / RPC client
std::string strUsage = _("PEERCOINDARK version") + " " + FormatFullVersion() + "\n\n" +
_("Usage:") + "\n" +
" peercoindarkd [options] " + "\n" +
" peercoindarkd [options] <command> [params] " + _("Send command to -server or peercoindarkd") + "\n" +
" peercoindarkd [options] help " + _("List commands") + "\n" +
" peercoindarkd [options] help <command> " + _("Get help for a command") + "\n";
strUsage += "\n" + HelpMessage();
fprintf(stdout, "%s", strUsage.c_str());
return false;
}
// Command-line RPC
for (int i = 1; i < argc; i++)
if (!IsSwitchChar(argv[i][0]) && !boost::algorithm::istarts_with(argv[i], "peercoindark:"))
fCommandLine = true;
if (fCommandLine)
{
int ret = CommandLineRPC(argc, argv);
exit(ret);
}
#if !defined(WIN32)
fDaemon = GetBoolArg("-daemon");
if (fDaemon)
{
// Daemonize
pid_t pid = fork();
if (pid < 0)
{
fprintf(stderr, "Error: fork() returned %d errno %d\n", pid, errno);
return false;
}
if (pid > 0) // Parent process, pid is child process id
{
CreatePidFile(GetPidFile(), pid);
return true;
}
// Child process falls through to rest of initialization
pid_t sid = setsid();
if (sid < 0)
fprintf(stderr, "Error: setsid() returned %d errno %d\n", sid, errno);
}
#endif
detectShutdownThread = new boost::thread(boost::bind(&DetectShutdownThread, &threadGroup));
fRet = AppInit2(threadGroup);
}
catch (std::exception& e) {
PrintExceptionContinue(&e, "AppInit()");
} catch (...) {
PrintExceptionContinue(NULL, "AppInit()");
}
if (!fRet) {
if (detectShutdownThread)
detectShutdownThread->interrupt();
threadGroup.interrupt_all();
}
if (detectShutdownThread)
{
detectShutdownThread->join();
delete detectShutdownThread;
detectShutdownThread = NULL;
}
Shutdown();
return fRet;
}
extern void noui_connect();
int main(int argc, char* argv[])
{
bool fRet = false;
// Connect bitcoind signal handlers
noui_connect();
fRet = AppInit(argc, argv);
if (fRet && fDaemon)
return 0;
return (fRet ? 0 : 1);
}
#endif
bool static InitError(const std::string &str)
{
uiInterface.ThreadSafeMessageBox(str, "", CClientUIInterface::MSG_ERROR);
return false;
}
bool static InitWarning(const std::string &str)
{
uiInterface.ThreadSafeMessageBox(str, "", CClientUIInterface::MSG_WARNING);
return true;
}
bool static Bind(const CService &addr, unsigned int flags) {
if (!(flags & BF_EXPLICIT) && IsLimited(addr))
return false;
std::string strError;
if (!BindListenPort(addr, strError)) {
if (flags & BF_REPORT_ERROR)
return InitError(strError);
return false;
}
return true;
}
// Core-specific options shared between UI and daemon
std::string HelpMessage()
{
string strUsage = _("Options:") + "\n" +
" -? " + _("This help message") + "\n" +
" -conf=<file> " + _("Specify configuration file (default: peercoindark.conf)") + "\n" +
" -pid=<file> " + _("Specify pid file (default: peercoindarkd.pid)") + "\n" +
" -gen " + _("Generate coins (default: 0)") + "\n" +
" -datadir=<dir> " + _("Specify data directory") + "\n" +
" -dbcache=<n> " + _("Set database cache size in megabytes (default: 25)") + "\n" +
" -timeout=<n> " + _("Specify connection timeout in milliseconds (default: 5000)") + "\n" +
" -proxy=<ip:port> " + _("Connect through socks proxy") + "\n" +
" -socks=<n> " + _("Select the version of socks proxy to use (4-5, default: 5)") + "\n" +
" -tor=<ip:port> " + _("Use proxy to reach tor hidden services (default: same as -proxy)") + "\n"
" -dns " + _("Allow DNS lookups for -addnode, -seednode and -connect") + "\n" +
" -port=<port> " + _("Listen for connections on <port> (default: 11080 or testnet: 5744)") + "\n" +
" -maxconnections=<n> " + _("Maintain at most <n> connections to peers (default: 125)") + "\n" +
" -addnode=<ip> " + _("Add a node to connect to and attempt to keep the connection open") + "\n" +
" -connect=<ip> " + _("Connect only to the specified node(s)") + "\n" +
" -seednode=<ip> " + _("Connect to a node to retrieve peer addresses, and disconnect") + "\n" +
" -externalip=<ip> " + _("Specify your own public address") + "\n" +
" -onlynet=<net> " + _("Only connect to nodes in network <net> (IPv4, IPv6 or Tor)") + "\n" +
" -discover " + _("Discover own IP address (default: 1 when listening and no -externalip)") + "\n" +
" -checkpoints " + _("Only accept block chain matching built-in checkpoints (default: 1)") + "\n" +
" -listen " + _("Accept connections from outside (default: 1 if no -proxy or -connect)") + "\n" +
" -bind=<addr> " + _("Bind to given address and always listen on it. Use [host]:port notation for IPv6") + "\n" +
" -dnsseed " + _("Find peers using DNS lookup (default: 1 unless -connect)") + "\n" +
" -banscore=<n> " + _("Threshold for disconnecting misbehaving peers (default: 100)") + "\n" +
" -bantime=<n> " + _("Number of seconds to keep misbehaving peers from reconnecting (default: 86400)") + "\n" +
" -maxreceivebuffer=<n> " + _("Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)") + "\n" +
" -maxsendbuffer=<n> " + _("Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)") + "\n" +
#ifdef USE_UPNP
#if USE_UPNP
" -upnp " + _("Use UPnP to map the listening port (default: 1 when listening)") + "\n" +
#else
" -upnp " + _("Use UPnP to map the listening port (default: 0)") + "\n" +
#endif
#endif
" -paytxfee=<amt> " + _("Fee per KB to add to transactions you send") + "\n" +
#ifdef QT_GUI
" -server " + _("Accept command line and JSON-RPC commands") + "\n" +
#endif
#if !defined(WIN32) && !defined(QT_GUI)
" -daemon " + _("Run in the background as a daemon and accept commands") + "\n" +
#endif
" -testnet " + _("Use the test network") + "\n" +
" -debug " + _("Output extra debugging information. Implies all other -debug* options") + "\n" +
" -debugnet " + _("Output extra network debugging information") + "\n" +
" -logtimestamps " + _("Prepend debug output with timestamp (default: 1)") + "\n" +
" -shrinkdebugfile " + _("Shrink debug.log file on client startup (default: 1 when no -debug)") + "\n" +
" -printtoconsole " + _("Send trace/debug info to console instead of debug.log file") + "\n" +
#ifdef WIN32
" -printtodebugger " + _("Send trace/debug info to debugger") + "\n" +
#endif
" -rpcuser=<user> " + _("Username for JSON-RPC connections") + "\n" +
" -rpcpassword=<pw> " + _("Password for JSON-RPC connections") + "\n" +
" -rpcport=<port> " + _("Listen for JSON-RPC connections on <port> (default: 21080 or testnet: 5745)") + "\n" +
" -rpcallowip=<ip> " + _("Allow JSON-RPC connections from specified IP address") + "\n" +
#ifndef QT_GUI
" -rpcconnect=<ip> " + _("Send commands to node running on <ip> (default: 127.0.0.1)") + "\n" +
#endif
" -rpcthreads=<n> " + _("Set the number of threads to service RPC calls (default: 4)") + "\n" +
" -blocknotify=<cmd> " + _("Execute command when the best block changes (%s in cmd is replaced by block hash)") + "\n" +
" -walletnotify=<cmd> " + _("Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)") + "\n" +
" -alertnotify=<cmd> " + _("Execute command when a relevant alert is received (%s in cmd is replaced by message)") + "\n" +
" -upgradewallet " + _("Upgrade wallet to latest format") + "\n" +
" -keypool=<n> " + _("Set key pool size to <n> (default: 100)") + "\n" +
" -rescan " + _("Rescan the block chain for missing wallet transactions") + "\n" +
" -salvagewallet " + _("Attempt to recover private keys from a corrupt wallet.dat") + "\n" +
" -checkblocks=<n> " + _("How many blocks to check at startup (default: 288, 0 = all)") + "\n" +
" -checklevel=<n> " + _("How thorough the block verification is (0-4, default: 3)") + "\n" +
" -txindex " + _("Maintain a full transaction index (default: 0)") + "\n" +
" -loadblock=<file> " + _("Imports blocks from external blk000??.dat file") + "\n" +
" -reindex " + _("Rebuild block chain index from current blk000??.dat files") + "\n" +
" -par=<n> " + _("Set the number of script verification threads (up to 16, 0 = auto, <0 = leave that many cores free, default: 0)") + "\n" +
"\n" + _("Block creation options:") + "\n" +
" -blockminsize=<n> " + _("Set minimum block size in bytes (default: 0)") + "\n" +
" -blockmaxsize=<n> " + _("Set maximum block size in bytes (default: 250000)") + "\n" +
" -blockprioritysize=<n> " + _("Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)") + "\n" +
"\n" + _("SSL options: (see the PEERCOINDARK Wiki for SSL setup instructions)") + "\n" +
" -rpcssl " + _("Use OpenSSL (https) for JSON-RPC connections") + "\n" +
" -rpcsslcertificatechainfile=<file.cert> " + _("Server certificate file (default: server.cert)") + "\n" +
" -rpcsslprivatekeyfile=<file.pem> " + _("Server private key (default: server.pem)") + "\n" +
" -rpcsslciphers=<ciphers> " + _("Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)") + "\n";
return strUsage;
}
struct CImportingNow
{
CImportingNow() {
assert(fImporting == false);
fImporting = true;
}
~CImportingNow() {
assert(fImporting == true);
fImporting = false;
}
};
void ThreadImport(std::vector<boost::filesystem::path> vImportFiles)
{
RenameThread("bitcoin-loadblk");
// -reindex
if (fReindex) {
CImportingNow imp;
int nFile = 0;
while (true) {
CDiskBlockPos pos(nFile, 0);
FILE *file = OpenBlockFile(pos, true);
if (!file)
break;
printf("Reindexing block file blk%05u.dat...\n", (unsigned int)nFile);
LoadExternalBlockFile(file, &pos);
nFile++;
}
pblocktree->WriteReindexing(false);
fReindex = false;
printf("Reindexing finished\n");
// To avoid ending up in a situation without genesis block, re-try initializing (no-op if reindexing worked):
InitBlockIndex();
}
// hardcoded $DATADIR/bootstrap.dat
filesystem::path pathBootstrap = GetDataDir() / "bootstrap.dat";
if (filesystem::exists(pathBootstrap)) {
FILE *file = fopen(pathBootstrap.string().c_str(), "rb");
if (file) {
CImportingNow imp;
filesystem::path pathBootstrapOld = GetDataDir() / "bootstrap.dat.old";
printf("Importing bootstrap.dat...\n");
LoadExternalBlockFile(file);
RenameOver(pathBootstrap, pathBootstrapOld);
}
}
// -loadblock=
BOOST_FOREACH(boost::filesystem::path &path, vImportFiles) {
FILE *file = fopen(path.string().c_str(), "rb");
if (file) {
CImportingNow imp;
printf("Importing %s...\n", path.string().c_str());
LoadExternalBlockFile(file);
}
}
}
/** Initialize bitcoin.
* @pre Parameters should be parsed and config file should be read.
*/
bool AppInit2(boost::thread_group& threadGroup)
{
// ********************************************************* Step 1: setup
#ifdef _MSC_VER
// Turn off Microsoft heap dump noise
_CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE);
_CrtSetReportFile(_CRT_WARN, CreateFileA("NUL", GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, 0));
#endif
#if _MSC_VER >= 1400
// Disable confusing "helpful" text message on abort, Ctrl-C
_set_abort_behavior(0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT);
#endif
#ifdef WIN32
// Enable Data Execution Prevention (DEP)
// Minimum supported OS versions: WinXP SP3, WinVista >= SP1, Win Server 2008
// A failure is non-critical and needs no further attention!
#ifndef PROCESS_DEP_ENABLE
// We define this here, because GCCs winbase.h limits this to _WIN32_WINNT >= 0x0601 (Windows 7),
// which is not correct. Can be removed, when GCCs winbase.h is fixed!
#define PROCESS_DEP_ENABLE 0x00000001
#endif
typedef BOOL (WINAPI *PSETPROCDEPPOL)(DWORD);
PSETPROCDEPPOL setProcDEPPol = (PSETPROCDEPPOL)GetProcAddress(GetModuleHandleA("Kernel32.dll"), "SetProcessDEPPolicy");
if (setProcDEPPol != NULL) setProcDEPPol(PROCESS_DEP_ENABLE);
// Initialize Windows Sockets
WSADATA wsadata;
int ret = WSAStartup(MAKEWORD(2,2), &wsadata);
if (ret != NO_ERROR || LOBYTE(wsadata.wVersion ) != 2 || HIBYTE(wsadata.wVersion) != 2)
{
return InitError(strprintf("Error: Winsock library failed to start (WSAStartup returned error %d)", ret));
}
#endif
#ifndef WIN32
umask(077);
// Clean shutdown on SIGTERM
struct sigaction sa;
sa.sa_handler = HandleSIGTERM;
sigemptyset(&sa.sa_mask);
sa.sa_flags = 0;
sigaction(SIGTERM, &sa, NULL);
sigaction(SIGINT, &sa, NULL);
// Reopen debug.log on SIGHUP
struct sigaction sa_hup;
sa_hup.sa_handler = HandleSIGHUP;
sigemptyset(&sa_hup.sa_mask);
sa_hup.sa_flags = 0;
sigaction(SIGHUP, &sa_hup, NULL);
#endif
// ********************************************************* Step 2: parameter interactions
fTestNet = GetBoolArg("-testnet");
if (mapArgs.count("-bind")) {
// when specifying an explicit binding address, you want to listen on it
// even when -connect or -proxy is specified
SoftSetBoolArg("-listen", true);
}
if (mapArgs.count("-connect") && mapMultiArgs["-connect"].size() > 0) {
// when only connecting to trusted nodes, do not seed via DNS, or listen by default
SoftSetBoolArg("-dnsseed", false);
SoftSetBoolArg("-listen", false);
}
if (mapArgs.count("-proxy")) {
// to protect privacy, do not listen by default if a proxy server is specified
SoftSetBoolArg("-listen", false);
}
if (!GetBoolArg("-listen", true)) {
// do not map ports or try to retrieve public IP when not listening (pointless)
SoftSetBoolArg("-upnp", false);
SoftSetBoolArg("-discover", false);
}
if (mapArgs.count("-externalip")) {
// if an explicit public IP is specified, do not try to find others
SoftSetBoolArg("-discover", false);
}
if (GetBoolArg("-salvagewallet")) {
// Rewrite just private keys: rescan to find transactions
SoftSetBoolArg("-rescan", true);
}
// Make sure enough file descriptors are available
int nBind = std::max((int)mapArgs.count("-bind"), 1);
nMaxConnections = GetArg("-maxconnections", 125);
nMaxConnections = std::max(std::min(nMaxConnections, (int)(FD_SETSIZE - nBind - MIN_CORE_FILEDESCRIPTORS)), 0);
int nFD = RaiseFileDescriptorLimit(nMaxConnections + MIN_CORE_FILEDESCRIPTORS);
if (nFD < MIN_CORE_FILEDESCRIPTORS)
return InitError(_("Not enough file descriptors available."));
if (nFD - MIN_CORE_FILEDESCRIPTORS < nMaxConnections)
nMaxConnections = nFD - MIN_CORE_FILEDESCRIPTORS;
// ********************************************************* Step 3: parameter-to-internal-flags
fDebug = GetBoolArg("-debug");
fBenchmark = GetBoolArg("-benchmark");
// -par=0 means autodetect, but nScriptCheckThreads==0 means no concurrency
nScriptCheckThreads = GetArg("-par", 0);
if (nScriptCheckThreads <= 0)
nScriptCheckThreads += boost::thread::hardware_concurrency();
if (nScriptCheckThreads <= 1)
nScriptCheckThreads = 0;
else if (nScriptCheckThreads > MAX_SCRIPTCHECK_THREADS)
nScriptCheckThreads = MAX_SCRIPTCHECK_THREADS;
// -debug implies fDebug*
if (fDebug)
fDebugNet = true;
else
fDebugNet = GetBoolArg("-debugnet");
if (fDaemon)
fServer = true;
else
fServer = GetBoolArg("-server");
/* force fServer when running without GUI */
#if !defined(QT_GUI)
fServer = true;
#endif
fPrintToConsole = GetBoolArg("-printtoconsole");
fPrintToDebugger = GetBoolArg("-printtodebugger");
fLogTimestamps = GetBoolArg("-logtimestamps", true);
if (mapArgs.count("-timeout"))
{
int nNewTimeout = GetArg("-timeout", 5000);
if (nNewTimeout > 0 && nNewTimeout < 600000)
nConnectTimeout = nNewTimeout;
}
// Continue to put "/P2SH/" in the coinbase to monitor
// BIP16 support.
// This can be removed eventually...
const char* pszP2SH = "/P2SH/";
COINBASE_FLAGS << std::vector<unsigned char>(pszP2SH, pszP2SH+strlen(pszP2SH));
// Fee-per-kilobyte amount considered the same as "free"
// If you are mining, be careful setting this:
// if you set it to zero then
// a transaction spammer can cheaply fill blocks using
// 1-satoshi-fee transactions. It should be set above the real
// cost to you of processing a transaction.
if (mapArgs.count("-mintxfee"))
{
int64 n = 0;
if (ParseMoney(mapArgs["-mintxfee"], n) && n > 0)
CTransaction::nMinTxFee = n;
else
return InitError(strprintf(_("Invalid amount for -mintxfee=<amount>: '%s'"), mapArgs["-mintxfee"].c_str()));
}
if (mapArgs.count("-minrelaytxfee"))
{
int64 n = 0;
if (ParseMoney(mapArgs["-minrelaytxfee"], n) && n > 0)
CTransaction::nMinRelayTxFee = n;
else
return InitError(strprintf(_("Invalid amount for -minrelaytxfee=<amount>: '%s'"), mapArgs["-minrelaytxfee"].c_str()));
}
if (mapArgs.count("-paytxfee"))
{
if (!ParseMoney(mapArgs["-paytxfee"], nTransactionFee))
return InitError(strprintf(_("Invalid amount for -paytxfee=<amount>: '%s'"), mapArgs["-paytxfee"].c_str()));
if (nTransactionFee > 0.25 * COIN)
InitWarning(_("Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction."));
}
// ********************************************************* Step 4: application initialization: dir lock, daemonize, pidfile, debug log
std::string strDataDir = GetDataDir().string();
// Make sure only a single Bitcoin process is using the data directory.
boost::filesystem::path pathLockFile = GetDataDir() / ".lock";
FILE* file = fopen(pathLockFile.string().c_str(), "a"); // empty lock file; created if it doesn't exist.
if (file) fclose(file);
static boost::interprocess::file_lock lock(pathLockFile.string().c_str());
if (!lock.try_lock())
return InitError(strprintf(_("Cannot obtain a lock on data directory %s. PEERCOINDARK is probably already running."), strDataDir.c_str()));
if (GetBoolArg("-shrinkdebugfile", !fDebug))
ShrinkDebugFile();
printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
printf("PEERCOINDARK version %s (%s)\n", FormatFullVersion().c_str(), CLIENT_DATE.c_str());
printf("Using OpenSSL version %s\n", SSLeay_version(SSLEAY_VERSION));
if (!fLogTimestamps)
printf("Startup time: %s\n", DateTimeStrFormat("%Y-%m-%d %H:%M:%S", GetTime()).c_str());
printf("Default data directory %s\n", GetDefaultDataDir().string().c_str());
printf("Using data directory %s\n", strDataDir.c_str());
printf("Using at most %i connections (%i file descriptors available)\n", nMaxConnections, nFD);
std::ostringstream strErrors;
if (fDaemon)
fprintf(stdout, "PEERCOINDARK server starting\n");
if (nScriptCheckThreads) {
printf("Using %u threads for script verification\n", nScriptCheckThreads);
for (int i=0; i<nScriptCheckThreads-1; i++)
threadGroup.create_thread(&ThreadScriptCheck);
}
int64 nStart;
// ********************************************************* Step 5: verify wallet database integrity
uiInterface.InitMessage(_("Verifying wallet..."));
if (!bitdb.Open(GetDataDir()))
{
// try moving the database env out of the way
boost::filesystem::path pathDatabase = GetDataDir() / "database";
boost::filesystem::path pathDatabaseBak = GetDataDir() / strprintf("database.%"PRI64d".bak", GetTime());
try {
boost::filesystem::rename(pathDatabase, pathDatabaseBak);
printf("Moved old %s to %s. Retrying.\n", pathDatabase.string().c_str(), pathDatabaseBak.string().c_str());
} catch(boost::filesystem::filesystem_error &error) {
// failure is ok (well, not really, but it's not worse than what we started with)
}
// try again
if (!bitdb.Open(GetDataDir())) {
// if it still fails, it probably means we can't even create the database env
string msg = strprintf(_("Error initializing wallet database environment %s!"), strDataDir.c_str());
return InitError(msg);
}
}
if (GetBoolArg("-salvagewallet"))
{
// Recover readable keypairs:
if (!CWalletDB::Recover(bitdb, "wallet.dat", true))
return false;
}
if (filesystem::exists(GetDataDir() / "wallet.dat"))
{
CDBEnv::VerifyResult r = bitdb.Verify("wallet.dat", CWalletDB::Recover);
if (r == CDBEnv::RECOVER_OK)
{
string msg = strprintf(_("Warning: wallet.dat corrupt, data salvaged!"
" Original wallet.dat saved as wallet.{timestamp}.bak in %s; if"
" your balance or transactions are incorrect you should"
" restore from a backup."), strDataDir.c_str());
InitWarning(msg);
}
if (r == CDBEnv::RECOVER_FAIL)
return InitError(_("wallet.dat corrupt, salvage failed"));
}
// ********************************************************* Step 6: network initialization
int nSocksVersion = GetArg("-socks", 5);
if (nSocksVersion != 4 && nSocksVersion != 5)
return InitError(strprintf(_("Unknown -socks proxy version requested: %i"), nSocksVersion));
if (mapArgs.count("-onlynet")) {
std::set<enum Network> nets;
BOOST_FOREACH(std::string snet, mapMultiArgs["-onlynet"]) {
enum Network net = ParseNetwork(snet);
if (net == NET_UNROUTABLE)
return InitError(strprintf(_("Unknown network specified in -onlynet: '%s'"), snet.c_str()));
nets.insert(net);
}
for (int n = 0; n < NET_MAX; n++) {
enum Network net = (enum Network)n;
if (!nets.count(net))
SetLimited(net);
}
}
#if defined(USE_IPV6)
#if ! USE_IPV6
else
SetLimited(NET_IPV6);
#endif
#endif
CService addrProxy;
bool fProxy = false;
if (mapArgs.count("-proxy")) {
addrProxy = CService(mapArgs["-proxy"], 9050);
if (!addrProxy.IsValid())
return InitError(strprintf(_("Invalid -proxy address: '%s'"), mapArgs["-proxy"].c_str()));
if (!IsLimited(NET_IPV4))
SetProxy(NET_IPV4, addrProxy, nSocksVersion);
if (nSocksVersion > 4) {
#ifdef USE_IPV6
if (!IsLimited(NET_IPV6))
SetProxy(NET_IPV6, addrProxy, nSocksVersion);
#endif
SetNameProxy(addrProxy, nSocksVersion);
}
fProxy = true;
}
// -tor can override normal proxy, -notor disables tor entirely
if (!(mapArgs.count("-tor") && mapArgs["-tor"] == "0") && (fProxy || mapArgs.count("-tor"))) {
CService addrOnion;
if (!mapArgs.count("-tor"))
addrOnion = addrProxy;
else
addrOnion = CService(mapArgs["-tor"], 9050);
if (!addrOnion.IsValid())
return InitError(strprintf(_("Invalid -tor address: '%s'"), mapArgs["-tor"].c_str()));
SetProxy(NET_TOR, addrOnion, 5);
SetReachable(NET_TOR);
}
// see Step 2: parameter interactions for more information about these
fNoListen = !GetBoolArg("-listen", true);
fDiscover = GetBoolArg("-discover", true);
fNameLookup = GetBoolArg("-dns", true);
bool fBound = false;
if (!fNoListen) {
if (mapArgs.count("-bind")) {
BOOST_FOREACH(std::string strBind, mapMultiArgs["-bind"]) {
CService addrBind;
if (!Lookup(strBind.c_str(), addrBind, GetListenPort(), false))
return InitError(strprintf(_("Cannot resolve -bind address: '%s'"), strBind.c_str()));
fBound |= Bind(addrBind, (BF_EXPLICIT | BF_REPORT_ERROR));
}
}
else {
struct in_addr inaddr_any;
inaddr_any.s_addr = INADDR_ANY;
#ifdef USE_IPV6
fBound |= Bind(CService(in6addr_any, GetListenPort()), BF_NONE);
#endif
fBound |= Bind(CService(inaddr_any, GetListenPort()), !fBound ? BF_REPORT_ERROR : BF_NONE);
}
if (!fBound)
return InitError(_("Failed to listen on any port. Use -listen=0 if you want this."));
}
if (mapArgs.count("-externalip")) {
BOOST_FOREACH(string strAddr, mapMultiArgs["-externalip"]) {
CService addrLocal(strAddr, GetListenPort(), fNameLookup);
if (!addrLocal.IsValid())
return InitError(strprintf(_("Cannot resolve -externalip address: '%s'"), strAddr.c_str()));
AddLocal(CService(strAddr, GetListenPort(), fNameLookup), LOCAL_MANUAL);
}
}
BOOST_FOREACH(string strDest, mapMultiArgs["-seednode"])
AddOneShot(strDest);
// ********************************************************* Step 7: load block chain
fReindex = GetBoolArg("-reindex");
// Upgrading to 0.8; hard-link the old blknnnn.dat files into /blocks/
filesystem::path blocksDir = GetDataDir() / "blocks";
if (!filesystem::exists(blocksDir))
{
filesystem::create_directories(blocksDir);
bool linked = false;
for (unsigned int i = 1; i < 10000; i++) {
filesystem::path source = GetDataDir() / strprintf("blk%04u.dat", i);
if (!filesystem::exists(source)) break;
filesystem::path dest = blocksDir / strprintf("blk%05u.dat", i-1);
try {
filesystem::create_hard_link(source, dest);
printf("Hardlinked %s -> %s\n", source.string().c_str(), dest.string().c_str());
linked = true;
} catch (filesystem::filesystem_error & e) {
// Note: hardlink creation failing is not a disaster, it just means
// blocks will get re-downloaded from peers.
printf("Error hardlinking blk%04u.dat : %s\n", i, e.what());
break;
}
}
if (linked)
{
fReindex = true;
}
}
// cache size calculations
size_t nTotalCache = GetArg("-dbcache", 25) << 20;
if (nTotalCache < (1 << 22))
nTotalCache = (1 << 22); // total cache cannot be less than 4 MiB
size_t nBlockTreeDBCache = nTotalCache / 8;
if (nBlockTreeDBCache > (1 << 21) && !GetBoolArg("-txindex", false))
nBlockTreeDBCache = (1 << 21); // block tree db cache shouldn't be larger than 2 MiB
nTotalCache -= nBlockTreeDBCache;
size_t nCoinDBCache = nTotalCache / 2; // use half of the remaining cache for coindb cache
nTotalCache -= nCoinDBCache;
nCoinCacheSize = nTotalCache / 300; // coins in memory require around 300 bytes
bool fLoaded = false;
while (!fLoaded) {
bool fReset = fReindex;
std::string strLoadError;
uiInterface.InitMessage(_("Loading block index..."));
nStart = GetTimeMillis();
do {
try {
UnloadBlockIndex();
delete pcoinsTip;
delete pcoinsdbview;
delete pblocktree;
pblocktree = new CBlockTreeDB(nBlockTreeDBCache, false, fReindex);
pcoinsdbview = new CCoinsViewDB(nCoinDBCache, false, fReindex);
pcoinsTip = new CCoinsViewCache(*pcoinsdbview);
if (fReindex)
pblocktree->WriteReindexing(true);
if (!LoadBlockIndex()) {
strLoadError = _("Error loading block database");
break;
}
// Initialize the block index (no-op if non-empty database was already loaded)
if (!InitBlockIndex()) {
strLoadError = _("Error initializing block database");
break;
}
uiInterface.InitMessage(_("Verifying blocks..."));
if (!VerifyDB()) {
strLoadError = _("Corrupted block database detected");
break;
}
} catch(std::exception &e) {
strLoadError = _("Error opening block database");
break;
}
fLoaded = true;
} while(false);
if (!fLoaded) {
// first suggest a reindex
if (!fReset) {
bool fRet = uiInterface.ThreadSafeMessageBox(
strLoadError + ".\n" + _("Do you want to rebuild the block database now?"),
"", CClientUIInterface::MSG_ERROR | CClientUIInterface::BTN_ABORT);
if (fRet) {
fReindex = true;
fRequestShutdown = false;
} else {
return false;
}
} else {
return InitError(strLoadError);
}
}
}
if (mapArgs.count("-txindex") && fTxIndex != GetBoolArg("-txindex", false))
return InitError(_("You need to rebuild the databases using -reindex to change -txindex"));
// as LoadBlockIndex can take several minutes, it's possible the user
// requested to kill bitcoin-qt during the last operation. If so, exit.
// As the program has not fully started yet, Shutdown() is possibly overkill.
if (fRequestShutdown)
{
printf("Shutdown requested. Exiting.\n");
return false;
}
printf(" block index %15"PRI64d"ms\n", GetTimeMillis() - nStart);
if (GetBoolArg("-printblockindex") || GetBoolArg("-printblocktree"))
{
PrintBlockTree();
return false;
}
if (mapArgs.count("-printblock"))
{
string strMatch = mapArgs["-printblock"];
int nFound = 0;
for (map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.begin(); mi != mapBlockIndex.end(); ++mi)
{
uint256 hash = (*mi).first;
if (strncmp(hash.ToString().c_str(), strMatch.c_str(), strMatch.size()) == 0)
{
CBlockIndex* pindex = (*mi).second;
CBlock block;
block.ReadFromDisk(pindex);
block.BuildMerkleTree();
block.print();
printf("\n");
nFound++;
}
}
if (nFound == 0)
printf("No blocks matching %s were found\n", strMatch.c_str());
return false;
}
// ********************************************************* Step 8: load wallet
uiInterface.InitMessage(_("Loading wallet..."));
nStart = GetTimeMillis();
bool fFirstRun = true;
pwalletMain = new CWallet("wallet.dat");
DBErrors nLoadWalletRet = pwalletMain->LoadWallet(fFirstRun);
if (nLoadWalletRet != DB_LOAD_OK)
{
if (nLoadWalletRet == DB_CORRUPT)
strErrors << _("Error loading wallet.dat: Wallet corrupted") << "\n";
else if (nLoadWalletRet == DB_NONCRITICAL_ERROR)
{
string msg(_("Warning: error reading wallet.dat! All keys read correctly, but transaction data"
" or address book entries might be missing or incorrect."));
InitWarning(msg);
}
else if (nLoadWalletRet == DB_TOO_NEW)
strErrors << _("Error loading wallet.dat: Wallet requires newer version of PEERCOINDARK") << "\n";
else if (nLoadWalletRet == DB_NEED_REWRITE)
{
strErrors << _("Wallet needed to be rewritten: restart PEERCOINDARK to complete") << "\n";
printf("%s", strErrors.str().c_str());
return InitError(strErrors.str());
}
else
strErrors << _("Error loading wallet.dat") << "\n";
}
if (GetBoolArg("-upgradewallet", fFirstRun))
{
int nMaxVersion = GetArg("-upgradewallet", 0);
if (nMaxVersion == 0) // the -upgradewallet without argument case
{
printf("Performing wallet upgrade to %i\n", FEATURE_LATEST);
nMaxVersion = CLIENT_VERSION;
pwalletMain->SetMinVersion(FEATURE_LATEST); // permanently upgrade the wallet immediately
}
else
printf("Allowing wallet upgrade up to %i\n", nMaxVersion);
if (nMaxVersion < pwalletMain->GetVersion())
strErrors << _("Cannot downgrade wallet") << "\n";
pwalletMain->SetMaxVersion(nMaxVersion);
}
if (fFirstRun)
{
// Create new keyUser and set as default key
RandAddSeedPerfmon();
CPubKey newDefaultKey;
if (pwalletMain->GetKeyFromPool(newDefaultKey, false)) {
pwalletMain->SetDefaultKey(newDefaultKey);
if (!pwalletMain->SetAddressBookName(pwalletMain->vchDefaultKey.GetID(), ""))
strErrors << _("Cannot write default address") << "\n";
}
pwalletMain->SetBestChain(CBlockLocator(pindexBest));
}
printf("%s", strErrors.str().c_str());
printf(" wallet %15"PRI64d"ms\n", GetTimeMillis() - nStart);
RegisterWallet(pwalletMain);
CBlockIndex *pindexRescan = pindexBest;
if (GetBoolArg("-rescan"))
pindexRescan = pindexGenesisBlock;
else
{
CWalletDB walletdb("wallet.dat");
CBlockLocator locator;
if (walletdb.ReadBestBlock(locator))
pindexRescan = locator.GetBlockIndex();
else
pindexRescan = pindexGenesisBlock;
}
if (pindexBest && pindexBest != pindexRescan)
{
uiInterface.InitMessage(_("Rescanning..."));
printf("Rescanning last %i blocks (from block %i)...\n", pindexBest->nHeight - pindexRescan->nHeight, pindexRescan->nHeight);
nStart = GetTimeMillis();
pwalletMain->ScanForWalletTransactions(pindexRescan, true);
printf(" rescan %15"PRI64d"ms\n", GetTimeMillis() - nStart);
pwalletMain->SetBestChain(CBlockLocator(pindexBest));
nWalletDBUpdated++;
}
// ********************************************************* Step 9: import blocks
// scan for better chains in the block chain database, that are not yet connected in the active best chain
CValidationState state;
if (!ConnectBestBlock(state))
strErrors << "Failed to connect best block";
std::vector<boost::filesystem::path> vImportFiles;
if (mapArgs.count("-loadblock"))
{
BOOST_FOREACH(string strFile, mapMultiArgs["-loadblock"])
vImportFiles.push_back(strFile);
}
threadGroup.create_thread(boost::bind(&ThreadImport, vImportFiles));
// ********************************************************* Step 10: load peers
uiInterface.InitMessage(_("Loading addresses..."));
nStart = GetTimeMillis();
{
CAddrDB adb;
if (!adb.Read(addrman))
printf("Invalid or missing peers.dat; recreating\n");
}
printf("Loaded %i addresses from peers.dat %"PRI64d"ms\n",
addrman.size(), GetTimeMillis() - nStart);
// ********************************************************* Step 11: start node
if (!CheckDiskSpace())
return false;
if (!strErrors.str().empty())
return InitError(strErrors.str());
RandAddSeedPerfmon();
//// debug print
printf("mapBlockIndex.size() = %"PRIszu"\n", mapBlockIndex.size());
printf("nBestHeight = %d\n", nBestHeight);
printf("setKeyPool.size() = %"PRIszu"\n", pwalletMain->setKeyPool.size());
printf("mapWallet.size() = %"PRIszu"\n", pwalletMain->mapWallet.size());
printf("mapAddressBook.size() = %"PRIszu"\n", pwalletMain->mapAddressBook.size());
StartNode(threadGroup);
if (fServer)
StartRPCThreads();
// Generate coins in the background
GenerateBitcoins(GetBoolArg("-gen", false), pwalletMain);
// ********************************************************* Step 12: finished
uiInterface.InitMessage(_("Done loading"));
// Add wallet transactions that aren't already in a block to mapTransactions
pwalletMain->ReacceptWalletTransactions();
// Run a thread to flush wallet periodically
threadGroup.create_thread(boost::bind(&ThreadFlushWalletDB, boost::ref(pwalletMain->strWalletFile)));
return !fRequestShutdown;
}
|
{
"content_hash": "a42e467c09af633840e51359699a24e1",
"timestamp": "",
"source": "github",
"line_count": 1103,
"max_line_length": 163,
"avg_line_length": 38.97461468721668,
"alnum_prop": 0.5734024983135221,
"repo_name": "DOGEBC/PeercoinDark_PPCD",
"id": "1f55b17404238c6ca47cfdd06881d6404057df87",
"size": "42989",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/init.cpp",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "91050"
},
{
"name": "C++",
"bytes": "2435409"
},
{
"name": "CSS",
"bytes": "1127"
},
{
"name": "Objective-C++",
"bytes": "2734"
},
{
"name": "Python",
"bytes": "3783"
},
{
"name": "Shell",
"bytes": "808"
},
{
"name": "TypeScript",
"bytes": "5246247"
}
],
"symlink_target": ""
}
|
IonicModule
.controller('$ionicNavView', [
'$scope',
'$element',
'$attrs',
'$compile',
'$controller',
'$ionicNavBarDelegate',
'$ionicNavViewDelegate',
'$ionicHistory',
'$ionicViewSwitcher',
'$ionicConfig',
'$ionicScrollDelegate',
function($scope, $element, $attrs, $compile, $controller, $ionicNavBarDelegate, $ionicNavViewDelegate, $ionicHistory, $ionicViewSwitcher, $ionicConfig, $ionicScrollDelegate) {
var DATA_ELE_IDENTIFIER = '$eleId';
var DATA_DESTROY_ELE = '$destroyEle';
var DATA_NO_CACHE = '$noCache';
var VIEW_STATUS_ACTIVE = 'active';
var VIEW_STATUS_CACHED = 'cached';
var self = this;
var direction;
var isPrimary = false;
var navBarDelegate;
var activeEleId;
var navViewAttr = $ionicViewSwitcher.navViewAttr;
var disableRenderStartViewId, disableAnimation;
var transitionDuration, transitionTiming;
self.scope = $scope;
self.element = $element;
self.init = function() {
var navViewName = $attrs.name || '';
// Find the details of the parent view directive (if any) and use it
// to derive our own qualified view name, then hang our own details
// off the DOM so child directives can find it.
var parent = $element.parent().inheritedData('$uiView');
var parentViewName = ((parent && parent.state) ? parent.state.name : '');
if (navViewName.indexOf('@') < 0) navViewName = navViewName + '@' + parentViewName;
var viewData = { name: navViewName, state: null };
$element.data('$uiView', viewData);
var deregisterInstance = $ionicNavViewDelegate._registerInstance(self, $attrs.delegateHandle);
$scope.$on('$destroy', deregisterInstance);
$scope.$on('$ionicHistory.deselect', self.cacheCleanup);
ionic.Platform.ready(function() {
if (ionic.Platform.isWebView() && $ionicConfig.views.swipeBackEnabled()) {
self.initSwipeBack();
}
});
return viewData;
};
self.register = function(viewLocals) {
var leavingView = extend({}, $ionicHistory.currentView());
// register that a view is coming in and get info on how it should transition
var registerData = $ionicHistory.register($scope, viewLocals);
// update which direction
self.update(registerData);
// begin rendering and transitioning
var enteringView = $ionicHistory.getViewById(registerData.viewId) || {};
var renderStart = (disableRenderStartViewId !== registerData.viewId);
self.render(registerData, viewLocals, enteringView, leavingView, renderStart, true);
};
self.update = function(registerData) {
// always reset that this is the primary navView
isPrimary = true;
// remember what direction this navView should use
// this may get updated later by a child navView
direction = registerData.direction;
var parentNavViewCtrl = $element.parent().inheritedData('$ionNavViewController');
if (parentNavViewCtrl) {
// this navView is nested inside another one
// update the parent to use this direction and not
// the other it originally was set to
// inform the parent navView that it is not the primary navView
parentNavViewCtrl.isPrimary(false);
if (direction === 'enter' || direction === 'exit') {
// they're entering/exiting a history
// find parent navViewController
parentNavViewCtrl.direction(direction);
if (direction === 'enter') {
// reset the direction so this navView doesn't animate
// because it's parent will
direction = 'none';
}
}
}
};
self.render = function(registerData, viewLocals, enteringView, leavingView, renderStart, renderEnd) {
// register the view and figure out where it lives in the various
// histories and nav stacks, along with how views should enter/leave
var switcher = $ionicViewSwitcher.create(self, viewLocals, enteringView, leavingView, renderStart, renderEnd);
// init the rendering of views for this navView directive
switcher.init(registerData, function() {
// the view is now compiled, in the dom and linked, now lets transition the views.
// this uses a callback incase THIS nav-view has a nested nav-view, and after the NESTED
// nav-view links, the NESTED nav-view would update which direction THIS nav-view should use
// kick off the transition of views
switcher.transition(self.direction(), registerData.enableBack, !disableAnimation);
// reset private vars for next time
disableRenderStartViewId = disableAnimation = null;
});
};
self.beforeEnter = function(transitionData) {
if (isPrimary) {
// only update this nav-view's nav-bar if this is the primary nav-view
navBarDelegate = transitionData.navBarDelegate;
var associatedNavBarCtrl = getAssociatedNavBarCtrl();
associatedNavBarCtrl && associatedNavBarCtrl.update(transitionData);
navSwipeAttr('');
}
};
self.activeEleId = function(eleId) {
if (arguments.length) {
activeEleId = eleId;
}
return activeEleId;
};
self.transitionEnd = function() {
var viewElements = $element.children();
var x, l, viewElement;
for (x = 0, l = viewElements.length; x < l; x++) {
viewElement = viewElements.eq(x);
if (viewElement.data(DATA_ELE_IDENTIFIER) === activeEleId) {
// this is the active element
navViewAttr(viewElement, VIEW_STATUS_ACTIVE);
} else if (navViewAttr(viewElement) === 'leaving' || navViewAttr(viewElement) === VIEW_STATUS_ACTIVE || navViewAttr(viewElement) === VIEW_STATUS_CACHED) {
// this is a leaving element or was the former active element, or is an cached element
if (viewElement.data(DATA_DESTROY_ELE) || viewElement.data(DATA_NO_CACHE)) {
// this element shouldn't stay cached
$ionicViewSwitcher.destroyViewEle(viewElement);
} else {
// keep in the DOM, mark as cached
navViewAttr(viewElement, VIEW_STATUS_CACHED);
}
}
}
navSwipeAttr('');
};
self.cacheCleanup = function() {
var viewElements = $element.children();
for (var x = 0, l = viewElements.length; x < l; x++) {
if (viewElements.eq(x).data(DATA_DESTROY_ELE)) {
$ionicViewSwitcher.destroyViewEle(viewElements.eq(x));
}
}
};
self.clearCache = function() {
var viewElements = $element.children();
var viewElement, viewScope;
for (var x = 0, l = viewElements.length; x < l; x++) {
viewElement = viewElements.eq(x);
if (navViewAttr(viewElement) == VIEW_STATUS_CACHED) {
$ionicViewSwitcher.destroyViewEle(viewElement);
} else if (navViewAttr(viewElement) == VIEW_STATUS_ACTIVE) {
viewScope = viewElement.scope();
viewScope && viewScope.$broadcast('$ionicView.clearCache');
}
}
};
self.getViewElements = function() {
return $element.children();
};
self.appendViewElement = function(viewEle, viewLocals) {
// compile the entering element and get the link function
var linkFn = $compile(viewEle);
$element.append(viewEle);
var viewScope = $scope.$new();
if (viewLocals && viewLocals.$$controller) {
viewLocals.$scope = viewScope;
var controller = $controller(viewLocals.$$controller, viewLocals);
$element.children().data('$ngControllerController', controller);
}
linkFn(viewScope);
return viewScope;
};
self.title = function(val) {
var associatedNavBarCtrl = getAssociatedNavBarCtrl();
associatedNavBarCtrl && associatedNavBarCtrl.title(val);
};
/**
* @ngdoc method
* @name $ionicNavView#enableBackButton
* @description Enable/disable if the back button can be shown or not. For
* example, the very first view in the navigation stack would not have a
* back view, so the back button would be disabled.
*/
self.enableBackButton = function(shouldEnable) {
var associatedNavBarCtrl = getAssociatedNavBarCtrl();
associatedNavBarCtrl && associatedNavBarCtrl.enableBackButton(shouldEnable);
};
/**
* @ngdoc method
* @name $ionicNavView#showBackButton
* @description Show/hide the nav bar active back button. If the back button
* is not possible this will not force the back button to show. The
* `enableBackButton()` method handles if a back button is even possible or not.
*/
self.showBackButton = function(shouldShow) {
var associatedNavBarCtrl = getAssociatedNavBarCtrl();
associatedNavBarCtrl && associatedNavBarCtrl.showActiveBackButton(shouldShow);
};
self.showBar = function(val) {
var associatedNavBarCtrl = getAssociatedNavBarCtrl();
associatedNavBarCtrl && associatedNavBarCtrl.showBar(val);
};
self.isPrimary = function(val) {
if (arguments.length) {
isPrimary = val;
}
return isPrimary;
};
self.direction = function(val) {
if (arguments.length) {
direction = val;
}
return direction;
};
self.initSwipeBack = function() {
var swipeBackHitWidth = $ionicConfig.views.swipeBackHitWidth();
var viewTransition, associatedNavBarCtrl, backView;
var deregDragStart, deregDrag, deregRelease;
var windowWidth, startDragX, dragPoints;
function onDragStart(ev) {
if (!isPrimary) return;
startDragX = getDragX(ev);
if (startDragX > swipeBackHitWidth) return;
backView = $ionicHistory.backView();
if (!backView || backView.historyId !== $ionicHistory.currentView().historyId) return;
if (!windowWidth) windowWidth = window.innerWidth;
freezeScrolls(true);
var registerData = {
direction: 'back'
};
dragPoints = [];
var switcher = $ionicViewSwitcher.create(self, registerData, backView, $ionicHistory.currentView(), true, false);
switcher.loadViewElements(registerData);
switcher.render(registerData);
viewTransition = switcher.transition('back', $ionicHistory.enabledBack(backView), true);
associatedNavBarCtrl = getAssociatedNavBarCtrl();
deregDrag = ionic.onGesture('drag', onDrag, $element[0]);
deregRelease = ionic.onGesture('release', onRelease, $element[0]);
}
function onDrag(ev) {
if (isPrimary && viewTransition) {
var dragX = getDragX(ev);
dragPoints.push({
t: Date.now(),
x: dragX
});
if (dragX >= windowWidth - 15) {
onRelease(ev);
} else {
var step = Math.min(Math.max(getSwipeCompletion(dragX), 0), 1);
viewTransition.run(step);
associatedNavBarCtrl && associatedNavBarCtrl.activeTransition && associatedNavBarCtrl.activeTransition.run(step);
}
}
}
function onRelease(ev) {
if (isPrimary && viewTransition && dragPoints && dragPoints.length > 1) {
var now = Date.now();
var releaseX = getDragX(ev);
var startDrag = dragPoints[dragPoints.length - 1];
for (var x = dragPoints.length - 2; x >= 0; x--) {
if (now - startDrag.t > 200) {
break;
}
startDrag = dragPoints[x];
}
var isSwipingRight = (releaseX >= dragPoints[dragPoints.length - 2].x);
var releaseSwipeCompletion = getSwipeCompletion(releaseX);
var velocity = Math.abs(startDrag.x - releaseX) / (now - startDrag.t);
// private variables because ui-router has no way to pass custom data using $state.go
disableRenderStartViewId = backView.viewId;
disableAnimation = (releaseSwipeCompletion < 0.03 || releaseSwipeCompletion > 0.97);
if (isSwipingRight && (releaseSwipeCompletion > 0.5 || velocity > 0.1)) {
var speed = (velocity > 0.5 || velocity < 0.05 || releaseX > windowWidth - 45) ? 'fast' : 'slow';
navSwipeAttr(disableAnimation ? '' : speed);
backView.go();
associatedNavBarCtrl && associatedNavBarCtrl.activeTransition && associatedNavBarCtrl.activeTransition.complete(!disableAnimation, speed);
} else {
navSwipeAttr(disableAnimation ? '' : 'fast');
disableRenderStartViewId = null;
viewTransition.cancel(!disableAnimation);
associatedNavBarCtrl && associatedNavBarCtrl.activeTransition && associatedNavBarCtrl.activeTransition.cancel(!disableAnimation, 'fast');
disableAnimation = null;
}
}
ionic.offGesture(deregDrag, 'drag', onDrag);
ionic.offGesture(deregRelease, 'release', onRelease);
windowWidth = viewTransition = dragPoints = null;
freezeScrolls(false);
}
function getDragX(ev) {
return ionic.tap.pointerCoord(ev.gesture.srcEvent).x;
}
function getSwipeCompletion(dragX) {
return (dragX - startDragX) / windowWidth;
}
deregDragStart = ionic.onGesture('dragstart', onDragStart, $element[0]);
$scope.$on('$destroy', function() {
ionic.offGesture(deregDragStart, 'dragstart', onDragStart);
ionic.offGesture(deregDrag, 'drag', onDrag);
ionic.offGesture(deregRelease, 'release', onRelease);
self.element = viewTransition = associatedNavBarCtrl = null;
});
};
function freezeScrolls(freeze) {
forEach($ionicScrollDelegate._instances, function(instance) {
instance.freezeScroll(freeze);
});
}
function navSwipeAttr(val) {
ionic.DomUtil.cachedAttr($element, 'nav-swipe', val);
}
function getAssociatedNavBarCtrl() {
if (navBarDelegate) {
for (var x=0; x < $ionicNavBarDelegate._instances.length; x++) {
if ($ionicNavBarDelegate._instances[x].$$delegateHandle == navBarDelegate) {
return $ionicNavBarDelegate._instances[x];
}
}
}
return $element.inheritedData('$ionNavBarController');
}
}]);
|
{
"content_hash": "d45063d8ec0faa9466d6305a447570e2",
"timestamp": "",
"source": "github",
"line_count": 431,
"max_line_length": 175,
"avg_line_length": 31.96751740139211,
"alnum_prop": 0.662940920307737,
"repo_name": "eric-stanley/ionic",
"id": "a16386e862a6873806ebb9c51bc44f95cd2d00aa",
"size": "13778",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "js/angular/controller/navViewController.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "499701"
},
{
"name": "JavaScript",
"bytes": "3285431"
},
{
"name": "Shell",
"bytes": "12725"
}
],
"symlink_target": ""
}
|
package promql
import (
"fmt"
"math"
"reflect"
"strings"
"testing"
"time"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/storage/metric"
)
var testExpr = []struct {
input string // The input to be parsed.
expected Expr // The expected expression AST.
fail bool // Whether parsing is supposed to fail.
errMsg string // If not empty the parsing error has to contain this string.
}{
// Scalars and scalar-to-scalar operations.
{
input: "1",
expected: &NumberLiteral{1},
}, {
input: "+Inf",
expected: &NumberLiteral{model.SampleValue(math.Inf(1))},
}, {
input: "-Inf",
expected: &NumberLiteral{model.SampleValue(math.Inf(-1))},
}, {
input: ".5",
expected: &NumberLiteral{0.5},
}, {
input: "5.",
expected: &NumberLiteral{5},
}, {
input: "123.4567",
expected: &NumberLiteral{123.4567},
}, {
input: "5e-3",
expected: &NumberLiteral{0.005},
}, {
input: "5e3",
expected: &NumberLiteral{5000},
}, {
input: "0xc",
expected: &NumberLiteral{12},
}, {
input: "0755",
expected: &NumberLiteral{493},
}, {
input: "+5.5e-3",
expected: &NumberLiteral{0.0055},
}, {
input: "-0755",
expected: &NumberLiteral{-493},
}, {
input: "1 + 1",
expected: &BinaryExpr{itemADD, &NumberLiteral{1}, &NumberLiteral{1}, nil, false},
}, {
input: "1 - 1",
expected: &BinaryExpr{itemSUB, &NumberLiteral{1}, &NumberLiteral{1}, nil, false},
}, {
input: "1 * 1",
expected: &BinaryExpr{itemMUL, &NumberLiteral{1}, &NumberLiteral{1}, nil, false},
}, {
input: "1 % 1",
expected: &BinaryExpr{itemMOD, &NumberLiteral{1}, &NumberLiteral{1}, nil, false},
}, {
input: "1 / 1",
expected: &BinaryExpr{itemDIV, &NumberLiteral{1}, &NumberLiteral{1}, nil, false},
}, {
input: "1 == bool 1",
expected: &BinaryExpr{itemEQL, &NumberLiteral{1}, &NumberLiteral{1}, nil, true},
}, {
input: "1 != bool 1",
expected: &BinaryExpr{itemNEQ, &NumberLiteral{1}, &NumberLiteral{1}, nil, true},
}, {
input: "1 > bool 1",
expected: &BinaryExpr{itemGTR, &NumberLiteral{1}, &NumberLiteral{1}, nil, true},
}, {
input: "1 >= bool 1",
expected: &BinaryExpr{itemGTE, &NumberLiteral{1}, &NumberLiteral{1}, nil, true},
}, {
input: "1 < bool 1",
expected: &BinaryExpr{itemLSS, &NumberLiteral{1}, &NumberLiteral{1}, nil, true},
}, {
input: "1 <= bool 1",
expected: &BinaryExpr{itemLTE, &NumberLiteral{1}, &NumberLiteral{1}, nil, true},
}, {
input: "+1 + -2 * 1",
expected: &BinaryExpr{
Op: itemADD,
LHS: &NumberLiteral{1},
RHS: &BinaryExpr{
Op: itemMUL, LHS: &NumberLiteral{-2}, RHS: &NumberLiteral{1},
},
},
}, {
input: "1 + 2/(3*1)",
expected: &BinaryExpr{
Op: itemADD,
LHS: &NumberLiteral{1},
RHS: &BinaryExpr{
Op: itemDIV,
LHS: &NumberLiteral{2},
RHS: &ParenExpr{&BinaryExpr{
Op: itemMUL, LHS: &NumberLiteral{3}, RHS: &NumberLiteral{1},
}},
},
},
}, {
input: "1 < bool 2 - 1 * 2",
expected: &BinaryExpr{
Op: itemLSS,
ReturnBool: true,
LHS: &NumberLiteral{1},
RHS: &BinaryExpr{
Op: itemSUB,
LHS: &NumberLiteral{2},
RHS: &BinaryExpr{
Op: itemMUL, LHS: &NumberLiteral{1}, RHS: &NumberLiteral{2},
},
},
},
}, {
input: "-some_metric", expected: &UnaryExpr{
Op: itemSUB,
Expr: &VectorSelector{
Name: "some_metric",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "some_metric"},
},
},
},
}, {
input: "+some_metric", expected: &UnaryExpr{
Op: itemADD,
Expr: &VectorSelector{
Name: "some_metric",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "some_metric"},
},
},
},
}, {
input: "",
fail: true,
errMsg: "no expression found in input",
}, {
input: "# just a comment\n\n",
fail: true,
errMsg: "no expression found in input",
}, {
input: "1+",
fail: true,
errMsg: "no valid expression found",
}, {
input: ".",
fail: true,
errMsg: "unexpected character: '.'",
}, {
input: "2.5.",
fail: true,
errMsg: "could not parse remaining input \".\"...",
}, {
input: "100..4",
fail: true,
errMsg: "could not parse remaining input \".4\"...",
}, {
input: "0deadbeef",
fail: true,
errMsg: "bad number or duration syntax: \"0de\"",
}, {
input: "1 /",
fail: true,
errMsg: "no valid expression found",
}, {
input: "*1",
fail: true,
errMsg: "no valid expression found",
}, {
input: "(1))",
fail: true,
errMsg: "could not parse remaining input \")\"...",
}, {
input: "((1)",
fail: true,
errMsg: "unclosed left parenthesis",
}, {
input: "999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999",
fail: true,
errMsg: "out of range",
}, {
input: "(",
fail: true,
errMsg: "unclosed left parenthesis",
}, {
input: "1 and 1",
fail: true,
errMsg: "AND and OR not allowed in binary scalar expression",
}, {
input: "1 == 1",
fail: true,
errMsg: "parse error at char 7: comparisons between scalars must use BOOL modifier",
}, {
input: "1 or 1",
fail: true,
errMsg: "AND and OR not allowed in binary scalar expression",
}, {
input: "1 !~ 1",
fail: true,
errMsg: "could not parse remaining input \"!~ 1\"...",
}, {
input: "1 =~ 1",
fail: true,
errMsg: "could not parse remaining input \"=~ 1\"...",
}, {
input: `-"string"`,
fail: true,
errMsg: `unary expression only allowed on expressions of type scalar or vector, got "string"`,
}, {
input: `-test[5m]`,
fail: true,
errMsg: `unary expression only allowed on expressions of type scalar or vector, got "matrix"`,
}, {
input: `*test`,
fail: true,
errMsg: "no valid expression found",
}, {
input: "1 offset 1d",
fail: true,
errMsg: "offset modifier must be preceded by an instant or range selector",
},
// Vector binary operations.
{
input: "foo * bar",
expected: &BinaryExpr{
Op: itemMUL,
LHS: &VectorSelector{
Name: "foo",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "foo"},
},
},
RHS: &VectorSelector{
Name: "bar",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "bar"},
},
},
VectorMatching: &VectorMatching{Card: CardOneToOne},
},
}, {
input: "foo == 1",
expected: &BinaryExpr{
Op: itemEQL,
LHS: &VectorSelector{
Name: "foo",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "foo"},
},
},
RHS: &NumberLiteral{1},
},
}, {
input: "foo == bool 1",
expected: &BinaryExpr{
Op: itemEQL,
LHS: &VectorSelector{
Name: "foo",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "foo"},
},
},
RHS: &NumberLiteral{1},
ReturnBool: true,
},
}, {
input: "2.5 / bar",
expected: &BinaryExpr{
Op: itemDIV,
LHS: &NumberLiteral{2.5},
RHS: &VectorSelector{
Name: "bar",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "bar"},
},
},
},
}, {
input: "foo and bar",
expected: &BinaryExpr{
Op: itemLAND,
LHS: &VectorSelector{
Name: "foo",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "foo"},
},
},
RHS: &VectorSelector{
Name: "bar",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "bar"},
},
},
VectorMatching: &VectorMatching{Card: CardManyToMany},
},
}, {
input: "foo or bar",
expected: &BinaryExpr{
Op: itemLOR,
LHS: &VectorSelector{
Name: "foo",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "foo"},
},
},
RHS: &VectorSelector{
Name: "bar",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "bar"},
},
},
VectorMatching: &VectorMatching{Card: CardManyToMany},
},
}, {
// Test and/or precedence and reassigning of operands.
input: "foo + bar or bla and blub",
expected: &BinaryExpr{
Op: itemLOR,
LHS: &BinaryExpr{
Op: itemADD,
LHS: &VectorSelector{
Name: "foo",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "foo"},
},
},
RHS: &VectorSelector{
Name: "bar",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "bar"},
},
},
VectorMatching: &VectorMatching{Card: CardOneToOne},
},
RHS: &BinaryExpr{
Op: itemLAND,
LHS: &VectorSelector{
Name: "bla",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "bla"},
},
},
RHS: &VectorSelector{
Name: "blub",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "blub"},
},
},
VectorMatching: &VectorMatching{Card: CardManyToMany},
},
VectorMatching: &VectorMatching{Card: CardManyToMany},
},
}, {
// Test precedence and reassigning of operands.
input: "bar + on(foo) bla / on(baz, buz) group_right(test) blub",
expected: &BinaryExpr{
Op: itemADD,
LHS: &VectorSelector{
Name: "bar",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "bar"},
},
},
RHS: &BinaryExpr{
Op: itemDIV,
LHS: &VectorSelector{
Name: "bla",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "bla"},
},
},
RHS: &VectorSelector{
Name: "blub",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "blub"},
},
},
VectorMatching: &VectorMatching{
Card: CardOneToMany,
On: model.LabelNames{"baz", "buz"},
Include: model.LabelNames{"test"},
},
},
VectorMatching: &VectorMatching{
Card: CardOneToOne,
On: model.LabelNames{"foo"},
},
},
}, {
input: "foo * on(test,blub) bar",
expected: &BinaryExpr{
Op: itemMUL,
LHS: &VectorSelector{
Name: "foo",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "foo"},
},
},
RHS: &VectorSelector{
Name: "bar",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "bar"},
},
},
VectorMatching: &VectorMatching{
Card: CardOneToOne,
On: model.LabelNames{"test", "blub"},
},
},
}, {
input: "foo and on(test,blub) bar",
expected: &BinaryExpr{
Op: itemLAND,
LHS: &VectorSelector{
Name: "foo",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "foo"},
},
},
RHS: &VectorSelector{
Name: "bar",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "bar"},
},
},
VectorMatching: &VectorMatching{
Card: CardManyToMany,
On: model.LabelNames{"test", "blub"},
},
},
}, {
input: "foo / on(test,blub) group_left(bar) bar",
expected: &BinaryExpr{
Op: itemDIV,
LHS: &VectorSelector{
Name: "foo",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "foo"},
},
},
RHS: &VectorSelector{
Name: "bar",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "bar"},
},
},
VectorMatching: &VectorMatching{
Card: CardManyToOne,
On: model.LabelNames{"test", "blub"},
Include: model.LabelNames{"bar"},
},
},
}, {
input: "foo - on(test,blub) group_right(bar,foo) bar",
expected: &BinaryExpr{
Op: itemSUB,
LHS: &VectorSelector{
Name: "foo",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "foo"},
},
},
RHS: &VectorSelector{
Name: "bar",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "bar"},
},
},
VectorMatching: &VectorMatching{
Card: CardOneToMany,
On: model.LabelNames{"test", "blub"},
Include: model.LabelNames{"bar", "foo"},
},
},
}, {
input: "foo and 1",
fail: true,
errMsg: "AND and OR not allowed in binary scalar expression",
}, {
input: "1 and foo",
fail: true,
errMsg: "AND and OR not allowed in binary scalar expression",
}, {
input: "foo or 1",
fail: true,
errMsg: "AND and OR not allowed in binary scalar expression",
}, {
input: "1 or foo",
fail: true,
errMsg: "AND and OR not allowed in binary scalar expression",
}, {
input: "1 or on(bar) foo",
fail: true,
errMsg: "vector matching only allowed between vectors",
}, {
input: "foo == on(bar) 10",
fail: true,
errMsg: "vector matching only allowed between vectors",
}, {
input: "foo and on(bar) group_left(baz) bar",
fail: true,
errMsg: "no grouping allowed for AND and OR operations",
}, {
input: "foo and on(bar) group_right(baz) bar",
fail: true,
errMsg: "no grouping allowed for AND and OR operations",
}, {
input: "foo or on(bar) group_left(baz) bar",
fail: true,
errMsg: "no grouping allowed for AND and OR operations",
}, {
input: "foo or on(bar) group_right(baz) bar",
fail: true,
errMsg: "no grouping allowed for AND and OR operations",
}, {
input: `http_requests{group="production"} / on(instance) group_left cpu_count{type="smp"}`,
fail: true,
errMsg: "unexpected identifier \"cpu_count\" in grouping opts, expected \"(\"",
}, {
input: `http_requests{group="production"} + on(instance) group_left(job,instance) cpu_count{type="smp"}`,
fail: true,
errMsg: "label \"instance\" must not occur in ON and INCLUDE clause at once",
}, {
input: "foo + bool bar",
fail: true,
errMsg: "bool modifier can only be used on comparison operators",
}, {
input: "foo + bool 10",
fail: true,
errMsg: "bool modifier can only be used on comparison operators",
}, {
input: "foo and bool 10",
fail: true,
errMsg: "bool modifier can only be used on comparison operators",
},
// Test vector selector.
{
input: "foo",
expected: &VectorSelector{
Name: "foo",
Offset: 0,
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "foo"},
},
},
}, {
input: "foo offset 5m",
expected: &VectorSelector{
Name: "foo",
Offset: 5 * time.Minute,
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "foo"},
},
},
}, {
input: `foo:bar{a="bc"}`,
expected: &VectorSelector{
Name: "foo:bar",
Offset: 0,
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: "a", Value: "bc"},
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "foo:bar"},
},
},
}, {
input: `foo{NaN='bc'}`,
expected: &VectorSelector{
Name: "foo",
Offset: 0,
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: "NaN", Value: "bc"},
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "foo"},
},
},
}, {
input: `foo{a="b", foo!="bar", test=~"test", bar!~"baz"}`,
expected: &VectorSelector{
Name: "foo",
Offset: 0,
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: "a", Value: "b"},
{Type: metric.NotEqual, Name: "foo", Value: "bar"},
mustLabelMatcher(metric.RegexMatch, "test", "test"),
mustLabelMatcher(metric.RegexNoMatch, "bar", "baz"),
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "foo"},
},
},
}, {
input: `{`,
fail: true,
errMsg: "unexpected end of input inside braces",
}, {
input: `}`,
fail: true,
errMsg: "unexpected character: '}'",
}, {
input: `some{`,
fail: true,
errMsg: "unexpected end of input inside braces",
}, {
input: `some}`,
fail: true,
errMsg: "could not parse remaining input \"}\"...",
}, {
input: `some_metric{a=b}`,
fail: true,
errMsg: "unexpected identifier \"b\" in label matching, expected string",
}, {
input: `some_metric{a:b="b"}`,
fail: true,
errMsg: "unexpected character inside braces: ':'",
}, {
input: `foo{a*"b"}`,
fail: true,
errMsg: "unexpected character inside braces: '*'",
}, {
input: `foo{a>="b"}`,
fail: true,
// TODO(fabxc): willingly lexing wrong tokens allows for more precrise error
// messages from the parser - consider if this is an option.
errMsg: "unexpected character inside braces: '>'",
}, {
input: `foo{gibberish}`,
fail: true,
errMsg: "expected label matching operator but got }",
}, {
input: `foo{1}`,
fail: true,
errMsg: "unexpected character inside braces: '1'",
}, {
input: `{}`,
fail: true,
errMsg: "vector selector must contain label matchers or metric name",
}, {
input: `{x=""}`,
fail: true,
errMsg: "vector selector must contain at least one non-empty matcher",
}, {
input: `{x=~".*"}`,
fail: true,
errMsg: "vector selector must contain at least one non-empty matcher",
}, {
input: `{x!~".+"}`,
fail: true,
errMsg: "vector selector must contain at least one non-empty matcher",
}, {
input: `{x!="a"}`,
fail: true,
errMsg: "vector selector must contain at least one non-empty matcher",
}, {
input: `foo{__name__="bar"}`,
fail: true,
errMsg: "metric name must not be set twice: \"foo\" or \"bar\"",
// }, {
// input: `:foo`,
// fail: true,
// errMsg: "bla",
},
// Test matrix selector.
{
input: "test[5s]",
expected: &MatrixSelector{
Name: "test",
Offset: 0,
Range: 5 * time.Second,
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "test"},
},
},
}, {
input: "test[5m]",
expected: &MatrixSelector{
Name: "test",
Offset: 0,
Range: 5 * time.Minute,
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "test"},
},
},
}, {
input: "test[5h] OFFSET 5m",
expected: &MatrixSelector{
Name: "test",
Offset: 5 * time.Minute,
Range: 5 * time.Hour,
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "test"},
},
},
}, {
input: "test[5d] OFFSET 10s",
expected: &MatrixSelector{
Name: "test",
Offset: 10 * time.Second,
Range: 5 * 24 * time.Hour,
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "test"},
},
},
}, {
input: "test[5w] offset 2w",
expected: &MatrixSelector{
Name: "test",
Offset: 14 * 24 * time.Hour,
Range: 5 * 7 * 24 * time.Hour,
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "test"},
},
},
}, {
input: `test{a="b"}[5y] OFFSET 3d`,
expected: &MatrixSelector{
Name: "test",
Offset: 3 * 24 * time.Hour,
Range: 5 * 365 * 24 * time.Hour,
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: "a", Value: "b"},
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "test"},
},
},
}, {
input: `foo[5mm]`,
fail: true,
errMsg: "bad duration syntax: \"5mm\"",
}, {
input: `foo[0m]`,
fail: true,
errMsg: "duration must be greater than 0",
}, {
input: `foo[5m30s]`,
fail: true,
errMsg: "bad duration syntax: \"5m3\"",
}, {
input: `foo[5m] OFFSET 1h30m`,
fail: true,
errMsg: "bad number or duration syntax: \"1h3\"",
}, {
input: `foo["5m"]`,
fail: true,
}, {
input: `foo[]`,
fail: true,
errMsg: "missing unit character in duration",
}, {
input: `foo[1]`,
fail: true,
errMsg: "missing unit character in duration",
}, {
input: `some_metric[5m] OFFSET 1`,
fail: true,
errMsg: "unexpected number \"1\" in offset, expected duration",
}, {
input: `some_metric[5m] OFFSET 1mm`,
fail: true,
errMsg: "bad number or duration syntax: \"1mm\"",
}, {
input: `some_metric[5m] OFFSET`,
fail: true,
errMsg: "unexpected end of input in offset, expected duration",
}, {
input: `some_metric OFFSET 1m[5m]`,
fail: true,
errMsg: "could not parse remaining input \"[5m]\"...",
}, {
input: `(foo + bar)[5m]`,
fail: true,
errMsg: "could not parse remaining input \"[5m]\"...",
},
// Test aggregation.
{
input: "sum by (foo)(some_metric)",
expected: &AggregateExpr{
Op: itemSum,
Expr: &VectorSelector{
Name: "some_metric",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "some_metric"},
},
},
Grouping: model.LabelNames{"foo"},
},
}, {
input: "sum by (foo) keep_common (some_metric)",
expected: &AggregateExpr{
Op: itemSum,
KeepExtraLabels: true,
Expr: &VectorSelector{
Name: "some_metric",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "some_metric"},
},
},
Grouping: model.LabelNames{"foo"},
},
}, {
input: "sum (some_metric) by (foo,bar) keep_common",
expected: &AggregateExpr{
Op: itemSum,
KeepExtraLabels: true,
Expr: &VectorSelector{
Name: "some_metric",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "some_metric"},
},
},
Grouping: model.LabelNames{"foo", "bar"},
},
}, {
input: "avg by (foo)(some_metric)",
expected: &AggregateExpr{
Op: itemAvg,
Expr: &VectorSelector{
Name: "some_metric",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "some_metric"},
},
},
Grouping: model.LabelNames{"foo"},
},
}, {
input: "COUNT by (foo) keep_common (some_metric)",
expected: &AggregateExpr{
Op: itemCount,
Expr: &VectorSelector{
Name: "some_metric",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "some_metric"},
},
},
Grouping: model.LabelNames{"foo"},
KeepExtraLabels: true,
},
}, {
input: "MIN (some_metric) by (foo) keep_common",
expected: &AggregateExpr{
Op: itemMin,
Expr: &VectorSelector{
Name: "some_metric",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "some_metric"},
},
},
Grouping: model.LabelNames{"foo"},
KeepExtraLabels: true,
},
}, {
input: "max by (foo)(some_metric)",
expected: &AggregateExpr{
Op: itemMax,
Expr: &VectorSelector{
Name: "some_metric",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "some_metric"},
},
},
Grouping: model.LabelNames{"foo"},
},
}, {
input: "sum without (foo) (some_metric)",
expected: &AggregateExpr{
Op: itemSum,
Without: true,
Expr: &VectorSelector{
Name: "some_metric",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "some_metric"},
},
},
Grouping: model.LabelNames{"foo"},
},
}, {
input: "sum (some_metric) without (foo)",
expected: &AggregateExpr{
Op: itemSum,
Without: true,
Expr: &VectorSelector{
Name: "some_metric",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "some_metric"},
},
},
Grouping: model.LabelNames{"foo"},
},
}, {
input: "stddev(some_metric)",
expected: &AggregateExpr{
Op: itemStddev,
Expr: &VectorSelector{
Name: "some_metric",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "some_metric"},
},
},
},
}, {
input: "stdvar by (foo)(some_metric)",
expected: &AggregateExpr{
Op: itemStdvar,
Expr: &VectorSelector{
Name: "some_metric",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "some_metric"},
},
},
Grouping: model.LabelNames{"foo"},
},
}, {
input: `sum some_metric by (test)`,
fail: true,
errMsg: "unexpected identifier \"some_metric\" in aggregation, expected \"(\"",
}, {
input: `sum (some_metric) by test`,
fail: true,
errMsg: "unexpected identifier \"test\" in grouping opts, expected \"(\"",
}, {
input: `sum (some_metric) by ()`,
fail: true,
errMsg: "unexpected \")\" in grouping opts, expected identifier",
}, {
input: `sum (some_metric) by test`,
fail: true,
errMsg: "unexpected identifier \"test\" in grouping opts, expected \"(\"",
}, {
input: `sum () by (test)`,
fail: true,
errMsg: "no valid expression found",
}, {
input: "MIN keep_common (some_metric) by (foo)",
fail: true,
errMsg: "could not parse remaining input \"by (foo)\"...",
}, {
input: "MIN by(test) (some_metric) keep_common",
fail: true,
errMsg: "could not parse remaining input \"keep_common\"...",
}, {
input: `sum (some_metric) without (test) keep_common`,
fail: true,
errMsg: "cannot use 'keep_common' with 'without'",
}, {
input: `sum (some_metric) without (test) by (test)`,
fail: true,
errMsg: "could not parse remaining input \"by (test)\"...",
}, {
input: `sum without (test) (some_metric) by (test)`,
fail: true,
errMsg: "could not parse remaining input \"by (test)\"...",
},
// Test function calls.
{
input: "time()",
expected: &Call{
Func: mustGetFunction("time"),
},
}, {
input: `floor(some_metric{foo!="bar"})`,
expected: &Call{
Func: mustGetFunction("floor"),
Args: Expressions{
&VectorSelector{
Name: "some_metric",
LabelMatchers: metric.LabelMatchers{
{Type: metric.NotEqual, Name: "foo", Value: "bar"},
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "some_metric"},
},
},
},
},
}, {
input: "rate(some_metric[5m])",
expected: &Call{
Func: mustGetFunction("rate"),
Args: Expressions{
&MatrixSelector{
Name: "some_metric",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "some_metric"},
},
Range: 5 * time.Minute,
},
},
},
}, {
input: "round(some_metric)",
expected: &Call{
Func: mustGetFunction("round"),
Args: Expressions{
&VectorSelector{
Name: "some_metric",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "some_metric"},
},
},
},
},
}, {
input: "round(some_metric, 5)",
expected: &Call{
Func: mustGetFunction("round"),
Args: Expressions{
&VectorSelector{
Name: "some_metric",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "some_metric"},
},
},
&NumberLiteral{5},
},
},
}, {
input: "floor()",
fail: true,
errMsg: "expected at least 1 argument(s) in call to \"floor\", got 0",
}, {
input: "floor(some_metric, other_metric)",
fail: true,
errMsg: "expected at most 1 argument(s) in call to \"floor\", got 2",
}, {
input: "floor(1)",
fail: true,
errMsg: "expected type vector in call to function \"floor\", got scalar",
}, {
input: "non_existant_function_far_bar()",
fail: true,
errMsg: "unknown function with name \"non_existant_function_far_bar\"",
}, {
input: "rate(some_metric)",
fail: true,
errMsg: "expected type matrix in call to function \"rate\", got vector",
},
// Fuzzing regression tests.
{
input: "-=",
fail: true,
errMsg: `no valid expression found`,
}, {
input: "++-++-+-+-<",
fail: true,
errMsg: `no valid expression found`,
}, {
input: "e-+=/(0)",
fail: true,
errMsg: `no valid expression found`,
}, {
input: "-If",
fail: true,
errMsg: `no valid expression found`,
},
// String quoting and escape sequence interpretation tests.
{
input: `"double-quoted string \" with escaped quote"`,
expected: &StringLiteral{
Val: "double-quoted string \" with escaped quote",
},
}, {
input: `'single-quoted string \' with escaped quote'`,
expected: &StringLiteral{
Val: "single-quoted string ' with escaped quote",
},
}, {
input: "`backtick-quoted string`",
expected: &StringLiteral{
Val: "backtick-quoted string",
},
}, {
input: `"\a\b\f\n\r\t\v\\\" - \xFF\377\u1234\U00010111\U0001011111☺"`,
expected: &StringLiteral{
Val: "\a\b\f\n\r\t\v\\\" - \xFF\377\u1234\U00010111\U0001011111☺",
},
}, {
input: `'\a\b\f\n\r\t\v\\\' - \xFF\377\u1234\U00010111\U0001011111☺'`,
expected: &StringLiteral{
Val: "\a\b\f\n\r\t\v\\' - \xFF\377\u1234\U00010111\U0001011111☺",
},
}, {
input: "`" + `\a\b\f\n\r\t\v\\\"\' - \xFF\377\u1234\U00010111\U0001011111☺` + "`",
expected: &StringLiteral{
Val: `\a\b\f\n\r\t\v\\\"\' - \xFF\377\u1234\U00010111\U0001011111☺`,
},
}, {
input: "`\\``",
fail: true,
errMsg: "could not parse remaining input",
}, {
input: `"\`,
fail: true,
errMsg: "escape sequence not terminated",
}, {
input: `"\c"`,
fail: true,
errMsg: "unknown escape sequence U+0063 'c'",
}, {
input: `"\x."`,
fail: true,
errMsg: "illegal character U+002E '.' in escape sequence",
},
}
func TestParseExpressions(t *testing.T) {
for _, test := range testExpr {
parser := newParser(test.input)
expr, err := parser.parseExpr()
// Unexpected errors are always caused by a bug.
if err == errUnexpected {
t.Fatalf("unexpected error occurred")
}
if !test.fail && err != nil {
t.Errorf("error in input '%s'", test.input)
t.Fatalf("could not parse: %s", err)
}
if test.fail && err != nil {
if !strings.Contains(err.Error(), test.errMsg) {
t.Errorf("unexpected error on input '%s'", test.input)
t.Fatalf("expected error to contain %q but got %q", test.errMsg, err)
}
continue
}
err = parser.typecheck(expr)
if !test.fail && err != nil {
t.Errorf("error on input '%s'", test.input)
t.Fatalf("typecheck failed: %s", err)
}
if test.fail {
if err != nil {
if !strings.Contains(err.Error(), test.errMsg) {
t.Errorf("unexpected error on input '%s'", test.input)
t.Fatalf("expected error to contain %q but got %q", test.errMsg, err)
}
continue
}
t.Errorf("error on input '%s'", test.input)
t.Fatalf("failure expected, but passed with result: %q", expr)
}
if !reflect.DeepEqual(expr, test.expected) {
t.Errorf("error on input '%s'", test.input)
t.Fatalf("no match\n\nexpected:\n%s\ngot: \n%s\n", Tree(test.expected), Tree(expr))
}
}
}
// NaN has no equality. Thus, we need a separate test for it.
func TestNaNExpression(t *testing.T) {
parser := newParser("NaN")
expr, err := parser.parseExpr()
if err != nil {
t.Errorf("error on input 'NaN'")
t.Fatalf("coud not parse: %s", err)
}
nl, ok := expr.(*NumberLiteral)
if !ok {
t.Errorf("error on input 'NaN'")
t.Fatalf("expected number literal but got %T", expr)
}
if !math.IsNaN(float64(nl.Val)) {
t.Errorf("error on input 'NaN'")
t.Fatalf("expected 'NaN' in number literal but got %v", nl.Val)
}
}
var testStatement = []struct {
input string
expected Statements
fail bool
}{
{
// Test a file-like input.
input: `
# A simple test recording rule.
dc:http_request:rate5m = sum(rate(http_request_count[5m])) by (dc)
# A simple test alerting rule.
ALERT GlobalRequestRateLow IF(dc:http_request:rate5m < 10000) FOR 5m
LABELS {
service = "testservice"
# ... more fields here ...
}
ANNOTATIONS {
summary = "Global request rate low",
description = "The global request rate is low"
}
foo = bar{label1="value1"}
ALERT BazAlert IF foo > 10
ANNOTATIONS {
description = "BazAlert",
runbook = "http://my.url",
summary = "Baz",
}
`,
expected: Statements{
&RecordStmt{
Name: "dc:http_request:rate5m",
Expr: &AggregateExpr{
Op: itemSum,
Grouping: model.LabelNames{"dc"},
Expr: &Call{
Func: mustGetFunction("rate"),
Args: Expressions{
&MatrixSelector{
Name: "http_request_count",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "http_request_count"},
},
Range: 5 * time.Minute,
},
},
},
},
Labels: nil,
},
&AlertStmt{
Name: "GlobalRequestRateLow",
Expr: &ParenExpr{&BinaryExpr{
Op: itemLSS,
LHS: &VectorSelector{
Name: "dc:http_request:rate5m",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "dc:http_request:rate5m"},
},
},
RHS: &NumberLiteral{10000},
}},
Labels: model.LabelSet{"service": "testservice"},
Duration: 5 * time.Minute,
Annotations: model.LabelSet{
"summary": "Global request rate low",
"description": "The global request rate is low",
},
},
&RecordStmt{
Name: "foo",
Expr: &VectorSelector{
Name: "bar",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: "label1", Value: "value1"},
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "bar"},
},
},
Labels: nil,
},
&AlertStmt{
Name: "BazAlert",
Expr: &BinaryExpr{
Op: itemGTR,
LHS: &VectorSelector{
Name: "foo",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "foo"},
},
},
RHS: &NumberLiteral{10},
},
Labels: model.LabelSet{},
Annotations: model.LabelSet{
"summary": "Baz",
"description": "BazAlert",
"runbook": "http://my.url",
},
},
},
}, {
input: `foo{x="", a="z"} = bar{a="b", x=~"y"}`,
expected: Statements{
&RecordStmt{
Name: "foo",
Expr: &VectorSelector{
Name: "bar",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: "a", Value: "b"},
mustLabelMatcher(metric.RegexMatch, "x", "y"),
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "bar"},
},
},
Labels: model.LabelSet{"x": "", "a": "z"},
},
},
}, {
input: `ALERT SomeName IF some_metric > 1
LABELS {}
ANNOTATIONS {
summary = "Global request rate low",
description = "The global request rate is low",
}
`,
expected: Statements{
&AlertStmt{
Name: "SomeName",
Expr: &BinaryExpr{
Op: itemGTR,
LHS: &VectorSelector{
Name: "some_metric",
LabelMatchers: metric.LabelMatchers{
{Type: metric.Equal, Name: model.MetricNameLabel, Value: "some_metric"},
},
},
RHS: &NumberLiteral{1},
},
Labels: model.LabelSet{},
Annotations: model.LabelSet{
"summary": "Global request rate low",
"description": "The global request rate is low",
},
},
},
}, {
input: `
# A simple test alerting rule.
ALERT GlobalRequestRateLow IF(dc:http_request:rate5m < 10000) FOR 5
LABELS {
service = "testservice"
# ... more fields here ...
}
ANNOTATIONS {
summary = "Global request rate low"
description = "The global request rate is low"
}
`,
fail: true,
}, {
input: "",
expected: Statements{},
}, {
input: "foo = time()",
expected: Statements{
&RecordStmt{
Name: "foo",
Expr: &Call{Func: mustGetFunction("time")},
Labels: nil,
}},
}, {
input: "foo = 1",
expected: Statements{
&RecordStmt{
Name: "foo",
Expr: &NumberLiteral{1},
Labels: nil,
}},
}, {
input: "foo = bar[5m]",
fail: true,
}, {
input: `foo = "test"`,
fail: true,
}, {
input: `foo = `,
fail: true,
}, {
input: `foo{a!="b"} = bar`,
fail: true,
}, {
input: `foo{a=~"b"} = bar`,
fail: true,
}, {
input: `foo{a!~"b"} = bar`,
fail: true,
},
// Fuzzing regression tests.
{
input: `I=-/`,
fail: true,
},
{
input: `I=3E8/-=`,
fail: true,
},
{
input: `M=-=-0-0`,
fail: true,
},
}
func TestParseStatements(t *testing.T) {
for _, test := range testStatement {
parser := newParser(test.input)
stmts, err := parser.parseStmts()
// Unexpected errors are always caused by a bug.
if err == errUnexpected {
t.Fatalf("unexpected error occurred")
}
if !test.fail && err != nil {
t.Errorf("error in input: \n\n%s\n", test.input)
t.Fatalf("could not parse: %s", err)
}
if test.fail && err != nil {
continue
}
err = parser.typecheck(stmts)
if !test.fail && err != nil {
t.Errorf("error in input: \n\n%s\n", test.input)
t.Fatalf("typecheck failed: %s", err)
}
if test.fail {
if err != nil {
continue
}
t.Errorf("error in input: \n\n%s\n", test.input)
t.Fatalf("failure expected, but passed")
}
if !reflect.DeepEqual(stmts, test.expected) {
t.Errorf("error in input: \n\n%s\n", test.input)
t.Fatalf("no match\n\nexpected:\n%s\ngot: \n%s\n", Tree(test.expected), Tree(stmts))
}
}
}
func mustLabelMatcher(mt metric.MatchType, name model.LabelName, val model.LabelValue) *metric.LabelMatcher {
m, err := metric.NewLabelMatcher(mt, name, val)
if err != nil {
panic(err)
}
return m
}
func mustGetFunction(name string) *Function {
f, ok := getFunction(name)
if !ok {
panic(fmt.Errorf("function %q does not exist", name))
}
return f
}
var testSeries = []struct {
input string
expectedMetric model.Metric
expectedValues []sequenceValue
fail bool
}{
{
input: `{} 1 2 3`,
expectedMetric: model.Metric{},
expectedValues: newSeq(1, 2, 3),
}, {
input: `{a="b"} -1 2 3`,
expectedMetric: model.Metric{
"a": "b",
},
expectedValues: newSeq(-1, 2, 3),
}, {
input: `my_metric 1 2 3`,
expectedMetric: model.Metric{
model.MetricNameLabel: "my_metric",
},
expectedValues: newSeq(1, 2, 3),
}, {
input: `my_metric{} 1 2 3`,
expectedMetric: model.Metric{
model.MetricNameLabel: "my_metric",
},
expectedValues: newSeq(1, 2, 3),
}, {
input: `my_metric{a="b"} 1 2 3`,
expectedMetric: model.Metric{
model.MetricNameLabel: "my_metric",
"a": "b",
},
expectedValues: newSeq(1, 2, 3),
}, {
input: `my_metric{a="b"} 1 2 3-10x4`,
expectedMetric: model.Metric{
model.MetricNameLabel: "my_metric",
"a": "b",
},
expectedValues: newSeq(1, 2, 3, -7, -17, -27, -37),
}, {
input: `my_metric{a="b"} 1 2 3-0x4`,
expectedMetric: model.Metric{
model.MetricNameLabel: "my_metric",
"a": "b",
},
expectedValues: newSeq(1, 2, 3, 3, 3, 3, 3),
}, {
input: `my_metric{a="b"} 1 3 _ 5 _x4`,
expectedMetric: model.Metric{
model.MetricNameLabel: "my_metric",
"a": "b",
},
expectedValues: newSeq(1, 3, none, 5, none, none, none, none),
}, {
input: `my_metric{a="b"} 1 3 _ 5 _a4`,
fail: true,
},
}
// For these tests only, we use the smallest float64 to signal an omitted value.
const none = math.SmallestNonzeroFloat64
func newSeq(vals ...float64) (res []sequenceValue) {
for _, v := range vals {
if v == none {
res = append(res, sequenceValue{omitted: true})
} else {
res = append(res, sequenceValue{value: model.SampleValue(v)})
}
}
return res
}
func TestParseSeries(t *testing.T) {
for _, test := range testSeries {
parser := newParser(test.input)
parser.lex.seriesDesc = true
metric, vals, err := parser.parseSeriesDesc()
// Unexpected errors are always caused by a bug.
if err == errUnexpected {
t.Fatalf("unexpected error occurred")
}
if !test.fail && err != nil {
t.Errorf("error in input: \n\n%s\n", test.input)
t.Fatalf("could not parse: %s", err)
}
if test.fail && err != nil {
continue
}
if test.fail {
if err != nil {
continue
}
t.Errorf("error in input: \n\n%s\n", test.input)
t.Fatalf("failure expected, but passed")
}
if !reflect.DeepEqual(vals, test.expectedValues) || !reflect.DeepEqual(metric, test.expectedMetric) {
t.Errorf("error in input: \n\n%s\n", test.input)
t.Fatalf("no match\n\nexpected:\n%s %s\ngot: \n%s %s\n", test.expectedMetric, test.expectedValues, metric, vals)
}
}
}
func TestRecoverParserRuntime(t *testing.T) {
var p *parser
var err error
defer p.recover(&err)
// Cause a runtime panic.
var a []int
a[123] = 1
if err != errUnexpected {
t.Fatalf("wrong error message: %q, expected %q", err, errUnexpected)
}
}
func TestRecoverParserError(t *testing.T) {
var p *parser
var err error
e := fmt.Errorf("custom error")
defer func() {
if err.Error() != e.Error() {
t.Fatalf("wrong error message: %q, expected %q", err, e)
}
}()
defer p.recover(&err)
panic(e)
}
|
{
"content_hash": "9361de55bd33935bc879a4ff9ba7dc68",
"timestamp": "",
"source": "github",
"line_count": 1591,
"max_line_length": 322,
"avg_line_length": 25.92583280955374,
"alnum_prop": 0.6046596198603569,
"repo_name": "eliothedeman/prometheus",
"id": "b438d2ec87825a2d31befaed19a76a63a1d9eeb4",
"size": "41853",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "promql/parse_test.go",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "5971"
},
{
"name": "Go",
"bytes": "976319"
},
{
"name": "HTML",
"bytes": "68782"
},
{
"name": "JavaScript",
"bytes": "41159"
},
{
"name": "Makefile",
"bytes": "1567"
},
{
"name": "Shell",
"bytes": "4265"
}
],
"symlink_target": ""
}
|
/*******************************************************************************
*
* Filename:
* ---------
* mt6583.c
*
* Project:
* --------
* MT6583 Audio Driver Kernel Function
*
* Description:
* ------------
* Audio register
*
* Author:
* -------
* Chipeng Chang
*
*------------------------------------------------------------------------------
*
*
*******************************************************************************/
/*****************************************************************************
* C O M P I L E R F L A G S
*****************************************************************************/
/*****************************************************************************
* E X T E R N A L R E F E R E N C E S
*****************************************************************************/
#include <linux/dma-mapping.h>
#include "AudDrv_Common.h"
#include "AudDrv_Def.h"
#include "AudDrv_Afe.h"
#include "AudDrv_Ana.h"
#include "AudDrv_Clk.h"
#include "mt_soc_afe_control.h"
#include "mt_soc_codec_63xx.h"
#include "mt_soc_pcm_common.h"
#include <mach/upmu_common.h>
#include <mach/upmu_sw.h>
#include <mach/upmu_hw.h>
#include <mach/mt_pmic_wrap.h>
#include <mach/mt_gpio.h>
#include <linux/time.h>
#include <mach/upmu_common.h>
#include <cust_battery_meter.h>
#include <mach/mt_clkmgr.h>
#include <mach/mt_pm_ldo.h>
#include <mach/mt_gpio.h>
#include <cust_gpio_usage.h>
/*
* function implementation
*/
static int mtk_afe_routing_probe(struct platform_device *pdev);
static int mtk_routing_pcm_close(struct snd_pcm_substream *substream);
static int mtk_asoc_routing_pcm_new(struct snd_soc_pcm_runtime *rtd);
static int mtk_afe_routing_platform_probe(struct snd_soc_platform *platform);
static int mDac_Sinegen = 27;
static const char * const DAC_DL_SIDEGEN[] = {
"I0I1", "I2", "I3I4", "I5I6", "I7I8", "I9", "I10I11", "I12I13", "I14", "I15I16", "I17I18",
"I19I20", "I21I22", "O0O1", "O2", "O3O4", "O5O6", "O7O8", "O9O10", "O11", "O12", "O13O14",
"O15O16", "O17O18", "O19O20", "O21O22", "O23O24", "OFF", "O3", "O4"
};
static int mDac_SampleRate = 8;
static const char * const DAC_DL_SIDEGEN_SAMEPLRATE[] = {
"8K", "11K", "12K", "16K", "22K", "24K", "32K", "44K", "48K" };
static int mDac_Sidegen_Amplitude = 6;
static const char * const DAC_DL_SIDEGEN_AMPLITUE[] = {
"1/128", "1/64", "1/32", "1/16", "1/8", "1/4", "1/2", "1" };
static bool mEnableSidetone;
static const char const *ENABLESIDETONE[] = {"Off", "On"};
static int mAudio_Mode;
static const char * const ANDROID_AUDIO_MODE[] = {
"Normal_Mode", "Ringtone_Mode", "Incall_Mode", "Communication_Mode", "Incall2_Mode",
"Incall_External_Mode" };
static const char const *InterModemPcm_ASRC_Switch[] = {"Off", "On"};
static const char const *Audio_Debug_Setting[] = {"Off", "On"};
static const char const *Audio_IPOH_State[] = {"Off", "On"};
static const char const *Audio_I2S1_Setting[] = {"Off", "On"};
static bool AudDrvSuspendStatus;
/* static bool mModemPcm_ASRC_on = false; */
static bool AudioI2S1Setting;
static bool mHplCalibrated;
static int mHplOffset;
static bool mHprCalibrated;
static int mHprOffset;
static bool AudDrvSuspend_ipoh_Status;
#define AUXADC_HP_L_CHANNEL 15
#define AUXADC_HP_R_CHANNEL 14
int Get_Audio_Mode(void)
{
return mAudio_Mode;
}
static int Audio_SideGen_Get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
{
pr_warn("Audio_AmpR_Get = %d\n", mDac_Sinegen);
ucontrol->value.integer.value[0] = mDac_Sinegen;
return 0;
}
static int Audio_SideGen_Set(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
{
int index = 0;
pr_warn("%s()\n", __func__);
if (ucontrol->value.enumerated.item[0] > ARRAY_SIZE(DAC_DL_SIDEGEN)) {
pr_err("return -EINVAL\n");
return -EINVAL;
}
index = ucontrol->value.integer.value[0];
switch (index) {
case 0:
EnableSideGenHw(Soc_Aud_InterConnectionInput_I00,
Soc_Aud_MemIF_Direction_DIRECTION_INPUT, true);
break;
case 1:
EnableSideGenHw(Soc_Aud_InterConnectionInput_I02,
Soc_Aud_MemIF_Direction_DIRECTION_INPUT, true);
break;
case 2:
EnableSideGenHw(Soc_Aud_InterConnectionInput_I03,
Soc_Aud_MemIF_Direction_DIRECTION_INPUT, true);
break;
case 3:
EnableSideGenHw(Soc_Aud_InterConnectionInput_I05,
Soc_Aud_MemIF_Direction_DIRECTION_INPUT, true);
break;
case 4:
EnableSideGenHw(Soc_Aud_InterConnectionInput_I07,
Soc_Aud_MemIF_Direction_DIRECTION_INPUT, true);
break;
case 5:
EnableSideGenHw(Soc_Aud_InterConnectionInput_I09,
Soc_Aud_MemIF_Direction_DIRECTION_INPUT, true);
break;
case 6:
EnableSideGenHw(Soc_Aud_InterConnectionInput_I11,
Soc_Aud_MemIF_Direction_DIRECTION_INPUT, true);
break;
case 7:
EnableSideGenHw(Soc_Aud_InterConnectionInput_I12,
Soc_Aud_MemIF_Direction_DIRECTION_INPUT, true);
break;
case 8:
EnableSideGenHw(Soc_Aud_InterConnectionInput_I14,
Soc_Aud_MemIF_Direction_DIRECTION_INPUT, true);
break;
case 9:
EnableSideGenHw(Soc_Aud_InterConnectionInput_I15,
Soc_Aud_MemIF_Direction_DIRECTION_INPUT, true);
break;
case 10:
EnableSideGenHw(Soc_Aud_InterConnectionInput_I17,
Soc_Aud_MemIF_Direction_DIRECTION_INPUT, true);
break;
case 11:
EnableSideGenHw(Soc_Aud_InterConnectionInput_I19,
Soc_Aud_MemIF_Direction_DIRECTION_INPUT, true);
break;
case 12:
EnableSideGenHw(Soc_Aud_InterConnectionInput_I21,
Soc_Aud_MemIF_Direction_DIRECTION_INPUT, true);
break;
case 13:
EnableSideGenHw(Soc_Aud_InterConnectionOutput_O01,
Soc_Aud_MemIF_Direction_DIRECTION_OUTPUT, true);
break;
case 14:
EnableSideGenHw(Soc_Aud_InterConnectionOutput_O02,
Soc_Aud_MemIF_Direction_DIRECTION_OUTPUT, true);
break;
case 15:
EnableSideGenHw(Soc_Aud_InterConnectionOutput_O03,
Soc_Aud_MemIF_Direction_DIRECTION_OUTPUT, true);
break;
case 16:
EnableSideGenHw(Soc_Aud_InterConnectionOutput_O05,
Soc_Aud_MemIF_Direction_DIRECTION_OUTPUT, true);
break;
case 17:
EnableSideGenHw(Soc_Aud_InterConnectionOutput_O07,
Soc_Aud_MemIF_Direction_DIRECTION_OUTPUT, true);
break;
case 18:
EnableSideGenHw(Soc_Aud_InterConnectionOutput_O09,
Soc_Aud_MemIF_Direction_DIRECTION_OUTPUT, true);
break;
case 19:
EnableSideGenHw(Soc_Aud_InterConnectionOutput_O11,
Soc_Aud_MemIF_Direction_DIRECTION_OUTPUT, true);
break;
case 20:
EnableSideGenHw(Soc_Aud_InterConnectionOutput_O12,
Soc_Aud_MemIF_Direction_DIRECTION_OUTPUT, true);
break;
case 21:
EnableSideGenHw(Soc_Aud_InterConnectionOutput_O13,
Soc_Aud_MemIF_Direction_DIRECTION_OUTPUT, true);
break;
case 22:
EnableSideGenHw(Soc_Aud_InterConnectionOutput_O15,
Soc_Aud_MemIF_Direction_DIRECTION_OUTPUT, true);
break;
case 23:
EnableSideGenHw(Soc_Aud_InterConnectionOutput_O17,
Soc_Aud_MemIF_Direction_DIRECTION_OUTPUT, true);
break;
case 24:
EnableSideGenHw(Soc_Aud_InterConnectionOutput_O19,
Soc_Aud_MemIF_Direction_DIRECTION_OUTPUT, true);
break;
case 25:
EnableSideGenHw(Soc_Aud_InterConnectionOutput_O21,
Soc_Aud_MemIF_Direction_DIRECTION_OUTPUT, true);
break;
case 26:
EnableSideGenHw(Soc_Aud_InterConnectionOutput_O23,
Soc_Aud_MemIF_Direction_DIRECTION_OUTPUT, true);
break;
case 27:
EnableSideGenHw(Soc_Aud_InterConnectionOutput_O11,
Soc_Aud_MemIF_Direction_DIRECTION_OUTPUT, false);
EnableSideGenHw(Soc_Aud_InterConnectionInput_I00,
Soc_Aud_MemIF_Direction_DIRECTION_INPUT, false);
break;
case 28:
Afe_Set_Reg(AFE_SGEN_CON0, 0x966c26c2, 0xffffffff); /* o3o4 but mute o4 */
break;
case 29:
Afe_Set_Reg(AFE_SGEN_CON0, 0x956c26c2, 0xffffffff); /* o3o4 but mute o3 */
break;
default:
EnableSideGenHw(Soc_Aud_InterConnectionOutput_O11,
Soc_Aud_MemIF_Direction_DIRECTION_OUTPUT, false);
EnableSideGenHw(Soc_Aud_InterConnectionInput_I00,
Soc_Aud_MemIF_Direction_DIRECTION_INPUT, false);
break;
}
mDac_Sinegen = index;
return 0;
}
static int Audio_SideGen_SampleRate_Get(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{
pr_warn("%s\n", __func__);
ucontrol->value.integer.value[0] = mDac_SampleRate;
return 0;
}
static int Audio_SideGen_SampleRate_Set(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{
int index = 0;
pr_warn("%s()\n", __func__);
if (ucontrol->value.enumerated.item[0] > ARRAY_SIZE(DAC_DL_SIDEGEN_SAMEPLRATE)) {
pr_err("return -EINVAL\n");
return -EINVAL;
}
index = ucontrol->value.integer.value[0];
switch (index) {
case 0:
SetSideGenSampleRate(8000);
break;
case 1:
SetSideGenSampleRate(11025);
break;
case 2:
SetSideGenSampleRate(12000);
break;
case 3:
SetSideGenSampleRate(16000);
break;
case 4:
SetSideGenSampleRate(22050);
break;
case 5:
SetSideGenSampleRate(24000);
break;
case 6:
SetSideGenSampleRate(32000);
break;
case 7:
SetSideGenSampleRate(44100);
break;
case 8:
SetSideGenSampleRate(48000);
break;
default:
SetSideGenSampleRate(32000);
break;
}
mDac_SampleRate = index;
return 0;
}
static int Audio_SideGen_Amplitude_Get(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{
pr_warn("Audio_AmpR_Get = %d\n", mDac_Sidegen_Amplitude);
return 0;
}
static int Audio_SideGen_Amplitude_Set(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{
int index = 0;
pr_warn("%s()\n", __func__);
if (ucontrol->value.enumerated.item[0] > ARRAY_SIZE(DAC_DL_SIDEGEN_AMPLITUE)) {
pr_err("return -EINVAL\n");
return -EINVAL;
}
index = ucontrol->value.integer.value[0];
mDac_Sidegen_Amplitude = index;
return 0;
}
static int Audio_SideTone_Get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
{
pr_warn("Audio_SideTone_Get = %d\n", mEnableSidetone);
ucontrol->value.integer.value[0] = mEnableSidetone;
return 0;
}
static int Audio_SideTone_Set(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
{
int index = 0;
pr_warn("%s()\n", __func__);
if (ucontrol->value.enumerated.item[0] > ARRAY_SIZE(ENABLESIDETONE)) {
pr_err("return -EINVAL\n");
return -EINVAL;
}
index = ucontrol->value.integer.value[0];
if (mEnableSidetone != index) {
mEnableSidetone = index;
EnableSideToneFilter(mEnableSidetone);
}
return 0;
}
#if 0 /* not used */
static int Audio_ModemPcm_ASRC_Get(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{
pr_warn("%s(), mModemPcm_ASRC_on=%d\n", __func__, mModemPcm_ASRC_on);
ucontrol->value.integer.value[0] = mModemPcm_ASRC_on;
return 0;
}
#endif
static int AudioDebug_Setting_Set(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{
pr_warn("%s()\n", __func__);
if (ucontrol->value.enumerated.item[0] > ARRAY_SIZE(Audio_Debug_Setting)) {
pr_err("return -EINVAL\n");
return -EINVAL;
}
EnableSideGenHw(Soc_Aud_InterConnectionOutput_O03,
Soc_Aud_MemIF_Direction_DIRECTION_OUTPUT, true);
msleep(5 * 1000);
EnableSideGenHw(Soc_Aud_InterConnectionOutput_O03,
Soc_Aud_MemIF_Direction_DIRECTION_OUTPUT, false);
Ana_Log_Print();
Afe_Log_Print();
return 0;
}
#ifdef CONFIG_OF
static unsigned int pin_i2s1clk, pin_i2s1dat, pin_i2s1mclk, pin_i2s1ws;
static unsigned int pin_mode_i2s1clk, pin_mode_i2s1dat, pin_mode_i2s1mclk, pin_mode_i2s1ws;
#endif
void Auddrv_I2S1GpioSet(void)
{
#ifdef CONFIG_MTK_EXT_DAC
/* I2S1 */
#ifdef CONFIG_OF
int ret;
ret = GetGPIO_Info(6, &pin_i2s1clk, &pin_mode_i2s1clk);
if (ret < 0) {
pr_err("Auddrv_I2S1GpioSet GetGPIO_Info FAIL1!!!\n");
return;
}
ret = GetGPIO_Info(7, &pin_i2s1dat, &pin_mode_i2s1dat);
if (ret < 0) {
pr_err("Auddrv_I2S1GpioSet GetGPIO_Info FAIL2!!!\n");
return;
}
ret = GetGPIO_Info(8, &pin_i2s1mclk, &pin_mode_i2s1mclk);
if (ret < 0) {
pr_err("Auddrv_I2S1GpioSet GetGPIO_Info FAIL3!!!\n");
return;
}
ret = GetGPIO_Info(9, &pin_i2s1ws, &pin_mode_i2s1ws);
if (ret < 0) {
pr_err("Auddrv_I2S1GpioSet GetGPIO_Info FAIL4!!!\n");
return;
}
mt_set_gpio_mode(pin_i2s1clk, GPIO_MODE_00);
mt_set_gpio_mode(pin_i2s1dat, GPIO_MODE_00);
mt_set_gpio_mode(pin_i2s1mclk, GPIO_MODE_00);
mt_set_gpio_mode(pin_i2s1ws, GPIO_MODE_00);
usleep_range(1*1000, 3*1000);
mt_set_gpio_mode(pin_i2s1clk, GPIO_MODE_01);
mt_set_gpio_out(pin_i2s1clk, GPIO_OUT_ONE);
mt_set_gpio_mode(pin_i2s1dat, GPIO_MODE_01);
mt_set_gpio_out(pin_i2s1dat, GPIO_OUT_ONE);
mt_set_gpio_mode(pin_i2s1mclk, GPIO_MODE_01);
mt_set_gpio_out(pin_i2s1mclk, GPIO_OUT_ONE);
mt_set_gpio_mode(pin_i2s1ws, GPIO_MODE_01);
mt_set_gpio_out(pin_i2s1ws, GPIO_OUT_ONE);
#else
mt_set_gpio_mode(GPIO_I2S1_CK_PIN, GPIO_MODE_00);
mt_set_gpio_mode(GPIO_I2S1_DAT_PIN, GPIO_MODE_00);
mt_set_gpio_mode(GPIO_I2S1_MCLK_PIN, GPIO_MODE_00);
mt_set_gpio_mode(GPIO_I2S1_WS_PIN, GPIO_MODE_00);
usleep_range(1*1000, 3*1000);
mt_set_gpio_mode(GPIO_I2S1_CK_PIN, GPIO_MODE_01);
mt_set_gpio_out(GPIO_I2S1_CK_PIN, GPIO_OUT_ONE);
mt_set_gpio_mode(GPIO_I2S1_DAT_PIN, GPIO_MODE_01);
mt_set_gpio_out(GPIO_I2S1_DAT_PIN, GPIO_OUT_ONE);
mt_set_gpio_mode(GPIO_I2S1_MCLK_PIN, GPIO_MODE_01);
mt_set_gpio_out(GPIO_I2S1_MCLK_PIN, GPIO_OUT_ONE);
mt_set_gpio_mode(GPIO_I2S1_WS_PIN, GPIO_MODE_01);
mt_set_gpio_out(GPIO_I2S1_WS_PIN, GPIO_OUT_ONE);
#endif
#endif
}
void Auddrv_I2S1GpioReset(void)
{
#ifdef CONFIG_MTK_EXT_DAC
#ifdef CONFIG_OF
int ret;
ret = GetGPIO_Info(6, &pin_i2s1clk, &pin_mode_i2s1clk);
if (ret < 0) {
pr_err("Auddrv_I2S1GpioReset GetGPIO_Info FAIL1!!!\n");
return;
}
ret = GetGPIO_Info(7, &pin_i2s1dat, &pin_mode_i2s1dat);
if (ret < 0) {
pr_err("Auddrv_I2S1GpioReset GetGPIO_Info FAIL2!!!\n");
return;
}
ret = GetGPIO_Info(8, &pin_i2s1mclk, &pin_mode_i2s1mclk);
if (ret < 0) {
pr_err("Auddrv_I2S1GpioReset GetGPIO_Info FAIL3!!!\n");
return;
}
ret = GetGPIO_Info(9, &pin_i2s1ws, &pin_mode_i2s1ws);
if (ret < 0) {
pr_err("Auddrv_I2S1GpioReset GetGPIO_Info FAIL4!!!\n");
return;
}
mt_set_gpio_mode(pin_i2s1clk, GPIO_MODE_02);
mt_set_gpio_mode(pin_i2s1dat, GPIO_MODE_02);
mt_set_gpio_mode(pin_i2s1mclk, GPIO_MODE_02);
mt_set_gpio_mode(pin_i2s1ws, GPIO_MODE_02);
usleep_range(1*1000, 3*1000);
#else
mt_set_gpio_mode(GPIO_I2S1_CK_PIN, GPIO_MODE_02);
mt_set_gpio_mode(GPIO_I2S1_DAT_PIN, GPIO_MODE_02);
mt_set_gpio_mode(GPIO_I2S1_MCLK_PIN, GPIO_MODE_02);
mt_set_gpio_mode(GPIO_I2S1_WS_PIN, GPIO_MODE_02);
usleep_range(1*1000, 3*1000);
#endif
#endif
}
static int AudioDebug_Setting_Get(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{
pr_warn("%s()\n", __func__);
return 0;
}
static int AudioI2S1_Setting_Set(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
{
pr_warn("%s()\n", __func__);
if (ucontrol->value.enumerated.item[0] > ARRAY_SIZE(Audio_I2S1_Setting)) {
pr_err("return -EINVAL\n");
return -EINVAL;
}
AudioI2S1Setting = ucontrol->value.enumerated.item[0];
if (AudioI2S1Setting == true)
Auddrv_I2S1GpioSet();
else
Auddrv_I2S1GpioReset();
return 0;
}
static int AudioI2S1_Setting_Get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
{
pr_warn("%s()\n", __func__);
ucontrol->value.enumerated.item[0] = AudioI2S1Setting;
return 0;
}
#if 0
static int Audio_ModemPcm_ASRC_Set(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{
pr_warn("+%s()\n", __func__);
if (ucontrol->value.enumerated.item[0] > ARRAY_SIZE(InterModemPcm_ASRC_Switch)) {
pr_warn("return -EINVAL\n");
return -EINVAL;
}
mModemPcm_ASRC_on = (bool) ucontrol->value.integer.value[0];
Audio_ModemPcm2_ASRC_Set(mModemPcm_ASRC_on);
pr_warn("-%s(), mModemPcm_ASRC_on=%d\n", __func__, mModemPcm_ASRC_on);
return 0;
}
#endif
static int Audio_Ipoh_Setting_Get(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{
pr_warn("%s()\n", __func__);
ucontrol->value.integer.value[0] = AudDrvSuspend_ipoh_Status;
return 0;
}
static int Audio_Ipoh_Setting_Set(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{
pr_warn("+%s()\n", __func__);
if (ucontrol->value.enumerated.item[0] > ARRAY_SIZE(Audio_IPOH_State)) {
pr_err("return -EINVAL\n");
return -EINVAL;
}
AudDrvSuspend_ipoh_Status = ucontrol->value.integer.value[0];
return 0;
}
static int Audio_Mode_Get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
{
pr_warn("Audio_SideTone_Get = %d\n", mAudio_Mode);
ucontrol->value.integer.value[0] = mAudio_Mode;
return 0;
}
static int Audio_Mode_Set(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
{
pr_warn("%s()\n", __func__);
if (ucontrol->value.enumerated.item[0] > ARRAY_SIZE(ANDROID_AUDIO_MODE)) {
pr_err("return -EINVAL\n");
return -EINVAL;
}
mAudio_Mode = ucontrol->value.integer.value[0];
return 0;
}
static int Audio_Irqcnt1_Get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
{
pr_warn("Audio_Irqcnt1_Get\n");
AudDrv_Clk_On();
ucontrol->value.integer.value[0] = Afe_Get_Reg(AFE_IRQ_MCU_CNT1);
AudDrv_Clk_Off();
return 0;
}
static int Audio_Irqcnt1_Set(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
{
uint32 irq1_cnt = ucontrol->value.integer.value[0];
pr_warn("%s()\n", __func__);
AudDrv_Clk_On();
Afe_Set_Reg(AFE_IRQ_MCU_CNT1, irq1_cnt, 0xffffffff);
AudDrv_Clk_Off();
return 0;
}
static int Audio_Irqcnt2_Get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
{
pr_warn("Audio_Irqcnt2_Get\n");
AudDrv_Clk_On();
ucontrol->value.integer.value[0] = Afe_Get_Reg(AFE_IRQ_MCU_CNT2);
AudDrv_Clk_Off();
return 0;
}
static int Audio_Irqcnt2_Set(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
{
uint32 irq1_cnt = ucontrol->value.integer.value[0];
pr_warn("%s()\n", __func__);
AudDrv_Clk_On();
Afe_Set_Reg(AFE_IRQ_MCU_CNT2, irq1_cnt, 0xffffffff);
AudDrv_Clk_Off();
return 0;
}
/* static struct snd_dma_buffer *Dl1_Playback_dma_buf = NULL; */
static void GetAudioTrimOffset(int channels)
{
int Buffer_on_value = 0, Buffer_offl_value = 0, Buffer_offr_value = 0;
const int off_counter = 20, on_counter = 20, Const_DC_OFFSET = 0; /* 2048; */
pr_warn("%s channels = %d\n", __func__, channels);
/* open headphone and digital part */
AudDrv_Clk_On();
AudDrv_Emi_Clk_On();
OpenAfeDigitaldl1(true);
setHpDcCalibration(AUDIO_ANALOG_DEVICE_OUT_HEADSETR, 0);
setHpDcCalibration(AUDIO_ANALOG_DEVICE_OUT_HEADSETL, 0);
/* get DC value when off */
Buffer_offl_value = PMIC_IMM_GetOneChannelValue(AUXADC_HP_L_CHANNEL, off_counter, 0);
pr_warn("%s, Buffer_offl_value = %d\n", __func__, Buffer_offl_value);
Buffer_offr_value = PMIC_IMM_GetOneChannelValue(AUXADC_HP_R_CHANNEL, off_counter, 0);
pr_warn("%s, Buffer_offr_value = %d\n", __func__, Buffer_offr_value);
OpenAnalogHeadphone(true);
setHpDcCalibrationGain(AUDIO_ANALOG_DEVICE_OUT_HEADSETR, 10); /* -1dB, (9-(-1) = 10) */
setHpDcCalibrationGain(AUDIO_ANALOG_DEVICE_OUT_HEADSETL, 10);
usleep_range(10*1000, 15*1000);
Buffer_on_value = PMIC_IMM_GetOneChannelValue(AUXADC_HP_L_CHANNEL, on_counter, 0);
mHplOffset = Buffer_on_value - Buffer_offl_value + Const_DC_OFFSET;
pr_warn("%s, Buffer_on_value = %d Buffer_offl_value = %d mHplOffset = %d\n",
__func__, Buffer_on_value, Buffer_offl_value, mHplOffset);
Buffer_on_value = PMIC_IMM_GetOneChannelValue(AUXADC_HP_R_CHANNEL, on_counter, 0);
mHprOffset = Buffer_on_value - Buffer_offr_value + Const_DC_OFFSET;
pr_warn("%s, Buffer_on_value = %d Buffer_offr_value = %d mHprOffset = %d\n",
__func__, Buffer_on_value, Buffer_offr_value, mHprOffset);
OpenAnalogHeadphone(false);
OpenAfeDigitaldl1(false);
AudDrv_Emi_Clk_Off();
AudDrv_Clk_Off();
}
static int Audio_Hpl_Offset_Get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
{
#ifndef EFUSE_HP_TRIM
pr_warn("%s\n", __func__);
AudDrv_Clk_On();
if (mHplCalibrated == false) {
GetAudioTrimOffset(AUDIO_OFFSET_TRIM_MUX_HPL);
SetHprTrimOffset(mHprOffset);
SetHplTrimOffset(mHplOffset);
mHplCalibrated = true;
mHprCalibrated = true;
}
ucontrol->value.integer.value[0] = mHplOffset;
AudDrv_Clk_Off();
#else
pr_warn("%s EFUSE_HP_TRIM\n", __func__);
ucontrol->value.integer.value[0] = 2048;
#endif
return 0;
}
static int Audio_Hpl_Offset_Set(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
{
#ifndef EFUSE_HP_TRIM
pr_warn("%s()\n", __func__);
mHplOffset = ucontrol->value.integer.value[0];
SetHplTrimOffset(mHplOffset);
#else
mHplOffset = ucontrol->value.integer.value[0];
#endif
return 0;
}
static int Audio_Hpr_Offset_Get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
{
#ifndef EFUSE_HP_TRIM
pr_warn("%s\n", __func__);
AudDrv_Clk_On();
if (mHprCalibrated == false) {
GetAudioTrimOffset(AUDIO_OFFSET_TRIM_MUX_HPR);
SetHprTrimOffset(mHprOffset);
SetHplTrimOffset(mHplOffset);
mHplCalibrated = true;
mHprCalibrated = true;
}
ucontrol->value.integer.value[0] = mHprOffset;
AudDrv_Clk_Off();
#else
ucontrol->value.integer.value[0] = 2048;
#endif
return 0;
}
static int Audio_Hpr_Offset_Set(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
{
#ifndef EFUSE_HP_TRIM
pr_warn("%s()\n", __func__);
mHprOffset = ucontrol->value.integer.value[0];
SetHprTrimOffset(mHprOffset);
#else
mHprOffset = ucontrol->value.integer.value[0];
#endif
return 0;
}
static const struct soc_enum Audio_Routing_Enum[] = {
SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(DAC_DL_SIDEGEN), DAC_DL_SIDEGEN),
SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(DAC_DL_SIDEGEN_SAMEPLRATE), DAC_DL_SIDEGEN_SAMEPLRATE),
SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(DAC_DL_SIDEGEN_AMPLITUE), DAC_DL_SIDEGEN_AMPLITUE),
SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ENABLESIDETONE), ENABLESIDETONE),
SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ANDROID_AUDIO_MODE), ANDROID_AUDIO_MODE),
SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(InterModemPcm_ASRC_Switch), InterModemPcm_ASRC_Switch),
SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(Audio_Debug_Setting), Audio_Debug_Setting),
SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(Audio_IPOH_State), Audio_IPOH_State),
SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(Audio_I2S1_Setting), Audio_I2S1_Setting),
};
static const struct snd_kcontrol_new Audio_snd_routing_controls[] = {
SOC_ENUM_EXT("Audio_SideGen_Switch", Audio_Routing_Enum[0], Audio_SideGen_Get,
Audio_SideGen_Set),
SOC_ENUM_EXT("Audio_SideGen_SampleRate", Audio_Routing_Enum[1],
Audio_SideGen_SampleRate_Get, Audio_SideGen_SampleRate_Set),
SOC_ENUM_EXT("Audio_SideGen_Amplitude", Audio_Routing_Enum[2], Audio_SideGen_Amplitude_Get,
Audio_SideGen_Amplitude_Set),
SOC_ENUM_EXT("Audio_Sidetone_Switch", Audio_Routing_Enum[3], Audio_SideTone_Get,
Audio_SideTone_Set),
SOC_ENUM_EXT("Audio_Mode_Switch", Audio_Routing_Enum[4], Audio_Mode_Get, Audio_Mode_Set),
SOC_SINGLE_EXT("Audio IRQ1 CNT", SND_SOC_NOPM, 0, 65536, 0, Audio_Irqcnt1_Get,
Audio_Irqcnt1_Set),
SOC_SINGLE_EXT("Audio IRQ2 CNT", SND_SOC_NOPM, 0, 65536, 0, Audio_Irqcnt2_Get,
Audio_Irqcnt2_Set),
SOC_SINGLE_EXT("Audio HPL Offset", SND_SOC_NOPM, 0, 0x20000, 0, Audio_Hpl_Offset_Get,
Audio_Hpl_Offset_Set),
SOC_SINGLE_EXT("Audio HPR Offset", SND_SOC_NOPM, 0, 0x20000, 0, Audio_Hpr_Offset_Get,
Audio_Hpr_Offset_Set),
/* SOC_ENUM_EXT("InterModemPcm_ASRC_Switch", Audio_Routing_Enum[5], Audio_ModemPcm_ASRC_Get,
Audio_ModemPcm_ASRC_Set), */
SOC_ENUM_EXT("Audio_Debug_Setting", Audio_Routing_Enum[6], AudioDebug_Setting_Get,
AudioDebug_Setting_Set),
SOC_ENUM_EXT("Audio_Ipoh_Setting", Audio_Routing_Enum[7], Audio_Ipoh_Setting_Get,
Audio_Ipoh_Setting_Set),
SOC_ENUM_EXT("Audio_I2S1_Setting", Audio_Routing_Enum[8], AudioI2S1_Setting_Get,
AudioI2S1_Setting_Set),
};
void EnAble_Anc_Path(int state)
{
pr_warn("%s not supported!!!\n ", __func__);
}
static int m_Anc_State = AUDIO_ANC_ON;
static int Afe_Anc_Get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
{
pr_warn("%s()\n", __func__);
ucontrol->value.integer.value[0] = m_Anc_State;
return 0;
}
static int Afe_Anc_Set(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
{
pr_warn("%s()\n", __func__);
EnAble_Anc_Path(ucontrol->value.integer.value[0]);
m_Anc_State = ucontrol->value.integer.value[0];
return 0;
}
/* here start uplink power function */
static const char * const Afe_Anc_function[] = { "ANCON", "ANCOFF" };
static const struct soc_enum Afe_Anc_Enum[] = {
SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(Afe_Anc_function), Afe_Anc_function),
};
static const struct snd_kcontrol_new Afe_Anc_controls[] = {
SOC_ENUM_EXT("Pmic_Anc_Switch", Afe_Anc_Enum[0], Afe_Anc_Get, Afe_Anc_Set),
};
static struct snd_soc_pcm_runtime *pruntimepcm;
static struct snd_pcm_hw_constraint_list constraints_sample_rates = {
.count = ARRAY_SIZE(soc_high_supported_sample_rates),
.list = soc_high_supported_sample_rates,
.mask = 0,
};
static int mtk_routing_pcm_open(struct snd_pcm_substream *substream)
{
struct snd_pcm_runtime *runtime = substream->runtime;
int err = 0;
int ret = 0;
pr_warn("mtk_routing_pcm_open\n");
ret = snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
&constraints_sample_rates);
if (ret < 0)
pr_warn("snd_pcm_hw_constraint_integer failed\n");
/* print for hw pcm information */
pr_warn("mtk_routing_pcm_open runtime rate = %d channels = %d\n", runtime->rate,
runtime->channels);
if (substream->pcm->device & 1) {
runtime->hw.info &= ~SNDRV_PCM_INFO_INTERLEAVED;
runtime->hw.info |= SNDRV_PCM_INFO_NONINTERLEAVED;
}
if (substream->pcm->device & 2)
runtime->hw.info &= ~(SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID);
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
pr_warn("SNDRV_PCM_STREAM_PLAYBACK mtkalsa_playback_constraints\n");
if (err < 0) {
pr_warn("mtk_routing_pcm_close\n");
mtk_routing_pcm_close(substream);
return err;
}
pr_warn("mtk_routing_pcm_open return\n");
return 0;
}
static int mtk_routing_pcm_close(struct snd_pcm_substream *substream)
{
return 0;
}
static int mtk_routing_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
{
pr_warn("%s cmd = %d\n", __func__, cmd);
switch (cmd) {
case SNDRV_PCM_TRIGGER_START:
case SNDRV_PCM_TRIGGER_RESUME:
case SNDRV_PCM_TRIGGER_STOP:
case SNDRV_PCM_TRIGGER_SUSPEND:
break;
}
return -EINVAL;
}
static int mtk_routing_pcm_copy(struct snd_pcm_substream *substream,
int channel, snd_pcm_uframes_t pos,
void __user *dst, snd_pcm_uframes_t count)
{
count = count << 2;
return 0;
}
static int mtk_routing_pcm_silence(struct snd_pcm_substream *substream,
int channel, snd_pcm_uframes_t pos, snd_pcm_uframes_t count)
{
pr_warn("mtk_routing_pcm_silence\n");
return 0; /* do nothing */
}
static void *dummy_page[2];
static struct page *mtk_routing_pcm_page(struct snd_pcm_substream *substream, unsigned long offset)
{
pr_warn("dummy_pcm_page\n");
return virt_to_page(dummy_page[substream->stream]); /* the same page */
}
static int mtk_routing_pcm_prepare(struct snd_pcm_substream *substream)
{
pr_warn("mtk_alsa_prepare\n");
return 0;
}
static int mtk_routing_pcm_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *hw_params)
{
int ret = 0;
PRINTK_AUDDRV("mtk_routing_pcm_hw_params\n");
return ret;
}
static int mtk_routing_pcm_hw_free(struct snd_pcm_substream *substream)
{
PRINTK_AUDDRV("mtk_routing_pcm_hw_free\n");
return snd_pcm_lib_free_pages(substream);
}
static struct snd_pcm_ops mtk_afe_ops = {
.open = mtk_routing_pcm_open,
.close = mtk_routing_pcm_close,
.ioctl = snd_pcm_lib_ioctl,
.hw_params = mtk_routing_pcm_hw_params,
.hw_free = mtk_routing_pcm_hw_free,
.prepare = mtk_routing_pcm_prepare,
.trigger = mtk_routing_pcm_trigger,
.copy = mtk_routing_pcm_copy,
.silence = mtk_routing_pcm_silence,
.page = mtk_routing_pcm_page,
};
static struct snd_soc_platform_driver mtk_soc_routing_platform = {
.ops = &mtk_afe_ops,
.pcm_new = mtk_asoc_routing_pcm_new,
.probe = mtk_afe_routing_platform_probe,
};
static int mtk_afe_routing_probe(struct platform_device *pdev)
{
pr_warn("mtk_afe_routing_probe\n");
pdev->dev.coherent_dma_mask = DMA_BIT_MASK(64);
if (!pdev->dev.dma_mask)
pdev->dev.dma_mask = &pdev->dev.coherent_dma_mask;
if (pdev->dev.of_node)
dev_set_name(&pdev->dev, "%s", MT_SOC_ROUTING_PCM);
pr_warn("%s: dev name %s\n", __func__, dev_name(&pdev->dev));
return snd_soc_register_platform(&pdev->dev, &mtk_soc_routing_platform);
}
static int mtk_asoc_routing_pcm_new(struct snd_soc_pcm_runtime *rtd)
{
int ret = 0;
pruntimepcm = rtd;
pr_warn("%s\n", __func__);
return ret;
}
static int mtk_afe_routing_platform_probe(struct snd_soc_platform *platform)
{
pr_warn("mtk_afe_routing_platform_probe\n");
/* add controls */
snd_soc_add_platform_controls(platform, Audio_snd_routing_controls,
ARRAY_SIZE(Audio_snd_routing_controls));
snd_soc_add_platform_controls(platform, Afe_Anc_controls, ARRAY_SIZE(Afe_Anc_controls));
return 0;
}
static int mtk_afe_routing_remove(struct platform_device *pdev)
{
pr_debug("%s\n", __func__);
snd_soc_unregister_platform(&pdev->dev);
return 0;
}
/* supend and resume function */
static int mtk_routing_pm_ops_suspend(struct device *device)
{
pr_warn("%s\n", __func__);
if (get_voice_status() == true)
return 0;
if (AudDrvSuspendStatus == false) {
AudDrv_Clk_Power_On();
BackUp_Audio_Register();
if (ConditionEnterSuspend() == true) {
SetAnalogSuspend(true);
/* clkmux_sel(MT_MUX_AUDINTBUS, 0, "AUDIO"); //select 26M */
AudDrv_Suspend_Clk_Off();
}
AudDrvSuspendStatus = true;
}
return 0;
}
static int mtk_pm_ops_suspend_ipo(struct device *device)
{
pr_warn("%s", __func__);
AudDrvSuspend_ipoh_Status = true;
return mtk_routing_pm_ops_suspend(device);
}
static int mtk_routing_pm_ops_resume(struct device *device)
{
pr_warn("%s\n ", __func__);
if (AudDrvSuspendStatus == true) {
AudDrv_Suspend_Clk_On();
if (ConditionEnterSuspend() == true) {
Restore_Audio_Register();
SetAnalogSuspend(false);
}
AudDrvSuspendStatus = false;
}
return 0;
}
static int mtk_pm_ops_resume_ipo(struct device *device)
{
pr_warn("%s", __func__);
return mtk_routing_pm_ops_resume(device);
}
const struct dev_pm_ops mtk_routing_pm_ops = {
.suspend = mtk_routing_pm_ops_suspend,
.resume = mtk_routing_pm_ops_resume,
.freeze = mtk_pm_ops_suspend_ipo,
.thaw = mtk_pm_ops_suspend_ipo,
.poweroff = mtk_pm_ops_suspend_ipo,
.restore = mtk_pm_ops_resume_ipo,
.restore_noirq = mtk_pm_ops_resume_ipo,
};
#ifdef CONFIG_OF
static const struct of_device_id mt_soc_pcm_routing_of_ids[] = {
{.compatible = "mediatek,mt_soc_pcm_routing",},
{}
};
#endif
static struct platform_driver mtk_afe_routing_driver = {
.driver = {
.name = MT_SOC_ROUTING_PCM,
.owner = THIS_MODULE,
#ifdef CONFIG_OF
.of_match_table = mt_soc_pcm_routing_of_ids,
#endif
#ifdef CONFIG_PM
.pm = &mtk_routing_pm_ops,
#endif
},
.probe = mtk_afe_routing_probe,
.remove = mtk_afe_routing_remove,
};
#ifndef CONFIG_OF
static struct platform_device *soc_mtkafe_routing_dev;
#endif
static int __init mtk_soc_routing_platform_init(void)
{
int ret = 0;
pr_warn("%s\n", __func__);
#ifndef CONFIG_OF
soc_mtkafe_routing_dev = platform_device_alloc(MT_SOC_ROUTING_PCM, -1);
if (!soc_mtkafe_routing_dev)
return -ENOMEM;
ret = platform_device_add(soc_mtkafe_routing_dev);
if (ret != 0) {
platform_device_put(soc_mtkafe_routing_dev);
return ret;
}
#endif
ret = platform_driver_register(&mtk_afe_routing_driver);
return ret;
}
module_init(mtk_soc_routing_platform_init);
static void __exit mtk_soc_routing_platform_exit(void)
{
pr_warn("%s\n", __func__);
platform_driver_unregister(&mtk_afe_routing_driver);
}
module_exit(mtk_soc_routing_platform_exit);
MODULE_DESCRIPTION("afe eouting driver");
MODULE_LICENSE("GPL");
|
{
"content_hash": "934421de3924473cd7f91a0e550b66a8",
"timestamp": "",
"source": "github",
"line_count": 1092,
"max_line_length": 100,
"avg_line_length": 28.97893772893773,
"alnum_prop": 0.6867435613841049,
"repo_name": "zhengdejin/X1_Code",
"id": "f3e152da4ed57c57c1e5a15ea0d6dcd8899c067b",
"size": "32264",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "kernel-3.10/sound/soc/mediatek/mt_soc_audio_6580/mt_soc_pcm_routing.c",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "ASP",
"bytes": "4528"
},
{
"name": "Assembly",
"bytes": "10107915"
},
{
"name": "Awk",
"bytes": "18681"
},
{
"name": "Batchfile",
"bytes": "144"
},
{
"name": "C",
"bytes": "519266172"
},
{
"name": "C++",
"bytes": "11700846"
},
{
"name": "GDB",
"bytes": "18113"
},
{
"name": "Lex",
"bytes": "47705"
},
{
"name": "M4",
"bytes": "3388"
},
{
"name": "Makefile",
"bytes": "1619668"
},
{
"name": "Objective-C",
"bytes": "2963724"
},
{
"name": "Perl",
"bytes": "570279"
},
{
"name": "Perl 6",
"bytes": "3727"
},
{
"name": "Python",
"bytes": "92743"
},
{
"name": "Roff",
"bytes": "55837"
},
{
"name": "Scilab",
"bytes": "21433"
},
{
"name": "Shell",
"bytes": "185922"
},
{
"name": "SourcePawn",
"bytes": "2711"
},
{
"name": "UnrealScript",
"bytes": "6113"
},
{
"name": "XS",
"bytes": "1240"
},
{
"name": "Yacc",
"bytes": "92226"
}
],
"symlink_target": ""
}
|
from __future__ import print_function
import os
try:
import requests
except ImportError:
requests = None # NOQA
from nikola.plugin_categories import Command
class CommandBootswatchTheme(Command):
"""Given a swatch name from bootswatch.com and a parent theme, creates a custom theme."""
name = "bootswatch_theme"
doc_usage = "[options]"
doc_purpose = "given a swatch name from bootswatch.com and a parent theme, creates a custom"\
" theme"
cmd_options = [
{
'name': 'name',
'short': 'n',
'long': 'name',
'default': 'custom',
'type': str,
'help': 'New theme name (default: custom)',
},
{
'name': 'swatch',
'short': 's',
'default': 'slate',
'type': str,
'help': 'Name of the swatch from bootswatch.com.'
},
{
'name': 'parent',
'short': 'p',
'long': 'parent',
'default': 'site',
'help': 'Parent theme name (default: site)',
},
]
def _execute(self, options, args):
"""Given a swatch name and a parent theme, creates a custom theme."""
if requests is None:
print('To use the install_theme command, you need to install the '
'"requests" package.')
return
name = options['name']
swatch = options['swatch']
parent = options['parent']
print("Creating '{0}' theme from '{1}' and '{2}'".format(name, swatch,
parent))
try:
os.makedirs(os.path.join('themes', name, 'assets', 'css'))
except:
pass
for fname in ('bootstrap.min.css', 'bootstrap.css'):
url = '/'.join(('http://bootswatch.com', swatch, fname))
print("Downloading: ", url)
data = requests.get(url).text
with open(os.path.join('themes', name, 'assets', 'css', fname),
'wb+') as output:
output.write(data)
with open(os.path.join('themes', name, 'parent'), 'wb+') as output:
output.write(parent)
print('Theme created. Change the THEME setting to "{0}" to use '
'it.'.format(name))
|
{
"content_hash": "e570b6af9313ecce0d6c0645468fc39c",
"timestamp": "",
"source": "github",
"line_count": 72,
"max_line_length": 97,
"avg_line_length": 32.638888888888886,
"alnum_prop": 0.49957446808510636,
"repo_name": "kotnik/nikola",
"id": "dda6b2836ff6f33ea313c08b66c43eaef787e218",
"size": "3492",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "nikola/plugins/command_bootswatch_theme.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "243896"
},
{
"name": "JavaScript",
"bytes": "191598"
},
{
"name": "Python",
"bytes": "442653"
},
{
"name": "Shell",
"bytes": "663"
}
],
"symlink_target": ""
}
|
import $ from "jquery";
import _ from "underscore";
import BaseView from "./base";
export default BaseView.extend({
id: "",
items: [],
itemContainer: null,
isOffsetParent: true,
idPrefix: "container-",
render: function () {
if (this.options.id) {
this.$el.attr("id", this.idPrefix + this.options.id);
}
this.applyTemplate();
this.renderItems();
this.bindEvents();
if (this.isOffsetParent) {
this.$el.addClass("ui-offset-parent");
}
this.trigger("render", this);
this.afterRender();
this.$el.data("component", this);
return this;
},
renderItems: function () {
var $container;
if (this.itemContainer !== null) {
$container = $(this.itemContainer, this.$el);
if ($container.length === 0) {
throw "Item Container element not found.";
}
} else {
$container = this.$el;
}
_.each(
this.items,
function (view) {
if (view.appendInContainer === true) {
$container.append(view.render().$el);
} else {
view.render();
}
},
this
);
},
bindEvents: function () {
var self = this;
_.each(this.items, function (view) {
view.on("all", function () {
var slice = [].slice;
var eventName = arguments[0];
var eventTarget;
var newName = self.id !== "" ? self.id + "." + eventName : eventName;
if (arguments.length > 1) {
eventTarget = arguments[1];
}
if (newName !== eventName) {
var newArgs = slice.call(arguments, 0);
newArgs[0] = newName;
self.trigger.apply(self, newArgs);
}
if (eventTarget !== undefined && eventTarget.isUIView === true) {
if (eventTarget.propagateEvent(eventName) === true) {
self.trigger.apply(self, arguments);
}
}
});
});
},
get: function (id) {
// Remove the recursive part because it was confusing if two children had the
// same id
return _.findWhere(this.items, { id: id });
},
add: function (item) {
if (item.id !== undefined && this.get(item.id)) {
throw "Another item with the same `id` already exists.";
}
this.items.push(item);
},
});
|
{
"content_hash": "a70180def9a5ff3990cb9ed97782ef87",
"timestamp": "",
"source": "github",
"line_count": 90,
"max_line_length": 85,
"avg_line_length": 29.844444444444445,
"alnum_prop": 0.4620253164556962,
"repo_name": "plone/mockup",
"id": "90dbc9c5914eb28afa6c2e4b1cc1df5b610f93bf",
"size": "2686",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/core/ui/views/container.js",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "HTML",
"bytes": "2463"
},
{
"name": "JavaScript",
"bytes": "789611"
},
{
"name": "Makefile",
"bytes": "1431"
},
{
"name": "SCSS",
"bytes": "24704"
},
{
"name": "Shell",
"bytes": "66"
}
],
"symlink_target": ""
}
|
import HeroCard from "../../../src/artifact/js/HeroCard.js";
QUnit.module("HeroCard");
QUnit.test("HeroCard properties Aragorn (Core)", function(assert)
{
var cardKey = HeroCard.ARAGORN_CORE;
var properties = HeroCard.properties[cardKey];
assert.equal(properties.name, "Aragorn");
assert.equal(properties.key, "aragornCore");
});
QUnit.test("keys and values", function(assert)
{
// Setup.
// Run.
var result = HeroCard.keys();
var ownPropertyNames = Object.getOwnPropertyNames(HeroCard);
// Verify.
ownPropertyNames.forEach(function(key)
{
var key2 = HeroCard[key];
if (key !== "properties" && typeof key2 === "string")
{
assert.ok(HeroCard.properties[key2], "Missing value for key = " + key);
}
});
result.forEach(function(value)
{
var p = ownPropertyNames.filter(function(key)
{
return HeroCard[key] === value;
});
assert.equal(p.length, 1, "Missing key for value = " + value);
});
});
QUnit.test("traits", function(assert)
{
HeroCard.keys().forEach(function(cardKey)
{
var card = HeroCard.properties[cardKey];
card.traitKeys.forEach(function(traitKey)
{
assert.ok(traitKey, "Missing traitKey for cardKey = " + cardKey);
});
});
});
QUnit.test("HeroCard.keys()", function(assert)
{
// Run.
var result = HeroCard.keys();
// Verify.
assert.ok(result);
var length = 75;
assert.equal(result.length, length);
assert.equal(result[0], HeroCard.AMARTHIUL);
assert.equal(result[length - 1], HeroCard.TREEBEARD);
});
var HeroCardTest = {};
export default HeroCardTest;
|
{
"content_hash": "1cae825af91a377794b9da0baf242787",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 80,
"avg_line_length": 23.571428571428573,
"alnum_prop": 0.6327272727272727,
"repo_name": "jmthompson2015/lotr-card-game",
"id": "eb8dc59cbf114861a328368e617091e164bdf9f5",
"size": "1650",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "test/artifact/js/HeroCardTest.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "133109"
},
{
"name": "HTML",
"bytes": "42759"
},
{
"name": "JavaScript",
"bytes": "2247285"
},
{
"name": "Shell",
"bytes": "2456"
}
],
"symlink_target": ""
}
|
(function() {
require('util').print('Loaded successfully!');
})();
|
{
"content_hash": "a5504c1898886090f596725ee00c192b",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 48,
"avg_line_length": 22.666666666666668,
"alnum_prop": 0.6176470588235294,
"repo_name": "csr1010/xmmagik",
"id": "702035d81f4e4dfcc926f8e76278a7766a33b314",
"size": "1202",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "test/fixtures/test-init-index/index.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CMake",
"bytes": "3725"
},
{
"name": "CSS",
"bytes": "26081"
},
{
"name": "HTML",
"bytes": "20587"
},
{
"name": "JavaScript",
"bytes": "767651"
},
{
"name": "Python",
"bytes": "17716"
}
],
"symlink_target": ""
}
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#nullable disable
using System;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CodeGeneration;
using Microsoft.CodeAnalysis.Editor.CSharp;
using Microsoft.CodeAnalysis.Formatting;
using Microsoft.CodeAnalysis.Test.Utilities;
using Roslyn.Test.Utilities;
using Roslyn.Utilities;
using Xunit;
using Microsoft.CodeAnalysis.CodeStyle;
using Microsoft.CodeAnalysis.CSharp.CodeStyle;
using CS = Microsoft.CodeAnalysis.CSharp;
using VB = Microsoft.CodeAnalysis.VisualBasic;
using Microsoft.CodeAnalysis.CSharp.Formatting;
using System.Threading;
using Microsoft.CodeAnalysis.MetadataAsSource;
using Microsoft.CodeAnalysis.CSharp.CodeGeneration;
using Microsoft.CodeAnalysis.CodeCleanup;
namespace Microsoft.CodeAnalysis.Editor.UnitTests.MetadataAsSource
{
public partial class MetadataAsSourceTests : AbstractMetadataAsSourceTests
{
public enum OriginatingProjectLanguage
{
CSharp,
VisualBasic,
}
private static string ToLanguageName(OriginatingProjectLanguage language)
=> language switch
{
OriginatingProjectLanguage.CSharp => LanguageNames.CSharp,
OriginatingProjectLanguage.VisualBasic => LanguageNames.VisualBasic,
_ => throw ExceptionUtilities.UnexpectedValue(language),
};
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestClass(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = "public class C {}";
var symbolName = "C";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public class [|C|]
{{
public C();
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Public Class [|C|]
Public Sub New()
End Class",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public class [|C|]
{{
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public class [|C|]
{{
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(546241, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546241")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestInterface(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = "public interface I {}";
var symbolName = "I";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public interface [|I|]
{{
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Public Interface [|I|]
End Interface",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public interface [|I|]
{{
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public interface [|I|]
{{
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestConstructor(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = "public class C {}";
var symbolName = "C..ctor";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public class C
{{
public [|C|]();
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Public Class C
Public Sub [|New|]()
End Class",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public class [|C|]
{{
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public class [|C|]
{{
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestMethod(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = "public class C { public void Goo() {} }";
var symbolName = "C.Goo";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public class C
{{
public C();
public void [|Goo|]();
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Public Class C
Public Sub New()
Public Sub [|Goo|]()
End Class",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public class C
{{
public void [|Goo|]()
{{
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public class C
{{
public void [|Goo|]()
{{
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestField(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = "public class C { public string S; }";
var symbolName = "C.S";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public class C
{{
public string [|S|];
public C();
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Public Class C
Public [|S|] As String
Public Sub New()
End Class",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public class C
{{
public string [|S|];
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public class C
{{
public string [|S|];
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(546240, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546240")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestProperty(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = "public class C { public string S { get; protected set; } }";
var symbolName = "C.S";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public class C
{{
public C();
public string [|S|] {{ get; protected set; }}
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Public Class C
Public Sub New()
Public Property [|S|] As String
End Class",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public class C
{{
public string [|S|] {{ get; protected set; }}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public class C
{{
public string [|S|] {{ get; protected set; }}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(546194, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546194")]
[WorkItem(546291, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546291")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestEvent(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = "using System; public class C { public event Action E; }";
var symbolName = "C.E";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
using System;
public class C
{{
public C();
public event Action [|E|];
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Imports System
Public Class C
Public Sub New()
Public Event [|E|] As Action
End Class",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System;
public class C
{{
public event Action [|E|];
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System;
public class C
{{
public event Action [|E|];
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestNestedType(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = "public class C { protected class D { } }";
var symbolName = "C+D";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public class C
{{
public C();
protected class [|D|]
{{
public D();
}}
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Public Class C
Public Sub New()
Protected Class [|D|]
Public Sub New()
End Class
End Class",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public class C
{{
protected class [|D|]
{{
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public class C
{{
protected class [|D|]
{{
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(546195, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546195"), WorkItem(546269, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546269")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestEnum(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = "public enum E { A, B, C }";
var symbolName = "E";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public enum [|E|]
{{
A = 0,
B = 1,
C = 2
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Public Enum [|E|]
A = 0
B = 1
C = 2
End Enum",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public enum [|E|]
{{
A,
B,
C
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public enum [|E|]
{{
A,
B,
C
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(546195, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546195"), WorkItem(546269, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546269")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestEnumFromField(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = "public enum E { A, B, C }";
var symbolName = "E.C";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public enum E
{{
A = 0,
B = 1,
[|C|] = 2
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Public Enum E
A = 0
B = 1
[|C|] = 2
End Enum",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public enum E
{{
A,
B,
[|C|]
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public enum E
{{
A,
B,
[|C|]
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(546273, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546273")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestEnumWithUnderlyingType(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = "public enum E : short { A = 0, B = 1, C = 2 }";
var symbolName = "E.C";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public enum E : short
{{
A = 0,
B = 1,
[|C|] = 2
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Public Enum E As Short
A = 0
B = 1
[|C|] = 2
End Enum",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public enum E : short
{{
A,
B,
[|C|]
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public enum E : short
{{
A,
B,
[|C|]
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(650741, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/650741")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestEnumWithOverflowingUnderlyingType(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = "public enum E : ulong { A = 9223372036854775808 }";
var symbolName = "E.A";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public enum E : ulong
{{
[|A|] = 9223372036854775808
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Public Enum E As ULong
[|A|] = 9223372036854775808UL
End Enum",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public enum E : ulong
{{
[|A|] = 9223372036854775808uL
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public enum E : ulong
{{
[|A|] = 9223372036854775808uL
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestEnumWithDifferentValues(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = "public enum E : short { A = 1, B = 2, C = 3 }";
var symbolName = "E.C";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public enum E : short
{{
A = 1,
B = 2,
[|C|] = 3
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Public Enum E As Short
A = 1
B = 2
[|C|] = 3
End Enum",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public enum E : short
{{
A = 1,
B,
[|C|]
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public enum E : short
{{
A = 1,
B,
[|C|]
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(546198, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546198")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestTypeInNamespace(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = "namespace N { public class C {} }";
var symbolName = "N.C";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
namespace N
{{
public class [|C|]
{{
public C();
}}
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Namespace N
Public Class [|C|]
Public Sub New()
End Class
End Namespace",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
namespace N
{{
public class [|C|]
{{
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
namespace N
{{
public class [|C|]
{{
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(546198, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546198")]
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestTypeInFileScopedNamespace1()
{
var metadataSource = "namespace N { public class C {} }";
using var context = TestContext.Create(
LanguageNames.CSharp, SpecializedCollections.SingletonEnumerable(metadataSource), languageVersion: "10");
await context.GenerateAndVerifySourceAsync("N.C",
$@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
namespace N;
public class [|C|]
{{
public C();
}}",
fileScopedNamespaces: true);
}
[WorkItem(546198, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546198")]
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestTypeInFileScopedNamespace2()
{
var metadataSource = "namespace N { public class C {} }";
using var context = TestContext.Create(
LanguageNames.CSharp, SpecializedCollections.SingletonEnumerable(metadataSource), languageVersion: "9");
await context.GenerateAndVerifySourceAsync("N.C",
$@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
namespace N
{{
public class [|C|]
{{
public C();
}}
}}", fileScopedNamespaces: true);
}
[WorkItem(546198, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546198")]
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestTypeInFileScopedNamespace3()
{
var metadataSource = "namespace N { public class C {} }";
using var context = TestContext.Create(
LanguageNames.CSharp, SpecializedCollections.SingletonEnumerable(metadataSource), languageVersion: "10");
await context.GenerateAndVerifySourceAsync("N.C",
$@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
namespace N
{{
public class [|C|]
{{
public C();
}}
}}");
}
[WorkItem(546223, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546223")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestInlineConstant(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = @"public class C { public const string S = ""Hello mas""; }";
var symbolName = "C.S";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public class C
{{
public const string [|S|] = ""Hello mas"";
public C();
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Public Class C
Public Const [|S|] As String = ""Hello mas""
Public Sub New()
End Class",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public class C
{{
public const string [|S|] = ""Hello mas"";
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public class C
{{
public const string [|S|] = ""Hello mas"";
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(546221, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546221")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestInlineTypeOf(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = @"
using System;
public class MyTypeAttribute : Attribute
{
public MyTypeAttribute(Type type) {}
}
[MyType(typeof(string))]
public class C {}";
var symbolName = "C";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
[MyType(typeof(string))]
public class [|C|]
{{
public C();
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
<MyType(GetType(String))>
Public Class [|C|]
Public Sub New()
End Class",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
[MyType(typeof(string))]
public class [|C|]
{{
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
[MyType(typeof(string))]
public class [|C|]
{{
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(546231, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546231")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestNoDefaultConstructorInStructs(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = "public struct S {}";
var symbolName = "S";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public struct [|S|]
{{
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Public Structure [|S|]
End Structure",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Size = 1)]
public struct [|S|]
{{
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Size = 1)]
public struct [|S|]
{{
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestReferenceDefinedType(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = "public class C { public static C Create() { return new C(); } }";
var symbolName = "C";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public class [|C|]
{{
public C();
public static C Create();
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Public Class [|C|]
Public Sub New()
Public Shared Function Create() As C
End Class",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public class [|C|]
{{
public static C Create()
{{
return new C();
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public class [|C|]
{{
public static C Create()
{{
return new C();
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(546227, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546227")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestGenericType(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = "public class G<SomeType> { public SomeType S; }";
var symbolName = "G`1";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public class [|G|]<SomeType>
{{
public SomeType S;
public G();
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Public Class [|G|](Of SomeType)
Public S As SomeType
Public Sub New()
End Class",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public class [|G|]<SomeType>
{{
public SomeType S;
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public class [|G|]<SomeType>
{{
public SomeType S;
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
[WorkItem(38916, "https://github.com/dotnet/roslyn/issues/38916")]
public async Task TestParameterAttributes(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = @"
public class C<[My] T>
{
public void Method([My] T x, [My] T y) { }
}
internal class MyAttribute : System.Attribute { }
";
var symbolName = "C`1";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public class [|C|]<[MyAttribute] T>
{{
public C();
public void Method([MyAttribute] T x, [MyAttribute] T y);
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Public Class [|C|](Of T)
Public Sub New()
Public Sub Method(<MyAttribute> x As T, <MyAttribute> y As T)
End Class",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public class [|C|]<[My] T>
{{
public void Method([My] T x, [My] T y)
{{
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public class [|C|]<[My] T>
{{
public void Method([My] T x, [My] T y)
{{
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
[WorkItem(38916, "https://github.com/dotnet/roslyn/issues/38916")]
public async Task TestGenericWithNullableReferenceTypes(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = @"
#nullable enable
public interface C<T>
{
bool Equals([AllowNull] T other);
}
internal class AllowNullAttribute : System.Attribute { }
";
var symbolName = "C`1";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public interface [|C|]<T>
{{
bool Equals([AllowNullAttribute] T other);
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
<NullableContextAttribute(1)>
Public Interface [|C|](Of T)
Function Equals(<AllowNullAttribute> other As T) As Boolean
End Interface",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public interface [|C|]<T>
{{
bool Equals([AllowNull] T other);
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public interface [|C|]<T>
{{
bool Equals([AllowNull] T other);
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(546227, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546227")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestGenericDelegate(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = "public class C { public delegate void D<SomeType>(SomeType s); }";
var symbolName = "C+D`1";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public class C
{{
public C();
public delegate void [|D|]<SomeType>(SomeType s);
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Public Class C
Public Sub New()
Public Delegate Sub [|D|](Of SomeType)(s As SomeType)
End Class",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public class C
{{
public delegate void [|D|]<SomeType>(SomeType s);
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public class C
{{
public delegate void [|D|]<SomeType>(SomeType s);
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(546200, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546200")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestAttribute(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = @"
using System;
namespace N
{
public class WorkingAttribute : Attribute
{
public WorkingAttribute(bool working) {}
}
}
[N.Working(true)]
public class C {}";
var symbolName = "C";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
using N;
[Working(true)]
public class [|C|]
{{
public C();
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Imports N
<Working(True)>
Public Class [|C|]
Public Sub New()
End Class",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using N;
[Working(true)]
public class [|C|]
{{
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using N;
[Working(true)]
public class [|C|]
{{
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestSymbolIdMatchesMetadata()
{
await TestSymbolIdMatchesMetadataAsync(LanguageNames.CSharp);
await TestSymbolIdMatchesMetadataAsync(LanguageNames.VisualBasic);
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestNotReusedOnAssemblyDiffers()
{
await TestNotReusedOnAssemblyDiffersAsync(LanguageNames.CSharp);
await TestNotReusedOnAssemblyDiffersAsync(LanguageNames.VisualBasic);
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestThrowsOnGenerateNamespace()
{
var namespaceSymbol = CodeGenerationSymbolFactory.CreateNamespaceSymbol("Outerspace");
using var context = TestContext.Create();
await Assert.ThrowsAsync<ArgumentException>(async () =>
{
await context.GenerateSourceAsync(namespaceSymbol);
});
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestReuseGenerateMemberOfGeneratedType()
{
var metadataSource = "public class C { public bool Is; }";
using var context = TestContext.Create(LanguageNames.CSharp, SpecializedCollections.SingletonEnumerable(metadataSource));
var a = await context.GenerateSourceAsync("C");
var b = await context.GenerateSourceAsync("C.Is");
TestContext.VerifyDocumentReused(a, b);
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestReuseRepeatGeneration()
{
using var context = TestContext.Create();
var a = await context.GenerateSourceAsync();
var b = await context.GenerateSourceAsync();
TestContext.VerifyDocumentReused(a, b);
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestWorkspaceContextHasReasonableProjectName()
{
using var context = TestContext.Create();
var compilation = await context.DefaultProject.GetCompilationAsync();
var result = await context.GenerateSourceAsync(compilation.ObjectType);
var openedDocument = context.GetDocument(result);
Assert.Equal("mscorlib", openedDocument.Project.AssemblyName);
Assert.Equal("mscorlib", openedDocument.Project.Name);
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestReuseGenerateFromDifferentProject()
{
using var context = TestContext.Create();
var projectId = ProjectId.CreateNewId();
var project = context.CurrentSolution.AddProject(projectId, "ProjectB", "ProjectB", LanguageNames.CSharp).GetProject(projectId)
.WithMetadataReferences(context.DefaultProject.MetadataReferences)
.WithCompilationOptions(new CS.CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
var a = await context.GenerateSourceAsync(project: context.DefaultProject);
var b = await context.GenerateSourceAsync(project: project);
TestContext.VerifyDocumentReused(a, b);
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestNotReusedGeneratingForDifferentLanguage()
{
using var context = TestContext.Create(LanguageNames.CSharp);
var projectId = ProjectId.CreateNewId();
var project = context.CurrentSolution.AddProject(projectId, "ProjectB", "ProjectB", LanguageNames.VisualBasic).GetProject(projectId)
.WithMetadataReferences(context.DefaultProject.MetadataReferences)
.WithCompilationOptions(new VB.VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
var a = await context.GenerateSourceAsync(project: context.DefaultProject);
var b = await context.GenerateSourceAsync(project: project);
TestContext.VerifyDocumentNotReused(a, b);
}
[WorkItem(546311, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546311")]
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task FormatMetadataAsSource()
{
using var context = TestContext.Create(LanguageNames.CSharp);
var file = await context.GenerateSourceAsync("System.Console", project: context.DefaultProject);
var document = context.GetDocument(file);
await Formatter.FormatAsync(document, CSharpSyntaxFormattingOptions.Default, CancellationToken.None);
}
[WorkItem(530829, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530829")]
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task IndexedProperty()
{
var metadataSource = @"
Public Class C
Public Property IndexProp(ByVal p1 As Integer) As String
Get
Return Nothing
End Get
Set(ByVal value As String)
End Set
End Property
End Class";
var expected = $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public class C
{{
public C();
public string [|get_IndexProp|](int p1);
public void set_IndexProp(int p1, string value);
}}";
var symbolName = "C.get_IndexProp";
await GenerateAndVerifySourceAsync(metadataSource, symbolName, LanguageNames.CSharp, expected);
}
[WorkItem(566688, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/566688")]
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task AttributeReferencingInternalNestedType()
{
var metadataSource = @"using System;
[My(typeof(D))]
public class C
{
public C() { }
internal class D { }
}
public class MyAttribute : Attribute
{
public MyAttribute(Type t) { }
}";
var expected = $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
[My(typeof(D))]
public class [|C|]
{{
public C();
}}";
var symbolName = "C";
await GenerateAndVerifySourceAsync(metadataSource, symbolName, LanguageNames.CSharp, expected);
}
[WorkItem(530978, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530978")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestAttributesOnMembers(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = @"using System;
[Obsolete]
public class C
{
[Obsolete]
[ThreadStatic]
public int field1;
[Obsolete]
public int prop1 { get; set; }
[Obsolete]
public int prop2 { get { return 10; } set {} }
[Obsolete]
public void method1() {}
[Obsolete]
public C() {}
[Obsolete]
~C() {}
[Obsolete]
public int this[int x] { get { return 10; } set {} }
[Obsolete]
public event Action event1;
[Obsolete]
public event Action event2 { add {} remove {}}
public void method2([System.Runtime.CompilerServices.CallerMemberName] string name = """") {}
[Obsolete]
public static C operator + (C c1, C c2) { return new C(); }
}
";
var symbolName = "C";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
[DefaultMember(""Item"")]
[Obsolete]
public class [|C|]
{{
[Obsolete]
[ThreadStatic]
public int field1;
[Obsolete]
public C();
[Obsolete]
~C();
[Obsolete]
public int this[int x] {{ get; set; }}
[Obsolete]
public int prop1 {{ get; set; }}
[Obsolete]
public int prop2 {{ get; set; }}
[Obsolete]
public event Action event1;
[Obsolete]
public event Action event2;
[Obsolete]
public void method1();
public void method2([CallerMemberName] string name = """");
[Obsolete]
public static C operator +(C c1, C c2);
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Imports System
Imports System.Reflection
Imports System.Runtime.CompilerServices
<DefaultMember(""Item"")> <Obsolete>
Public Class [|C|]
<Obsolete> <ThreadStatic>
Public field1 As Integer
<Obsolete>
Public Sub New()
<Obsolete>
Public Property prop1 As Integer
<Obsolete>
Public Property prop2 As Integer
<Obsolete>
Default Public Property Item(x As Integer) As Integer
<Obsolete>
Public Event event1 As Action
<Obsolete>
Public Event event2 As Action
<Obsolete>
Public Sub method1()
Public Sub method2(<CallerMemberName> Optional name As String = """")
<Obsolete>
Protected Overrides Sub Finalize()
<Obsolete>
Public Shared Operator +(c1 As C, c2 As C) As C
End Class",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System;
using System.Runtime.CompilerServices;
[Obsolete]
public class [|C|]
{{
[Obsolete]
[ThreadStatic]
public int field1;
[Obsolete]
public int prop1 {{ get; set; }}
[Obsolete]
public int prop2
{{
get
{{
return 10;
}}
set
{{
}}
}}
[Obsolete]
public int this[int x]
{{
get
{{
return 10;
}}
set
{{
}}
}}
[Obsolete]
public event Action event1;
[Obsolete]
public event Action event2
{{
add
{{
}}
remove
{{
}}
}}
[Obsolete]
public void method1()
{{
}}
[Obsolete]
public C()
{{
}}
[Obsolete]
~C()
{{
}}
public void method2([CallerMemberName] string name = """")
{{
}}
[Obsolete]
public static C operator +(C c1, C c2)
{{
return new C();
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System;
using System.Runtime.CompilerServices;
[Obsolete]
public class [|C|]
{{
[Obsolete]
[ThreadStatic]
public int field1;
[Obsolete]
public int prop1 {{ get; set; }}
[Obsolete]
public int prop2
{{
get
{{
return 10;
}}
set
{{
}}
}}
[Obsolete]
public int this[int x]
{{
get
{{
return 10;
}}
set
{{
}}
}}
[Obsolete]
public event Action event1;
[Obsolete]
public event Action event2
{{
add
{{
}}
remove
{{
}}
}}
[Obsolete]
public void method1()
{{
}}
[Obsolete]
public C()
{{
}}
[Obsolete]
~C()
{{
}}
public void method2([CallerMemberName] string name = """")
{{
}}
[Obsolete]
public static C operator +(C c1, C c2)
{{
return new C();
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(530923, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530923")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestEmptyLineBetweenMembers(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = @"using System;
public class C
{
public int field1;
public int prop1 { get; set; }
public int field2;
public int prop2 { get { return 10; } set {} }
public void method1() {}
public C() {}
public void method2([System.Runtime.CompilerServices.CallerMemberName] string name = """") {}
~C() {}
public int this[int x] { get { return 10; } set {} }
public event Action event1;
public static C operator + (C c1, C c2) { return new C(); }
public event Action event2 { add {} remove {}}
public static C operator - (C c1, C c2) { return new C(); }
}
";
var symbolName = "C";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
[DefaultMember(""Item"")]
public class [|C|]
{{
public int field1;
public int field2;
public C();
~C();
public int this[int x] {{ get; set; }}
public int prop1 {{ get; set; }}
public int prop2 {{ get; set; }}
public event Action event1;
public event Action event2;
public void method1();
public void method2([CallerMemberName] string name = """");
public static C operator +(C c1, C c2);
public static C operator -(C c1, C c2);
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Imports System
Imports System.Reflection
Imports System.Runtime.CompilerServices
<DefaultMember(""Item"")>
Public Class [|C|]
Public field1 As Integer
Public field2 As Integer
Public Sub New()
Public Property prop1 As Integer
Public Property prop2 As Integer
Default Public Property Item(x As Integer) As Integer
Public Event event1 As Action
Public Event event2 As Action
Public Sub method1()
Public Sub method2(<CallerMemberName> Optional name As String = """")
Protected Overrides Sub Finalize()
Public Shared Operator +(c1 As C, c2 As C) As C
Public Shared Operator -(c1 As C, c2 As C) As C
End Class",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System;
using System.Runtime.CompilerServices;
public class [|C|]
{{
public int field1;
public int field2;
public int prop1 {{ get; set; }}
public int prop2
{{
get
{{
return 10;
}}
set
{{
}}
}}
public int this[int x]
{{
get
{{
return 10;
}}
set
{{
}}
}}
public event Action event1;
public event Action event2
{{
add
{{
}}
remove
{{
}}
}}
public void method1()
{{
}}
public void method2([CallerMemberName] string name = """")
{{
}}
~C()
{{
}}
public static C operator +(C c1, C c2)
{{
return new C();
}}
public static C operator -(C c1, C c2)
{{
return new C();
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System;
using System.Runtime.CompilerServices;
public class [|C|]
{{
public int field1;
public int field2;
public int prop1 {{ get; set; }}
public int prop2
{{
get
{{
return 10;
}}
set
{{
}}
}}
public int this[int x]
{{
get
{{
return 10;
}}
set
{{
}}
}}
public event Action event1;
public event Action event2
{{
add
{{
}}
remove
{{
}}
}}
public void method1()
{{
}}
public void method2([CallerMemberName] string name = """")
{{
}}
~C()
{{
}}
public static C operator +(C c1, C c2)
{{
return new C();
}}
public static C operator -(C c1, C c2)
{{
return new C();
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(728644, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/728644")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestEmptyLineBetweenMembers2(OriginatingProjectLanguage language, bool signaturesOnly)
{
var source = @"
using System;
/// <summary>T:IGoo</summary>
public interface IGoo
{
/// <summary>P:IGoo.Prop1</summary>
Uri Prop1 { get; set; }
/// <summary>M:IGoo.Method1</summary>
Uri Method1();
}
";
var symbolName = "IGoo";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
using System;
//
// {FeaturesResources.Summary_colon}
// T:IGoo
public interface [|IGoo|]
{{
//
// {FeaturesResources.Summary_colon}
// P:IGoo.Prop1
Uri Prop1 {{ get; set; }}
//
// {FeaturesResources.Summary_colon}
// M:IGoo.Method1
Uri Method1();
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Imports System
'
' {FeaturesResources.Summary_colon}
' T:IGoo
Public Interface [|IGoo|]
'
' {FeaturesResources.Summary_colon}
' P:IGoo.Prop1
Property Prop1 As Uri
'
' {FeaturesResources.Summary_colon}
' M:IGoo.Method1
Function Method1() As Uri
End Interface",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System;
public interface [|IGoo|]
{{
Uri Prop1 {{ get; set; }}
Uri Method1();
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "System.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System;
public interface [|IGoo|]
{{
Uri Prop1 {{ get; set; }}
Uri Method1();
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "System.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(source, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly, includeXmlDocComments: true);
}
[WorkItem(679114, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/679114"), WorkItem(715013, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/715013")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestDefaultValueEnum(OriginatingProjectLanguage language, bool signaturesOnly)
{
var source = @"
using System.IO;
public class Test
{
public void goo(FileOptions options = 0) {}
}
";
var symbolName = "Test";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
using System.IO;
public class [|Test|]
{{
public Test();
public void goo(FileOptions options = FileOptions.None);
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Imports System.IO
Public Class [|Test|]
Public Sub New()
Public Sub goo(Optional options As FileOptions = FileOptions.None)
End Class",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System.IO;
public class [|Test|]
{{
public void goo(FileOptions options = FileOptions.None)
{{
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System.IO;
public class [|Test|]
{{
public void goo(FileOptions options = FileOptions.None)
{{
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(source, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(651261, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/651261")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestNullAttribute(OriginatingProjectLanguage language, bool signaturesOnly)
{
var source = @"
using System;
[Test(null)]
public class TestAttribute : Attribute
{
public TestAttribute(int[] i)
{
}
}";
var symbolName = "TestAttribute";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
using System;
[Test(null)]
public class [|TestAttribute|] : Attribute
{{
public TestAttribute(int[] i);
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Imports System
<Test(Nothing)>
Public Class [|TestAttribute|]
Inherits Attribute
Public Sub New(i() As Integer)
End Class",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System;
[Test(null)]
public class [|TestAttribute|] : Attribute
{{
public TestAttribute(int[] i)
{{
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System;
[Test(null)]
public class [|TestAttribute|] : Attribute
{{
public TestAttribute(int[] i)
{{
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(source, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(897006, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/897006")]
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestNavigationViaReducedExtensionMethodCS()
{
var metadata = @"using System;
public static class ObjectExtensions
{
public static void M(this object o, int x) { }
}";
var sourceWithSymbolReference = @"
class C
{
void M()
{
new object().[|M|](5);
}
}";
var expected = $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public static class ObjectExtensions
{{
public static void [|M|](this object o, int x);
}}";
using var context = TestContext.Create(
LanguageNames.CSharp,
SpecializedCollections.SingletonEnumerable(metadata),
includeXmlDocComments: false,
sourceWithSymbolReference: sourceWithSymbolReference);
var navigationSymbol = await context.GetNavigationSymbolAsync();
var metadataAsSourceFile = await context.GenerateSourceAsync(navigationSymbol);
TestContext.VerifyResult(metadataAsSourceFile, expected);
}
[WorkItem(897006, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/897006")]
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestNavigationViaReducedExtensionMethodVB()
{
var metadata = @"Imports System.Runtime.CompilerServices
Namespace NS
Public Module StringExtensions
<Extension()>
Public Sub M(ByVal o As String, x As Integer)
End Sub
End Module
End Namespace";
var sourceWithSymbolReference = @"
Imports NS.StringExtensions
Public Module C
Sub M()
Dim s = ""Yay""
s.[|M|](1)
End Sub
End Module";
var expected = $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Imports System.Runtime.CompilerServices
Namespace NS
<Extension>
Public Module StringExtensions <Extension>
Public Sub [|M|](o As String, x As Integer)
End Module
End Namespace";
using var context = TestContext.Create(
LanguageNames.VisualBasic,
SpecializedCollections.SingletonEnumerable(metadata),
includeXmlDocComments: false,
sourceWithSymbolReference: sourceWithSymbolReference);
var navigationSymbol = await context.GetNavigationSymbolAsync();
var metadataAsSourceFile = await context.GenerateSourceAsync(navigationSymbol);
TestContext.VerifyResult(metadataAsSourceFile, expected);
}
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestIndexersAndOperators(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = @"public class Program
{
public int this[int x]
{
get
{
return 0;
}
set
{
}
}
public static Program operator + (Program p1, Program p2)
{
return new Program();
}
}";
var symbolName = "Program";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
using System.Reflection;
[DefaultMember(""Item"")]
public class [|Program|]
{{
public Program();
public int this[int x] {{ get; set; }}
public static Program operator +(Program p1, Program p2);
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Imports System.Reflection
<DefaultMember(""Item"")>
Public Class [|Program|]
Public Sub New()
Default Public Property Item(x As Integer) As Integer
Public Shared Operator +(p1 As Program, p2 As Program) As Program
End Class",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public class [|Program|]
{{
public int this[int x]
{{
get
{{
return 0;
}}
set
{{
}}
}}
public static Program operator +(Program p1, Program p2)
{{
return new Program();
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public class [|Program|]
{{
public int this[int x]
{{
get
{{
return 0;
}}
set
{{
}}
}}
public static Program operator +(Program p1, Program p2)
{{
return new Program();
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(15387, "https://github.com/dotnet/roslyn/issues/15387")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestComImport1(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = @"
using System.Runtime.InteropServices;
[ComImport]
[Guid(""666A175D-2448-447A-B786-CCC82CBEF156"")]
public interface IComImport
{
void MOverload();
void X();
void MOverload(int i);
int Prop { get; }
}";
var symbolName = "IComImport";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
using System.Runtime.InteropServices;
[Guid(""666A175D-2448-447A-B786-CCC82CBEF156"")]
public interface [|IComImport|]
{{
void MOverload();
void X();
void MOverload(int i);
int Prop {{ get; }}
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Imports System.Runtime.InteropServices
<Guid(""666A175D-2448-447A-B786-CCC82CBEF156"")>
Public Interface [|IComImport|]
ReadOnly Property Prop As Integer
Sub MOverload()
Sub X()
Sub MOverload(i As Integer)
End Interface",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System.Runtime.InteropServices;
[ComImport]
[Guid(""666A175D-2448-447A-B786-CCC82CBEF156"")]
public interface [|IComImport|]
{{
int Prop {{ get; }}
void MOverload();
void X();
void MOverload(int i);
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System.Runtime.InteropServices;
[ComImport]
[Guid(""666A175D-2448-447A-B786-CCC82CBEF156"")]
public interface [|IComImport|]
{{
int Prop {{ get; }}
void MOverload();
void X();
void MOverload(int i);
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestOptionalParameterWithDefaultLiteral(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = @"
using System.Threading;
public class C {
public void M(CancellationToken cancellationToken = default(CancellationToken)) { }
}";
var symbolName = "C";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
using System.Threading;
public class [|C|]
{{
public C();
public void M(CancellationToken cancellationToken = default);
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Imports System.Threading
Public Class [|C|]
Public Sub New()
Public Sub M(Optional cancellationToken As CancellationToken = Nothing)
End Class",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System.Threading;
public class [|C|]
{{
public void M(CancellationToken cancellationToken = default(CancellationToken))
{{
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System.Threading;
public class [|C|]
{{
public void M(CancellationToken cancellationToken = default(CancellationToken))
{{
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
var languageVersion = language switch
{
OriginatingProjectLanguage.CSharp => "7.1",
OriginatingProjectLanguage.VisualBasic => "15.5",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly, languageVersion: languageVersion);
}
[WorkItem(446567, "https://devdiv.visualstudio.com/DevDiv/_workitems?id=446567")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestDocCommentsWithUnixNewLine(OriginatingProjectLanguage language, bool signaturesOnly)
{
var source = @"
using System;
/// <summary>T:IGoo" + "\n/// ABCDE\n" + @"/// FGHIJK</summary>
public interface IGoo
{
/// <summary>P:IGoo.Prop1" + "\n/// ABCDE\n" + @"/// FGHIJK</summary>
Uri Prop1 { get; set; }
/// <summary>M:IGoo.Method1" + "\n/// ABCDE\n" + @"/// FGHIJK</summary>
Uri Method1();
}
";
var symbolName = "IGoo";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
using System;
//
// {FeaturesResources.Summary_colon}
// T:IGoo ABCDE FGHIJK
public interface [|IGoo|]
{{
//
// {FeaturesResources.Summary_colon}
// P:IGoo.Prop1 ABCDE FGHIJK
Uri Prop1 {{ get; set; }}
//
// {FeaturesResources.Summary_colon}
// M:IGoo.Method1 ABCDE FGHIJK
Uri Method1();
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Imports System
'
' {FeaturesResources.Summary_colon}
' T:IGoo ABCDE FGHIJK
Public Interface [|IGoo|]
'
' {FeaturesResources.Summary_colon}
' P:IGoo.Prop1 ABCDE FGHIJK
Property Prop1 As Uri
'
' {FeaturesResources.Summary_colon}
' M:IGoo.Method1 ABCDE FGHIJK
Function Method1() As Uri
End Interface",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System;
public interface [|IGoo|]
{{
Uri Prop1 {{ get; set; }}
Uri Method1();
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "System.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System;
public interface [|IGoo|]
{{
Uri Prop1 {{ get; set; }}
Uri Method1();
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "System.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(source, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly, includeXmlDocComments: true);
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestUnmanagedCSharpConstraint_Type()
{
var metadata = @"using System;
public class TestType<T> where T : unmanaged
{
}";
var sourceWithSymbolReference = @"
class C
{
void M()
{
var obj = new [|TestType|]<int>();
}
}";
var expected = $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public class [|TestType|]<T> where T : unmanaged
{{
public TestType();
}}";
using var context = TestContext.Create(
LanguageNames.CSharp,
SpecializedCollections.SingletonEnumerable(metadata),
includeXmlDocComments: false,
languageVersion: "7.3",
sourceWithSymbolReference: sourceWithSymbolReference);
var navigationSymbol = await context.GetNavigationSymbolAsync();
var metadataAsSourceFile = await context.GenerateSourceAsync(navigationSymbol);
TestContext.VerifyResult(metadataAsSourceFile, expected);
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestUnmanagedCSharpConstraint_Method()
{
var metadata = @"using System;
public class TestType
{
public void M<T>() where T : unmanaged
{
}
}";
var sourceWithSymbolReference = @"
class C
{
void M()
{
var obj = new TestType().[|M|]<int>();
}
}";
var expected = $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public class TestType
{{
public TestType();
public void [|M|]<T>() where T : unmanaged;
}}";
using var context = TestContext.Create(
LanguageNames.CSharp,
SpecializedCollections.SingletonEnumerable(metadata),
includeXmlDocComments: false,
languageVersion: "7.3",
sourceWithSymbolReference: sourceWithSymbolReference);
var navigationSymbol = await context.GetNavigationSymbolAsync();
var metadataAsSourceFile = await context.GenerateSourceAsync(navigationSymbol);
TestContext.VerifyResult(metadataAsSourceFile, expected);
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestUnmanagedCSharpConstraint_Delegate()
{
var metadata = @"using System;
public delegate void D<T>() where T : unmanaged;";
var sourceWithSymbolReference = @"
class C
{
void M([|D|]<int> lambda)
{
}
}";
var expected = $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public delegate void [|D|]<T>() where T : unmanaged;";
using var context = TestContext.Create(
LanguageNames.CSharp,
SpecializedCollections.SingletonEnumerable(metadata),
includeXmlDocComments: false,
languageVersion: "7.3",
sourceWithSymbolReference: sourceWithSymbolReference);
var navigationSymbol = await context.GetNavigationSymbolAsync();
var metadataAsSourceFile = await context.GenerateSourceAsync(navigationSymbol);
TestContext.VerifyResult(metadataAsSourceFile, expected);
}
[WorkItem(29786, "https://github.com/dotnet/roslyn/issues/29786")]
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestSByteMinValue()
{
var source = @"
class C
{
sbyte Goo = sbyte.[|MinValue|];
}";
var expected = "public const SByte MinValue = -128;";
await GenerateAndVerifySourceLineAsync(source, LanguageNames.CSharp, expected);
}
[WorkItem(29786, "https://github.com/dotnet/roslyn/issues/29786")]
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestSByteMinValueVB()
{
var source = @"
Class C
Public Goo = SByte.[|MinValue|]
End Class";
var expected = "Public Const MinValue As [SByte] = -128";
await GenerateAndVerifySourceLineAsync(source, LanguageNames.VisualBasic, expected);
}
[WorkItem(29786, "https://github.com/dotnet/roslyn/issues/29786")]
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestInt16MinValue()
{
var source = @"
class C
{
short Goo = short.[|MinValue|];
}";
var expected = $"public const Int16 MinValue = -32768;";
await GenerateAndVerifySourceLineAsync(source, LanguageNames.CSharp, expected);
}
[WorkItem(29786, "https://github.com/dotnet/roslyn/issues/29786")]
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestInt16MinValueVB()
{
var source = @"
Class C
Public Goo = Short.[|MinValue|]
End Class";
var expected = $"Public Const MinValue As Int16 = -32768";
await GenerateAndVerifySourceLineAsync(source, LanguageNames.VisualBasic, expected);
}
[WorkItem(29786, "https://github.com/dotnet/roslyn/issues/29786")]
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestInt32MinValue()
{
var source = @"
class C
{
int Goo = int.[|MinValue|];
}";
var expected = $"public const Int32 MinValue = -2147483648;";
await GenerateAndVerifySourceLineAsync(source, LanguageNames.CSharp, expected);
}
[WorkItem(29786, "https://github.com/dotnet/roslyn/issues/29786")]
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestInt32MinValueVB()
{
var source = @"
Class C
Public Goo = Integer.[|MinValue|]
End Class";
var expected = $"Public Const MinValue As Int32 = -2147483648";
await GenerateAndVerifySourceLineAsync(source, LanguageNames.VisualBasic, expected);
}
[WorkItem(29786, "https://github.com/dotnet/roslyn/issues/29786")]
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestInt64MinValue()
{
var source = @"
class C
{
long Goo = long.[|MinValue|];
}";
var expected = $"public const Int64 MinValue = -9223372036854775808;";
await GenerateAndVerifySourceLineAsync(source, LanguageNames.CSharp, expected);
}
[WorkItem(29786, "https://github.com/dotnet/roslyn/issues/29786")]
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestInt64MinValueVB()
{
var source = @"
Class C
Public Goo = Long.[|MinValue|]
End Class";
var expected = $"Public Const MinValue As Int64 = -9223372036854775808";
await GenerateAndVerifySourceLineAsync(source, LanguageNames.VisualBasic, expected);
}
[WorkItem(34650, "https://github.com/dotnet/roslyn/issues/34650")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestReadOnlyStruct_ReadOnlyField(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = @"
public readonly struct S
{
public readonly int i;
}
";
var symbolName = "S";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public readonly struct [|S|]
{{
public readonly int i;
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
<IsReadOnlyAttribute>
Public Structure [|S|]
Public ReadOnly i As Integer
End Structure",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public readonly struct [|S|]
{{
public readonly int i;
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public readonly struct [|S|]
{{
public readonly int i;
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(34650, "https://github.com/dotnet/roslyn/issues/34650")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestStruct_ReadOnlyField(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = @"
public struct S
{
public readonly int i;
}
";
var symbolName = "S";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public struct [|S|]
{{
public readonly int i;
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Public Structure [|S|]
Public ReadOnly i As Integer
End Structure",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public struct [|S|]
{{
public readonly int i;
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public struct [|S|]
{{
public readonly int i;
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(34650, "https://github.com/dotnet/roslyn/issues/34650")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestRefStruct(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = @"
public ref struct S
{
}
";
var symbolName = "S";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public ref struct [|S|]
{{
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Imports System
<IsByRefLikeAttribute> <Obsolete(""Types with embedded references are not supported in this version of your compiler."", True)>
Public Structure [|S|]
End Structure",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Size = 1)]
public ref struct [|S|]
{{
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Size = 1)]
public ref struct [|S|]
{{
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(34650, "https://github.com/dotnet/roslyn/issues/34650")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestReadOnlyRefStruct(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = @"
public readonly ref struct S
{
}
";
var symbolName = "S";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public readonly ref struct [|S|]
{{
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Imports System
<IsByRefLikeAttribute> <IsReadOnlyAttribute> <Obsolete(""Types with embedded references are not supported in this version of your compiler."", True)>
Public Structure [|S|]
End Structure",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Size = 1)]
public readonly ref struct [|S|]
{{
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Size = 1)]
public readonly ref struct [|S|]
{{
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(34650, "https://github.com/dotnet/roslyn/issues/34650")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestReadOnlyMethod(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = @"
public struct S
{
public readonly void M() {}
}
";
var symbolName = "S.M";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public struct S
{{
public readonly void [|M|]();
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Public Structure S <IsReadOnlyAttribute>
Public Sub [|M|]()
End Structure",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Size = 1)]
public struct S
{{
public readonly void [|M|]()
{{
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Size = 1)]
public struct S
{{
public readonly void [|M|]()
{{
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(34650, "https://github.com/dotnet/roslyn/issues/34650")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestReadOnlyMethod_InReadOnlyStruct(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = @"
public readonly struct S
{
public void M() {}
}
";
var symbolName = "S.M";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public readonly struct S
{{
public void [|M|]();
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
<IsReadOnlyAttribute>
Public Structure S
Public Sub [|M|]()
End Structure",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Size = 1)]
public readonly struct S
{{
public void [|M|]()
{{
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Size = 1)]
public readonly struct S
{{
public void [|M|]()
{{
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(34650, "https://github.com/dotnet/roslyn/issues/34650")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestStructProperty_ReadOnly(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = @"
public struct S
{
public int P { get; }
}
";
var symbolName = "S.P";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public struct S
{{
public readonly int [|P|] {{ get; }}
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Public Structure S
Public ReadOnly Property [|P|] As Integer
End Structure",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public struct S
{{
public int [|P|] {{ get; }}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public struct S
{{
public int [|P|] {{ get; }}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(34650, "https://github.com/dotnet/roslyn/issues/34650")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestStructProperty_ReadOnly_CSharp7_3(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = @"
public struct S
{
public int P { get; }
}
";
var symbolName = "S.P";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public struct S
{{
public int [|P|] {{ get; }}
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Public Structure S
Public ReadOnly Property [|P|] As Integer
End Structure",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public struct S
{{
public int [|P|] {{ get; }}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public struct S
{{
public int [|P|] {{ get; }}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
var metadataLanguageVersion = language switch
{
OriginatingProjectLanguage.CSharp => "7.3",
OriginatingProjectLanguage.VisualBasic => "Preview",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly, metadataLanguageVersion: metadataLanguageVersion);
}
[WorkItem(34650, "https://github.com/dotnet/roslyn/issues/34650")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestStructProperty_ReadOnlyGet(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = @"
public struct S
{
public readonly int P { get; }
}
";
var symbolName = "S.P";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public struct S
{{
public readonly int [|P|] {{ get; }}
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Public Structure S
Public ReadOnly Property [|P|] As Integer
End Structure",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public struct S
{{
public int [|P|] {{ get; }}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public struct S
{{
public int [|P|] {{ get; }}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(34650, "https://github.com/dotnet/roslyn/issues/34650")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestReadOnlyStructProperty_ReadOnlyGet(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = @"
public readonly struct S
{
public readonly int P { get; }
}
";
var symbolName = "S.P";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public readonly struct S
{{
public int [|P|] {{ get; }}
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
<IsReadOnlyAttribute>
Public Structure S
Public ReadOnly Property [|P|] As Integer
End Structure",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public readonly struct S
{{
public int [|P|] {{ get; }}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
public readonly struct S
{{
public int [|P|] {{ get; }}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(34650, "https://github.com/dotnet/roslyn/issues/34650")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestStructProperty_ReadOnlyGet_Set(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = @"
public struct S
{
public int P { readonly get => 123; set {} }
}
";
var symbolName = "S.P";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public struct S
{{
public int [|P|] {{ readonly get; set; }}
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Public Structure S
Public Property [|P|] As Integer
End Structure",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Size = 1)]
public struct S
{{
public int [|P|]
{{
readonly get
{{
return 123;
}}
set
{{
}}
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Size = 1)]
public struct S
{{
public int [|P|]
{{
readonly get
{{
return 123;
}}
set
{{
}}
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(34650, "https://github.com/dotnet/roslyn/issues/34650")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestStructProperty_Get_ReadOnlySet(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = @"
public struct S
{
public int P { get => 123; readonly set {} }
}
";
var symbolName = "S.P";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public struct S
{{
public int [|P|] {{ get; readonly set; }}
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Public Structure S
Public Property [|P|] As Integer
End Structure",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Size = 1)]
public struct S
{{
public int [|P|]
{{
get
{{
return 123;
}}
readonly set
{{
}}
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Size = 1)]
public struct S
{{
public int [|P|]
{{
get
{{
return 123;
}}
readonly set
{{
}}
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(34650, "https://github.com/dotnet/roslyn/issues/34650")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestStructProperty_ReadOnlyGet_ReadOnlySet(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = @"
public struct S
{
public readonly int P { get => 123; set {} }
}
";
var symbolName = "S.P";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public struct S
{{
public readonly int [|P|] {{ get; set; }}
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Public Structure S
Public Property [|P|] As Integer
End Structure",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Size = 1)]
public struct S
{{
public readonly int [|P|]
{{
get
{{
return 123;
}}
set
{{
}}
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Size = 1)]
public struct S
{{
public readonly int [|P|]
{{
get
{{
return 123;
}}
set
{{
}}
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(34650, "https://github.com/dotnet/roslyn/issues/34650")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestStructIndexer_ReadOnlyGet(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = @"
public struct S
{
public readonly int this[int i] => i;
}
";
var symbolName = "S.Item";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
using System.Reflection;
[DefaultMember(""Item"")]
public struct S
{{
public readonly int [|this|][int i] {{ get; }}
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Imports System.Reflection
<DefaultMember(""Item"")>
Public Structure S
Default Public ReadOnly Property [|Item|](i As Integer) As Integer
End Structure",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Size = 1)]
public struct S
{{
public readonly int [|this|][int i] => i;
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Size = 1)]
public struct S
{{
public readonly int [|this|][int i] => i;
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(34650, "https://github.com/dotnet/roslyn/issues/34650")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestStructIndexer_ReadOnlyGet_Set(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = @"
public struct S
{
public int this[int i] { readonly get => i; set {} }
}
";
var symbolName = "S.Item";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
using System.Reflection;
[DefaultMember(""Item"")]
public struct S
{{
public int [|this|][int i] {{ readonly get; set; }}
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Imports System.Reflection
<DefaultMember(""Item"")>
Public Structure S
Default Public Property [|Item|](i As Integer) As Integer
End Structure",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Size = 1)]
public struct S
{{
public int [|this|][int i]
{{
readonly get
{{
return i;
}}
set
{{
}}
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Size = 1)]
public struct S
{{
public int [|this|][int i]
{{
readonly get
{{
return i;
}}
set
{{
}}
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(34650, "https://github.com/dotnet/roslyn/issues/34650")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestStruct_ReadOnlyEvent(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = @"
public struct S
{
public readonly event System.Action E { add {} remove {} }
}
";
var symbolName = "S.E";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
using System;
public struct S
{{
public readonly event Action [|E|];
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Imports System
Public Structure S
Public Event [|E|] As Action
End Structure",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Size = 1)]
public struct S
{{
public readonly event Action [|E|]
{{
add
{{
}}
remove
{{
}}
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Size = 1)]
public struct S
{{
public readonly event Action [|E|]
{{
add
{{
}}
remove
{{
}}
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[WorkItem(34650, "https://github.com/dotnet/roslyn/issues/34650")]
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestReadOnlyStruct_ReadOnlyEvent(OriginatingProjectLanguage language, bool signaturesOnly)
{
var metadataSource = @"
public readonly struct S
{
public event System.Action E { add {} remove {} }
}
";
var symbolName = "S.E";
var expected = (language, signaturesOnly) switch
{
(OriginatingProjectLanguage.CSharp, true) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
using System;
public readonly struct S
{{
public event Action [|E|];
}}",
(OriginatingProjectLanguage.VisualBasic, true) => $@"#Region ""{FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null""
' {CodeAnalysisResources.InMemoryAssembly}
#End Region
Imports System
<IsReadOnlyAttribute>
Public Structure S
Public Event [|E|] As Action
End Structure",
(OriginatingProjectLanguage.CSharp, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Size = 1)]
public readonly struct S
{{
public event Action [|E|]
{{
add
{{
}}
remove
{{
}}
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 6)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
(OriginatingProjectLanguage.VisualBasic, false) => $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {FeaturesResources.location_unknown}
// Decompiled with ICSharpCode.Decompiler {ICSharpCodeDecompilerVersion}
#endregion
using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Size = 1)]
public readonly struct S
{{
public event Action [|E|]
{{
add
{{
}}
remove
{{
}}
}}
}}
#if false // {CSharpEditorResources.Decompilation_log}
{string.Format(CSharpEditorResources._0_items_in_cache, 9)}
------------------
{string.Format(CSharpEditorResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}
{string.Format(CSharpEditorResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}
#endif",
_ => throw ExceptionUtilities.Unreachable,
};
await GenerateAndVerifySourceAsync(metadataSource, symbolName, ToLanguageName(language), expected, signaturesOnly: signaturesOnly);
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestNotNullCSharpConstraint_Type()
{
var metadata = @"using System;
public class TestType<T> where T : notnull
{
}";
var sourceWithSymbolReference = @"
class C
{
void M()
{
var obj = new [|TestType|]<int>();
}
}";
var expected = $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public class [|TestType|]<T> where T : notnull
{{
public TestType();
}}";
using var context = TestContext.Create(
LanguageNames.CSharp,
SpecializedCollections.SingletonEnumerable(metadata),
includeXmlDocComments: false,
languageVersion: "8",
sourceWithSymbolReference: sourceWithSymbolReference,
metadataLanguageVersion: "8");
var navigationSymbol = await context.GetNavigationSymbolAsync();
var metadataAsSourceFile = await context.GenerateSourceAsync(navigationSymbol);
TestContext.VerifyResult(metadataAsSourceFile, expected);
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestNotNullCSharpConstraint_Method()
{
var metadata = @"using System;
public class TestType
{
public void M<T>() where T : notnull
{
}
}";
var sourceWithSymbolReference = @"
class C
{
void M()
{
var obj = new TestType().[|M|]<int>();
}
}";
var expected = $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public class TestType
{{
public TestType();
public void [|M|]<T>() where T : notnull;
}}";
using var context = TestContext.Create(
LanguageNames.CSharp,
SpecializedCollections.SingletonEnumerable(metadata),
includeXmlDocComments: false,
languageVersion: "8",
sourceWithSymbolReference: sourceWithSymbolReference,
metadataLanguageVersion: "8");
var navigationSymbol = await context.GetNavigationSymbolAsync();
var metadataAsSourceFile = await context.GenerateSourceAsync(navigationSymbol);
TestContext.VerifyResult(metadataAsSourceFile, expected);
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestNotNullCSharpConstraint_Delegate()
{
var metadata = @"using System;
public delegate void D<T>() where T : notnull;";
var sourceWithSymbolReference = @"
class C
{
void M([|D|]<int> lambda)
{
}
}";
var expected = $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public delegate void [|D|]<T>() where T : notnull;";
using var context = TestContext.Create(
LanguageNames.CSharp,
SpecializedCollections.SingletonEnumerable(metadata),
includeXmlDocComments: false,
languageVersion: "8",
sourceWithSymbolReference: sourceWithSymbolReference,
metadataLanguageVersion: "8");
var navigationSymbol = await context.GetNavigationSymbolAsync();
var metadataAsSourceFile = await context.GenerateSourceAsync(navigationSymbol);
TestContext.VerifyResult(metadataAsSourceFile, expected);
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestNullableEnableDisable1()
{
var metadata = @"
#nullable enable
using System;
public class TestType
{
public void M1(string s)
{
}
#nullable disable
public void M2(string s)
{
}
}";
var sourceWithSymbolReference = @"
class C
{
void M()
{
var obj = new TestType().[|M1|](null);
}
}";
var expected = $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
#nullable enable
public class TestType
{{
public TestType();
public void [|M1|](string s);
#nullable disable
public void M2(string s);
#nullable enable
}}";
using var context = TestContext.Create(
LanguageNames.CSharp,
SpecializedCollections.SingletonEnumerable(metadata),
includeXmlDocComments: false,
languageVersion: "8",
sourceWithSymbolReference: sourceWithSymbolReference,
metadataLanguageVersion: "8");
var navigationSymbol = await context.GetNavigationSymbolAsync();
var metadataAsSourceFile = await context.GenerateSourceAsync(navigationSymbol);
TestContext.VerifyResult(metadataAsSourceFile, expected);
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestNullableEnableDisable2()
{
var metadata = @"
using System;
public class TestType
{
public void M1(string s)
{
}
#nullable enable
public void M2(string s)
{
}
}";
var sourceWithSymbolReference = @"
class C
{
void M()
{
var obj = new TestType().[|M1|](null);
}
}";
var expected = $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
#nullable enable
public class TestType
{{
public TestType();
#nullable disable
public void [|M1|](string s);
#nullable enable
public void M2(string s);
}}";
using var context = TestContext.Create(
LanguageNames.CSharp,
SpecializedCollections.SingletonEnumerable(metadata),
includeXmlDocComments: false,
languageVersion: "8",
sourceWithSymbolReference: sourceWithSymbolReference,
metadataLanguageVersion: "8");
var navigationSymbol = await context.GetNavigationSymbolAsync();
var metadataAsSourceFile = await context.GenerateSourceAsync(navigationSymbol);
TestContext.VerifyResult(metadataAsSourceFile, expected);
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestNullableEnableDisable3()
{
var metadata = @"
#nullable enable
using System;
public class TestType
{
public void M1(string s)
{
}
#nullable disable
public void M2(string s)
{
}
public void M3(string s)
{
}
}";
var sourceWithSymbolReference = @"
class C
{
void M()
{
var obj = new TestType().[|M1|](null);
}
}";
var expected = $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
#nullable enable
public class TestType
{{
public TestType();
public void [|M1|](string s);
#nullable disable
public void M2(string s);
public void M3(string s);
#nullable enable
}}";
using var context = TestContext.Create(
LanguageNames.CSharp,
SpecializedCollections.SingletonEnumerable(metadata),
includeXmlDocComments: false,
languageVersion: "8",
sourceWithSymbolReference: sourceWithSymbolReference,
metadataLanguageVersion: "8");
var navigationSymbol = await context.GetNavigationSymbolAsync();
var metadataAsSourceFile = await context.GenerateSourceAsync(navigationSymbol);
TestContext.VerifyResult(metadataAsSourceFile, expected);
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestNullableEnableDisable4()
{
var metadata = @"
#nullable enable
using System;
public class TestType
{
public void M1(ICloneable s)
{
}
}";
var sourceWithSymbolReference = @"
class C
{
void M()
{
var obj = new TestType().[|M1|](null);
}
}";
var expected = $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
#nullable enable
using System;
public class TestType
{{
public TestType();
public void [|M1|](ICloneable s);
}}";
using var context = TestContext.Create(
LanguageNames.CSharp,
SpecializedCollections.SingletonEnumerable(metadata),
includeXmlDocComments: false,
languageVersion: "8",
sourceWithSymbolReference: sourceWithSymbolReference,
metadataLanguageVersion: "8");
var navigationSymbol = await context.GetNavigationSymbolAsync();
var metadataAsSourceFile = await context.GenerateSourceAsync(navigationSymbol);
TestContext.VerifyResult(metadataAsSourceFile, expected);
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestNullableEnableDisable5()
{
var metadata = @"
#nullable enable
using System;
public class TestType
{
public void M1(ICloneable s)
{
#nullable disable
}
}";
var sourceWithSymbolReference = @"
class C
{
void M()
{
var obj = new TestType().[|M1|](null);
}
}";
var expected = $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
#nullable enable
using System;
public class TestType
{{
public TestType();
public void [|M1|](ICloneable s);
}}";
using var context = TestContext.Create(
LanguageNames.CSharp,
SpecializedCollections.SingletonEnumerable(metadata),
includeXmlDocComments: false,
languageVersion: "8",
sourceWithSymbolReference: sourceWithSymbolReference,
metadataLanguageVersion: "8");
var navigationSymbol = await context.GetNavigationSymbolAsync();
var metadataAsSourceFile = await context.GenerateSourceAsync(navigationSymbol);
TestContext.VerifyResult(metadataAsSourceFile, expected);
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestNullableEnableDisable6()
{
var metadata = @"
#nullable enable
using System;
public class TestType
{
public void M1<T>(T? s) where T : class
{
}
}";
var sourceWithSymbolReference = @"
class C
{
void M()
{
var obj = new TestType().[|M1|]("""");
}
}";
var expected = $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
#nullable enable
public class TestType
{{
public TestType();
public void [|M1|]<T>(T? s) where T : class;
}}";
using var context = TestContext.Create(
LanguageNames.CSharp,
SpecializedCollections.SingletonEnumerable(metadata),
includeXmlDocComments: false,
languageVersion: "8",
sourceWithSymbolReference: sourceWithSymbolReference,
metadataLanguageVersion: "8");
var navigationSymbol = await context.GetNavigationSymbolAsync();
var metadataAsSourceFile = await context.GenerateSourceAsync(navigationSymbol);
TestContext.VerifyResult(metadataAsSourceFile, expected);
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestNullableEnableDisable7()
{
var metadata = @"
#nullable enable
using System;
public class TestType
{
public void M1<T>(T s) where T : class
{
}
}";
var sourceWithSymbolReference = @"
class C
{
void M()
{
var obj = new TestType().[|M1|]("""");
}
}";
var expected = $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
#nullable enable
public class TestType
{{
public TestType();
public void [|M1|]<T>(T s) where T : class;
}}";
using var context = TestContext.Create(
LanguageNames.CSharp,
SpecializedCollections.SingletonEnumerable(metadata),
includeXmlDocComments: false,
languageVersion: "8",
sourceWithSymbolReference: sourceWithSymbolReference,
metadataLanguageVersion: "8");
var navigationSymbol = await context.GetNavigationSymbolAsync();
var metadataAsSourceFile = await context.GenerateSourceAsync(navigationSymbol);
TestContext.VerifyResult(metadataAsSourceFile, expected);
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestNullableEnableDisable8()
{
var metadata = @"
#nullable enable
using System;
public class TestType
{
public void M1<T>(T? s) where T : struct
{
}
}";
var sourceWithSymbolReference = @"
class C
{
void M()
{
var obj = new TestType().[|M1|]((int?)0);
}
}";
var expected = $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public class TestType
{{
public TestType();
public void [|M1|]<T>(T? s) where T : struct;
}}";
using var context = TestContext.Create(
LanguageNames.CSharp,
SpecializedCollections.SingletonEnumerable(metadata),
includeXmlDocComments: false,
languageVersion: "8",
sourceWithSymbolReference: sourceWithSymbolReference,
metadataLanguageVersion: "8");
var navigationSymbol = await context.GetNavigationSymbolAsync();
var metadataAsSourceFile = await context.GenerateSourceAsync(navigationSymbol);
TestContext.VerifyResult(metadataAsSourceFile, expected);
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestNullableEnableDisable9()
{
var metadata = @"
#nullable enable
using System;
public class TestType
{
public void M1<T>(T s) where T : struct
{
}
}";
var sourceWithSymbolReference = @"
class C
{
void M()
{
var obj = new TestType().[|M1|](0);
}
}";
var expected = $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public class TestType
{{
public TestType();
public void [|M1|]<T>(T s) where T : struct;
}}";
using var context = TestContext.Create(
LanguageNames.CSharp,
SpecializedCollections.SingletonEnumerable(metadata),
includeXmlDocComments: false,
languageVersion: "8",
sourceWithSymbolReference: sourceWithSymbolReference,
metadataLanguageVersion: "8");
var navigationSymbol = await context.GetNavigationSymbolAsync();
var metadataAsSourceFile = await context.GenerateSourceAsync(navigationSymbol);
TestContext.VerifyResult(metadataAsSourceFile, expected);
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestNullableEnableDisable10()
{
var metadata = @"
#nullable enable
using System;
public class TestType
{
public void M1<T>(T s)
{
}
}";
var sourceWithSymbolReference = @"
class C
{
void M()
{
var obj = new TestType().[|M1|]("""");
}
}";
var expected = $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public class TestType
{{
public TestType();
public void [|M1|]<T>(T s);
}}";
using var context = TestContext.Create(
LanguageNames.CSharp,
SpecializedCollections.SingletonEnumerable(metadata),
includeXmlDocComments: false,
languageVersion: "8",
sourceWithSymbolReference: sourceWithSymbolReference,
metadataLanguageVersion: "8");
var navigationSymbol = await context.GetNavigationSymbolAsync();
var metadataAsSourceFile = await context.GenerateSourceAsync(navigationSymbol);
TestContext.VerifyResult(metadataAsSourceFile, expected);
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestNullableEnableDisable11()
{
var metadata = @"
using System;
public class TestType
{
public void M1<T>(T s)
{
}
}";
var sourceWithSymbolReference = @"
class C
{
void M()
{
var obj = new TestType().[|M1|]("""");
}
}";
var expected = $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public class TestType
{{
public TestType();
public void [|M1|]<T>(T s);
}}";
using var context = TestContext.Create(
LanguageNames.CSharp,
SpecializedCollections.SingletonEnumerable(metadata),
includeXmlDocComments: false,
languageVersion: "8",
sourceWithSymbolReference: sourceWithSymbolReference,
metadataLanguageVersion: "8");
var navigationSymbol = await context.GetNavigationSymbolAsync();
var metadataAsSourceFile = await context.GenerateSourceAsync(navigationSymbol);
TestContext.VerifyResult(metadataAsSourceFile, expected);
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestNullableEnableDisable12()
{
var metadata = @"
#nullable enable
using System;
namespace N
{
public class TestType
{
public void M1(string s)
{
}
#nullable disable
public void M2(string s)
{
}
}
}";
var sourceWithSymbolReference = @"
class C
{
void M()
{
var obj = new N.TestType().[|M1|](null);
}
}";
var expected = $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
#nullable enable
namespace N
{{
public class TestType
{{
public TestType();
public void [|M1|](string s);
#nullable disable
public void M2(string s);
#nullable enable
}}
}}";
using var context = TestContext.Create(
LanguageNames.CSharp,
SpecializedCollections.SingletonEnumerable(metadata),
includeXmlDocComments: false,
languageVersion: "8",
sourceWithSymbolReference: sourceWithSymbolReference,
metadataLanguageVersion: "8");
var navigationSymbol = await context.GetNavigationSymbolAsync();
var metadataAsSourceFile = await context.GenerateSourceAsync(navigationSymbol);
TestContext.VerifyResult(metadataAsSourceFile, expected);
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestNullableEnableDisable13()
{
var metadata = @"
#nullable enable
using System;
public class TestType
{
public void M1(string s)
{
}
#nullable disable
public class Nested
{
public void NestedM(string s)
{
}
}
#nullable enable
public void M2(string s)
{
}
}";
var sourceWithSymbolReference = @"
class C
{
void M()
{
var obj = new TestType().[|M1|](null);
}
}";
var expected = $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
#nullable enable
public class TestType
{{
public TestType();
public void [|M1|](string s);
public void M2(string s);
public class Nested
{{
public Nested();
#nullable disable
public void NestedM(string s);
#nullable enable
}}
}}";
using var context = TestContext.Create(
LanguageNames.CSharp,
SpecializedCollections.SingletonEnumerable(metadata),
includeXmlDocComments: false,
languageVersion: "8",
sourceWithSymbolReference: sourceWithSymbolReference,
metadataLanguageVersion: "8");
var navigationSymbol = await context.GetNavigationSymbolAsync();
var metadataAsSourceFile = await context.GenerateSourceAsync(navigationSymbol);
TestContext.VerifyResult(metadataAsSourceFile, expected);
}
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestDynamic1()
{
var metadata = @"
using System;
public class TestType
{
public void M1(dynamic s)
{
}
}";
var sourceWithSymbolReference = @"
class C
{
void M()
{
var obj = new TestType().[|M1|](null);
}
}";
var expected = $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public class TestType
{{
public TestType();
public void [|M1|](dynamic s);
}}";
using var context = TestContext.Create(
LanguageNames.CSharp,
SpecializedCollections.SingletonEnumerable(metadata),
includeXmlDocComments: false,
languageVersion: "8",
sourceWithSymbolReference: sourceWithSymbolReference,
metadataLanguageVersion: "8");
var navigationSymbol = await context.GetNavigationSymbolAsync();
var metadataAsSourceFile = await context.GenerateSourceAsync(navigationSymbol);
TestContext.VerifyResult(metadataAsSourceFile, expected);
}
[WorkItem(22431, "https://github.com/dotnet/roslyn/issues/22431")]
[Fact, Trait(Traits.Feature, Traits.Features.MetadataAsSource)]
public async Task TestCDATAComment()
{
var source = @"
public enum BinaryOperatorKind
{
/// <summary>
/// Represents the <![CDATA['<<']]> operator.
/// </summary>
LeftShift = 0x8,
}
";
var symbolName = "BinaryOperatorKind.LeftShift";
var expectedCS = $@"#region {FeaturesResources.Assembly} ReferencedAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// {CodeAnalysisResources.InMemoryAssembly}
#endregion
public enum BinaryOperatorKind
{{
//
// {FeaturesResources.Summary_colon}
// Represents the '<<' operator.
[|LeftShift|] = 8
}}";
await GenerateAndVerifySourceAsync(source, symbolName, LanguageNames.CSharp, expectedCS, includeXmlDocComments: true);
}
}
}
|
{
"content_hash": "87e696c1d8728a55b7795c88c1642e45",
"timestamp": "",
"source": "github",
"line_count": 5654,
"max_line_length": 193,
"avg_line_length": 37.47382384152812,
"alnum_prop": 0.694737984774185,
"repo_name": "weltkante/roslyn",
"id": "a90d5d81749468af31b40a879a2be4b29566b398",
"size": "211879",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/EditorFeatures/Test/MetadataAsSource/MetadataAsSourceTests.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "1C Enterprise",
"bytes": "257760"
},
{
"name": "Batchfile",
"bytes": "8186"
},
{
"name": "C#",
"bytes": "171389020"
},
{
"name": "C++",
"bytes": "5602"
},
{
"name": "CMake",
"bytes": "11076"
},
{
"name": "Dockerfile",
"bytes": "441"
},
{
"name": "F#",
"bytes": "549"
},
{
"name": "PowerShell",
"bytes": "283194"
},
{
"name": "Shell",
"bytes": "124090"
},
{
"name": "Vim Snippet",
"bytes": "6353"
},
{
"name": "Visual Basic .NET",
"bytes": "74265514"
}
],
"symlink_target": ""
}
|
package org.telegram.api.page.block;
import org.telegram.tl.TLObject;
/**
* @author Ruben Bermudez
* @version 1.0
*/
public abstract class TLAbsPageBlock extends TLObject {
public TLAbsPageBlock() {
super();
}
}
|
{
"content_hash": "d9d5d6c813b99a798a871985a7f1921e",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 55,
"avg_line_length": 17.923076923076923,
"alnum_prop": 0.6781115879828327,
"repo_name": "rubenlagus/TelegramApi",
"id": "ccaa0a32d214b795dbaff997a399e02e4a995bef",
"size": "233",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/org/telegram/api/page/block/TLAbsPageBlock.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "2393726"
}
],
"symlink_target": ""
}
|
import {Exception} from "ts-essentials/target/build/main/lib/Exception";
export class ConcurrencyException extends Exception {
constructor(expectedPlayhead: number, actualPlayhead: number) {
super(`Playhead was expected to be '${expectedPlayhead}' but was '${actualPlayhead}'.`);
}
}
|
{
"content_hash": "6c1b7c77fafe6dd6f6ab9c4c278c9f92",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 96,
"avg_line_length": 43,
"alnum_prop": 0.7375415282392026,
"repo_name": "martyn82/aphajs",
"id": "2e00ec64264cf1c49106af65cebe6890d07543d5",
"size": "302",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/Apha/EventStore/ConcurrencyException.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "TypeScript",
"bytes": "321233"
}
],
"symlink_target": ""
}
|
/*global MM, $, _, escape*/
MM.freemindImport = function (xml, start, progress) {
'use strict';
var nodeStyle = function (node, parentStyle) {
var style = {}, attachment, toStr = function (xmlObj) {
return $('<div>').append(xmlObj).html();
};
if (node.attr('BACKGROUND_COLOR')) {
style.style = {background : node.attr('BACKGROUND_COLOR')};
}
if ((parentStyle && parentStyle.collapsed) || node.attr('FOLDED') === 'true') {
style.collapsed = 'true';
}
attachment = node.children('richcontent').find('body');
if (attachment.length > 0) {
style.attachment = { contentType: 'text/html', content: toStr(attachment.children()) };
}
return style;
},
result,
xmlToJson = function (xmlNode, parentStyle) {
var node = $(xmlNode),
result = {'title' : node.attr('TEXT') || ''},
childNodes = node.children('node'),
style = nodeStyle(node, parentStyle),
children = _.map(childNodes, function (child) {
return xmlToJson(child, style);
}),
childObj = {},
index = 1;
if (_.size(style) > 0) {
result.attr = style;
}
if (children.length > 0) {
_.each(children, function (child) {
var position = $(childNodes[index - 1]).attr('POSITION') === 'left' ? -1 : 1;
childObj[position * index] = child;
index += 1;
});
result.ideas = childObj;
} else if (result.attr && result.attr.collapsed) {
delete result.attr.collapsed;
}
if (progress) {
progress();
}
return result;
},
xmlDoc = $($.parseXML(xml));
if (start) {
start(xmlDoc.find('node').length);
}
result = xmlToJson(xmlDoc.find('map').children('node').first());
result.formatVersion = 2;
return result;
};
/*jslint nomen: true*/
MM.freemindExport = function (idea) {
'use strict';
var formatNode = function (idea) {
var escapedText = escape(idea.title).replace(/%([0-9A-F][0-9A-F])/g, '&#x$1;').replace(/%u([0-9A-F][0-9A-F][0-9A-F][0-9A-F])/g, '&#x$1;');
return '<node ID="' + idea.id + '" TEXT="' + escapedText + '">' + (_.size(idea.ideas) > 0 ? _.map(_.sortBy(idea.ideas, function (val, key) {
return parseFloat(key);
}), formatNode).join('') : '') + '</node>';
};
return '<map version="0.7.1">' + formatNode(idea) + '</map>';
};
|
{
"content_hash": "1b594d4cabcd6654c8f88e0e77977141",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 142,
"avg_line_length": 32.911764705882355,
"alnum_prop": 0.5907059874888293,
"repo_name": "troven/meta4nms",
"id": "94e096cf57b3ac6c238c9e45466ecdefb973fa7b",
"size": "2238",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "todo/src/static/js/vendor/mindmup/lib/freemind-import.js",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "13798"
},
{
"name": "Groovy",
"bytes": "21230"
},
{
"name": "HTML",
"bytes": "26828"
},
{
"name": "JavaScript",
"bytes": "300473"
},
{
"name": "Shell",
"bytes": "11"
}
],
"symlink_target": ""
}
|
#include "sendcoinsentry.h"
#include "ui_sendcoinsentry.h"
#include "guiutil.h"
#include "bitcoinunits.h"
#include "addressbookpage.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#include "addresstablemodel.h"
#include <QApplication>
#include <QClipboard>
SendCoinsEntry::SendCoinsEntry(QWidget *parent) :
QFrame(parent),
ui(new Ui::SendCoinsEntry),
model(0)
{
ui->setupUi(this);
#ifdef Q_OS_MAC
ui->payToLayout->setSpacing(4);
#endif
#if QT_VERSION >= 0x040700
/* Do not move this to the XML file, Qt before 4.7 will choke on it */
ui->addAsLabel->setPlaceholderText(tr("Enter a label for this address to add it to your address book"));
ui->payTo->setPlaceholderText(tr("Enter a Scotcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)"));
#endif
setFocusPolicy(Qt::TabFocus);
setFocusProxy(ui->payTo);
GUIUtil::setupAddressWidget(ui->payTo, this);
}
SendCoinsEntry::~SendCoinsEntry()
{
delete ui;
}
void SendCoinsEntry::on_pasteButton_clicked()
{
// Paste text from clipboard into recipient field
ui->payTo->setText(QApplication::clipboard()->text());
}
void SendCoinsEntry::on_addressBookButton_clicked()
{
if(!model)
return;
AddressBookPage dlg(AddressBookPage::ForSending, AddressBookPage::SendingTab, this);
dlg.setModel(model->getAddressTableModel());
if(dlg.exec())
{
ui->payTo->setText(dlg.getReturnValue());
ui->payAmount->setFocus();
}
}
void SendCoinsEntry::on_payTo_textChanged(const QString &address)
{
if(!model)
return;
// Fill in label from address book, if address has an associated label
QString associatedLabel = model->getAddressTableModel()->labelForAddress(address);
if(!associatedLabel.isEmpty())
ui->addAsLabel->setText(associatedLabel);
}
void SendCoinsEntry::setModel(WalletModel *model)
{
this->model = model;
if(model && model->getOptionsModel())
connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit()));
clear();
}
void SendCoinsEntry::setRemoveEnabled(bool enabled)
{
ui->deleteButton->setEnabled(enabled);
}
void SendCoinsEntry::clear()
{
ui->payTo->clear();
ui->addAsLabel->clear();
ui->payAmount->clear();
ui->payTo->setFocus();
// update the display unit, to not use the default ("BTC")
updateDisplayUnit();
}
void SendCoinsEntry::on_deleteButton_clicked()
{
emit removeEntry(this);
}
bool SendCoinsEntry::validate()
{
// Check input validity
bool retval = true;
if(!ui->payAmount->validate())
{
retval = false;
}
else
{
if(ui->payAmount->value() <= 0)
{
// Cannot send 0 coins or less
ui->payAmount->setValid(false);
retval = false;
}
}
if(!ui->payTo->hasAcceptableInput() ||
(model && !model->validateAddress(ui->payTo->text())))
{
ui->payTo->setValid(false);
retval = false;
}
return retval;
}
SendCoinsRecipient SendCoinsEntry::getValue()
{
SendCoinsRecipient rv;
rv.address = ui->payTo->text();
rv.label = ui->addAsLabel->text();
rv.amount = ui->payAmount->value();
return rv;
}
QWidget *SendCoinsEntry::setupTabChain(QWidget *prev)
{
QWidget::setTabOrder(prev, ui->payTo);
QWidget::setTabOrder(ui->payTo, ui->addressBookButton);
QWidget::setTabOrder(ui->addressBookButton, ui->pasteButton);
QWidget::setTabOrder(ui->pasteButton, ui->deleteButton);
QWidget::setTabOrder(ui->deleteButton, ui->addAsLabel);
return ui->payAmount->setupTabChain(ui->addAsLabel);
}
void SendCoinsEntry::setValue(const SendCoinsRecipient &value)
{
ui->payTo->setText(value.address);
ui->addAsLabel->setText(value.label);
ui->payAmount->setValue(value.amount);
}
void SendCoinsEntry::setAddress(const QString &address)
{
ui->payTo->setText(address);
ui->payAmount->setFocus();
}
bool SendCoinsEntry::isClear()
{
return ui->payTo->text().isEmpty();
}
void SendCoinsEntry::setFocus()
{
ui->payTo->setFocus();
}
void SendCoinsEntry::updateDisplayUnit()
{
if(model && model->getOptionsModel())
{
// Update payAmount with the current unit
ui->payAmount->setDisplayUnit(model->getOptionsModel()->getDisplayUnit());
}
}
|
{
"content_hash": "3cf6acd14fc6297da8e65856089f84bc",
"timestamp": "",
"source": "github",
"line_count": 179,
"max_line_length": 108,
"avg_line_length": 24.223463687150836,
"alnum_prop": 0.6695110701107011,
"repo_name": "scotcoin/scotcoin",
"id": "8bf10e09f1498066571bb9ef626f276c737a6acf",
"size": "4336",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/qt/sendcoinsentry.cpp",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "103127"
},
{
"name": "C++",
"bytes": "2473717"
},
{
"name": "CSS",
"bytes": "1127"
},
{
"name": "IDL",
"bytes": "27679"
},
{
"name": "Objective-C",
"bytes": "5711"
},
{
"name": "Python",
"bytes": "3773"
},
{
"name": "Shell",
"bytes": "8172"
},
{
"name": "TypeScript",
"bytes": "5237526"
}
],
"symlink_target": ""
}
|
package main
import (
goflag "flag"
"fmt"
"math/rand"
"os"
"runtime"
"time"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
genericapiserver "k8s.io/apiserver/pkg/server"
utilflag "k8s.io/component-base/cli/flag"
"k8s.io/component-base/logs"
"github.com/openshift/library-go/pkg/serviceability"
openshift_integrated_oauth_server "github.com/openshift/oauth-server/pkg/cmd/oauth-server"
"github.com/openshift/openshift-apiserver/pkg/cmd/openshift-apiserver"
"github.com/openshift/openshift-controller-manager/pkg/cmd/openshift-controller-manager"
"github.com/openshift/sdn/pkg/openshift-network-controller"
"github.com/openshift/origin/pkg/version"
)
func main() {
stopCh := genericapiserver.SetupSignalHandler()
rand.Seed(time.Now().UTC().UnixNano())
pflag.CommandLine.SetNormalizeFunc(utilflag.WordSepNormalizeFunc)
pflag.CommandLine.AddGoFlagSet(goflag.CommandLine)
logs.InitLogs()
defer logs.FlushLogs()
defer serviceability.BehaviorOnPanic(os.Getenv("OPENSHIFT_ON_PANIC"), version.Get())()
defer serviceability.Profile(os.Getenv("OPENSHIFT_PROFILE")).Stop()
if len(os.Getenv("GOMAXPROCS")) == 0 {
runtime.GOMAXPROCS(runtime.NumCPU())
}
command := NewHyperShiftCommand(stopCh)
if err := command.Execute(); err != nil {
fmt.Fprintf(os.Stderr, "%v\n", err)
os.Exit(1)
}
}
func NewHyperShiftCommand(stopCh <-chan struct{}) *cobra.Command {
cmd := &cobra.Command{
Use: "hypershift",
Short: "Combined server command for OpenShift",
Run: func(cmd *cobra.Command, args []string) {
cmd.Help()
os.Exit(1)
},
}
startOpenShiftAPIServer := openshift_apiserver.NewOpenShiftAPIServerCommand(openshift_apiserver.RecommendedStartAPIServerName, os.Stdout, os.Stderr, stopCh)
startOpenShiftAPIServer.Deprecated = "will be removed in 4.2"
startOpenShiftAPIServer.Hidden = true
cmd.AddCommand(startOpenShiftAPIServer)
startOpenShiftControllerManager := openshift_controller_manager.NewOpenShiftControllerManagerCommand(openshift_controller_manager.RecommendedStartControllerManagerName, os.Stdout, os.Stderr)
startOpenShiftControllerManager.Deprecated = "will be removed in 4.2"
startOpenShiftControllerManager.Hidden = true
cmd.AddCommand(startOpenShiftControllerManager)
startOpenShiftNetworkController := openshift_network_controller.NewOpenShiftNetworkControllerCommand(openshift_network_controller.RecommendedStartNetworkControllerName, "hypershift", os.Stdout, os.Stderr)
cmd.AddCommand(startOpenShiftNetworkController)
startOsin := openshift_integrated_oauth_server.NewOsinServer(os.Stdout, os.Stderr, stopCh)
startOsin.Use = "openshift-osinserver"
startOsin.Deprecated = "will be removed in 4.0"
startOsin.Hidden = true
cmd.AddCommand(startOsin)
return cmd
}
|
{
"content_hash": "f351830c5ff22a7e820e1fddac74cb35",
"timestamp": "",
"source": "github",
"line_count": 81,
"max_line_length": 205,
"avg_line_length": 33.81481481481482,
"alnum_prop": 0.7845929171230376,
"repo_name": "anpingli/origin",
"id": "e72a485d1e15fa7b69381787cc8c409e77a103c1",
"size": "2739",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "cmd/hypershift/main.go",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Awk",
"bytes": "921"
},
{
"name": "DIGITAL Command Language",
"bytes": "117"
},
{
"name": "Dockerfile",
"bytes": "1668"
},
{
"name": "Go",
"bytes": "11764612"
},
{
"name": "Makefile",
"bytes": "8555"
},
{
"name": "Python",
"bytes": "16765"
},
{
"name": "Shell",
"bytes": "770466"
}
],
"symlink_target": ""
}
|
.ImgGrouponIcon {
background: url("img/grouponIcon.png") no-repeat 0 0;
width: 16px;
height: 16px;
overflow: hidden;
}
.ImgGrouponFeaturedIcon {
background: url("img/groupon_starBg.gif") no-repeat 0 0;
width: 16px;
height: 16px;
overflow: hidden;
}
.groupon_individualCardClass {
font-size: 16px;
font-family: 'Lucida Grande', sans-serif;
overflow: auto;
border-top: 1px solid #B2B2B2;
border-left: 1px solid #B2B2B2;
border-bottom: 1px solid #6E6E6E;
border-right: 1px solid #6E6E6E;
display: block;
z-index: 9000;
position: relative;
}
.groupon_cardDiv {
background: #FFFFFC;
border-bottom: 1px solid #6E6E6E;
border-right: 1px solid #6E6E6E;
}
.groupon_axnClass {
font-size: 16px;
font-family: 'Lucida Grande', sans-serif;
overflow: auto;
border-top: 1px solid #B2B2B2;
border-bottom: 2px solid #6E6E6E;
border-left: 1px solid #B2B2B2;
border-right: 2px solid #6E6E6E;
display: block;
z-index: 9001;
}
.groupon_normalDealsBgColor {
background-image: url(img/groupon_normalBg.gif);
}
.groupon_featuredDealsBgColor {
background-image: url(img/groupon_featuredBg.png);
}
|
{
"content_hash": "02cb0e11eb7ef8e76bd1720050fc5740",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 57,
"avg_line_length": 22.30188679245283,
"alnum_prop": 0.6802030456852792,
"repo_name": "nico01f/z-pec",
"id": "e053706d9fc7abe83e502e6d45097d16b9fccd33",
"size": "1182",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Zimlet/src/zimlet/com_zimbra_groupon/groupon.css",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "18110"
},
{
"name": "C",
"bytes": "61139"
},
{
"name": "C#",
"bytes": "1461640"
},
{
"name": "C++",
"bytes": "723279"
},
{
"name": "CSS",
"bytes": "2648118"
},
{
"name": "Groff",
"bytes": "15389"
},
{
"name": "HTML",
"bytes": "83875860"
},
{
"name": "Java",
"bytes": "49998455"
},
{
"name": "JavaScript",
"bytes": "39307223"
},
{
"name": "Makefile",
"bytes": "13060"
},
{
"name": "PHP",
"bytes": "4263"
},
{
"name": "PLSQL",
"bytes": "17047"
},
{
"name": "Perl",
"bytes": "2030870"
},
{
"name": "PowerShell",
"bytes": "1485"
},
{
"name": "Python",
"bytes": "129210"
},
{
"name": "Shell",
"bytes": "575209"
},
{
"name": "XSLT",
"bytes": "20635"
}
],
"symlink_target": ""
}
|
using System;
using Umbraco.Core.Cache;
using Umbraco.Core.Models.Membership;
using Umbraco.Core.Persistence.Repositories;
using Umbraco.Core.Persistence.Repositories.Implement;
namespace Umbraco.Web.Cache
{
/// <summary>
/// Handles User group cache invalidation/refreshing
/// </summary>
/// <remarks>
/// This also needs to clear the user cache since IReadOnlyUserGroup's are attached to IUser objects
/// </remarks>
public sealed class UserGroupCacheRefresher : CacheRefresherBase<UserGroupCacheRefresher>
{
public UserGroupCacheRefresher(CacheHelper cacheHelper)
: base(cacheHelper)
{ }
#region Define
protected override UserGroupCacheRefresher This => this;
public static readonly Guid UniqueId = Guid.Parse("45178038-B232-4FE8-AA1A-F2B949C44762");
public override Guid RefresherUniqueId => UniqueId;
public override string Name => "User Group Cache Refresher";
#endregion
#region Refresher
public override void RefreshAll()
{
ClearAllIsolatedCacheByEntityType<IUserGroup>();
var userGroupCache = CacheHelper.IsolatedRuntimeCache.GetCache<IUserGroup>();
if (userGroupCache)
{
userGroupCache.Result.ClearCacheByKeySearch(UserGroupRepository.GetByAliasCacheKeyPrefix);
}
//We'll need to clear all user cache too
ClearAllIsolatedCacheByEntityType<IUser>();
base.RefreshAll();
}
public override void Refresh(int id)
{
Remove(id);
base.Refresh(id);
}
public override void Remove(int id)
{
var userGroupCache = CacheHelper.IsolatedRuntimeCache.GetCache<IUserGroup>();
if (userGroupCache)
{
userGroupCache.Result.ClearCacheItem(RepositoryCacheKeys.GetKey<IUserGroup>(id));
userGroupCache.Result.ClearCacheByKeySearch(UserGroupRepository.GetByAliasCacheKeyPrefix);
}
//we don't know what user's belong to this group without doing a look up so we'll need to just clear them all
ClearAllIsolatedCacheByEntityType<IUser>();
base.Remove(id);
}
#endregion
}
}
|
{
"content_hash": "0a1622ffaba379fa9c6c70f0ac031b65",
"timestamp": "",
"source": "github",
"line_count": 73,
"max_line_length": 121,
"avg_line_length": 31.80821917808219,
"alnum_prop": 0.6455641688199828,
"repo_name": "lars-erik/Umbraco-CMS",
"id": "deb49ad624ce9419cb62d451af3e88e5fe5f6b8b",
"size": "2324",
"binary": false,
"copies": "1",
"ref": "refs/heads/temp8-u4-11427-remove-propertyinjection",
"path": "src/Umbraco.Web/Cache/UserGroupCacheRefresher.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ASP",
"bytes": "753790"
},
{
"name": "ActionScript",
"bytes": "11355"
},
{
"name": "Batchfile",
"bytes": "10962"
},
{
"name": "C#",
"bytes": "11869028"
},
{
"name": "CSS",
"bytes": "287452"
},
{
"name": "Erlang",
"bytes": "1782"
},
{
"name": "HTML",
"bytes": "497648"
},
{
"name": "JavaScript",
"bytes": "2430525"
},
{
"name": "PowerShell",
"bytes": "1212"
},
{
"name": "Python",
"bytes": "876"
},
{
"name": "Ruby",
"bytes": "765"
},
{
"name": "XSLT",
"bytes": "49960"
}
],
"symlink_target": ""
}
|
require 'rails_helper'
describe FormSubmissionData do
let(:klass) { described_class.to_s.underscore.to_sym }
describe 'validations' do
describe 'presence' do
it(:form_submission) { expect(build(klass, form_submission: nil)).not_to be_valid }
end
end
it '#respond_to?' do
expect(build(klass)).to respond_to(:form_submission)
end
end
|
{
"content_hash": "19bd0a74ca4f21bbabfe6abd62f6f113",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 89,
"avg_line_length": 24.2,
"alnum_prop": 0.6942148760330579,
"repo_name": "udongo/udongo",
"id": "b5b6646686439c020a774a49b15ad4db8596a1ca",
"size": "363",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop",
"path": "spec/models/form_submission_data_spec.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "4482"
},
{
"name": "HTML",
"bytes": "106664"
},
{
"name": "JavaScript",
"bytes": "23651"
},
{
"name": "Ruby",
"bytes": "461668"
}
],
"symlink_target": ""
}
|
package com.uwetrottmann.tmdb.entities;
import com.uwetrottmann.tmdb.TmdbEntity;
public class Trailer implements TmdbEntity {
private static final long serialVersionUID = -4420680473038571645L;
public String name;
public String size;
public String source;
}
|
{
"content_hash": "c11046b84e901adab186c86be58fe1a6",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 71,
"avg_line_length": 20,
"alnum_prop": 0.7678571428571429,
"repo_name": "UweTrottmann/MovieTracker",
"id": "55258e622b440819fd368cca7db3b59a82c21d5c",
"size": "881",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "SeriesGuideMovies/src/com/uwetrottmann/tmdb/entities/Trailer.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "1859086"
}
],
"symlink_target": ""
}
|
package com.example.retrofit.entity.resulte;
/**
* 上传回调结果
* Created by WZG on 2016/10/20.
*/
public class UploadResulte {
/**
* headImgUrl : http://www.izaodao.com/uc/data/avatar/004/81/14/20_avatar_middle.jpg?timestamp=1476943817
*/
private String headImgUrl;
public String getHeadImgUrl() {
return headImgUrl;
}
public void setHeadImgUrl(String headImgUrl) {
this.headImgUrl = headImgUrl;
}
}
|
{
"content_hash": "4b71b09b0eb2e133c8794930490f86e8",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 109,
"avg_line_length": 19.73913043478261,
"alnum_prop": 0.6585903083700441,
"repo_name": "wzgiceman/RxjavaRetrofitDemo-string-master",
"id": "ed7a80122cdcf203bfb9548f57d3d8d07005737a",
"size": "466",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "app/src/main/java/com/example/retrofit/entity/resulte/UploadResulte.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "9221"
},
{
"name": "Java",
"bytes": "88863"
}
],
"symlink_target": ""
}
|
from amino.test.sure_ext import install_assertion_builder, AssBuilder
class SureSpec:
def setup(self) -> None:
install_assertion_builder(AssBuilder) # type: ignore
__all__ = ('SureSpec',)
|
{
"content_hash": "d4ea8db761dcfc5e9d09d1c37ae1bacd",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 69,
"avg_line_length": 22.77777777777778,
"alnum_prop": 0.6926829268292682,
"repo_name": "tek/amino",
"id": "9c9eb6b07922a319a1a540fc62ecd16896d3a0f5",
"size": "205",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "amino/test/sure.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "341735"
}
],
"symlink_target": ""
}
|
import httplib as http
import time
from flask import request
from modularodm.exceptions import ValidationError, ValidationValueError
from framework import forms
from framework import status
from framework.auth import cas
from framework.auth import User, get_user
from framework.auth.core import generate_confirm_token
from framework.auth.decorators import collect_auth, must_be_logged_in
from framework.auth.forms import PasswordForm, SetEmailAndPasswordForm
from framework.auth.signals import user_registered
from framework.auth.utils import validate_email
from framework.exceptions import HTTPError
from framework.flask import redirect # VOL-aware redirect
from framework.sessions import session
from framework.transactions.handlers import no_auto_transaction
from website import mails
from website import language
from website import security
from website import settings
from website.models import Node
from website.profile import utils as profile_utils
from website.project.decorators import (must_have_permission, must_be_valid_project,
must_not_be_registration, must_be_contributor_or_public, must_be_contributor)
from website.project.model import has_anonymous_link
from website.project.signals import unreg_contributor_added, contributor_added
from website.util import web_url_for, is_json_request
from website.util.permissions import expand_permissions, ADMIN
from website.util import sanitize
@collect_auth
@must_be_valid_project(retractions_valid=True)
def get_node_contributors_abbrev(auth, node, **kwargs):
anonymous = has_anonymous_link(node, auth)
formatter = 'surname'
max_count = kwargs.get('max_count', 3)
if 'user_ids' in kwargs:
users = [
User.load(user_id) for user_id in kwargs['user_ids']
if user_id in node.visible_contributor_ids
]
else:
users = node.visible_contributors
if anonymous or not node.can_view(auth):
raise HTTPError(http.FORBIDDEN)
contributors = []
n_contributors = len(users)
others_count = ''
for index, user in enumerate(users[:max_count]):
if index == max_count - 1 and len(users) > max_count:
separator = ' &'
others_count = str(n_contributors - 3)
elif index == len(users) - 1:
separator = ''
elif index == len(users) - 2:
separator = ' &'
else:
separator = ','
contributor = user.get_summary(formatter)
contributor['user_id'] = user._primary_key
contributor['separator'] = separator
contributors.append(contributor)
return {
'contributors': contributors,
'others_count': others_count,
}
@collect_auth
@must_be_valid_project(retractions_valid=True)
def get_contributors(auth, node, **kwargs):
# Can set limit to only receive a specified number of contributors in a call to this route
if request.args.get('limit'):
try:
limit = int(request.args['limit'])
except ValueError:
raise HTTPError(http.BAD_REQUEST, data=dict(
message_long='Invalid value for "limit": {}'.format(request.args['limit'])
))
else:
limit = None
anonymous = has_anonymous_link(node, auth)
if anonymous or not node.can_view(auth):
raise HTTPError(http.FORBIDDEN)
# Limit is either an int or None:
# if int, contribs list is sliced to specified length
# if None, contribs list is not sliced
contribs = profile_utils.serialize_contributors(
node.visible_contributors[0:limit],
node=node,
)
# Will either return just contributor list or contributor list + 'more' element
if limit:
return {
'contributors': contribs,
'more': max(0, len(node.visible_contributors) - limit)
}
else:
return {'contributors': contribs}
@must_be_logged_in
@must_be_valid_project
def get_contributors_from_parent(auth, node, **kwargs):
parent = node.parent_node
if not parent:
raise HTTPError(http.BAD_REQUEST)
if not node.can_view(auth):
raise HTTPError(http.FORBIDDEN)
contribs = [
profile_utils.add_contributor_json(contrib)
for contrib in parent.visible_contributors
]
return {'contributors': contribs}
def deserialize_contributors(node, user_dicts, auth, validate=False):
"""View helper that returns a list of User objects from a list of
serialized users (dicts). The users in the list may be registered or
unregistered users.
e.g. ``[{'id': 'abc123', 'registered': True, 'fullname': ..},
{'id': None, 'registered': False, 'fullname'...},
{'id': '123ab', 'registered': False, 'fullname': ...}]
If a dict represents an unregistered user without an ID, creates a new
unregistered User record.
:param Node node: The node to add contributors to
:param list(dict) user_dicts: List of serialized users in the format above.
:param Auth auth:
:param bool validate: Whether to validate and sanitize fields (if necessary)
"""
# Add the registered contributors
contribs = []
for contrib_dict in user_dicts:
fullname = contrib_dict['fullname']
visible = contrib_dict['visible']
email = contrib_dict.get('email')
if validate is True:
# Validate and sanitize inputs as needed. Email will raise error if invalid.
# TODO Edge case bug: validation and saving are performed in same loop, so all in list
# up to the invalid entry will be saved. (communicate to the user what needs to be retried)
fullname = sanitize.strip_html(fullname)
if not fullname:
raise ValidationValueError('Full name field cannot be empty')
if email:
validate_email(email) # Will raise a ValidationError if email invalid
if contrib_dict['id']:
contributor = User.load(contrib_dict['id'])
else:
try:
contributor = User.create_unregistered(
fullname=fullname,
email=email)
contributor.save()
except ValidationValueError:
## FIXME: This suppresses an exception if ID not found & new validation fails; get_user will return None
contributor = get_user(email=email)
# Add unclaimed record if necessary
if (not contributor.is_registered
and node._primary_key not in contributor.unclaimed_records):
contributor.add_unclaimed_record(node=node, referrer=auth.user,
given_name=fullname,
email=email)
contributor.save()
unreg_contributor_added.send(node, contributor=contributor,
auth=auth)
contribs.append({
'user': contributor,
'visible': visible,
'permissions': expand_permissions(contrib_dict.get('permission'))
})
return contribs
@unreg_contributor_added.connect
def finalize_invitation(node, contributor, auth):
record = contributor.get_unclaimed_record(node._primary_key)
if record['email']:
send_claim_email(record['email'], contributor, node, notify=True)
@must_be_valid_project
@must_have_permission(ADMIN)
@must_not_be_registration
def project_contributors_post(auth, node, **kwargs):
""" Add contributors to a node. """
user_dicts = request.json.get('users')
node_ids = request.json.get('node_ids')
if node._id in node_ids:
node_ids.remove(node._id)
if user_dicts is None or node_ids is None:
raise HTTPError(http.BAD_REQUEST)
# Prepare input data for `Node::add_contributors`
try:
contribs = deserialize_contributors(node, user_dicts, auth=auth, validate=True)
except ValidationError as e:
return {'status': 400, 'message': e.message}, 400
node.add_contributors(contributors=contribs, auth=auth)
node.save()
# Disconnect listener to avoid multiple invite emails
unreg_contributor_added.disconnect(finalize_invitation)
for child_id in node_ids:
child = Node.load(child_id)
# Only email unreg users once
try:
child_contribs = deserialize_contributors(
child, user_dicts, auth=auth, validate=True
)
except ValidationError as e:
return {'status': 400, 'message': e.message}, 400
child.add_contributors(contributors=child_contribs, auth=auth)
child.save()
# Reconnect listeners
unreg_contributor_added.connect(finalize_invitation)
return {
'status': 'success',
'contributors': profile_utils.serialize_contributors(
node.visible_contributors,
node=node,
)
}, 201
@no_auto_transaction
@must_be_valid_project # injects project
@must_have_permission(ADMIN)
@must_not_be_registration
def project_manage_contributors(auth, node, **kwargs):
"""Reorder and remove contributors.
:param Auth auth: Consolidated authorization
:param-json list contributors: Ordered list of contributors represented as
dictionaries of the form:
{'id': <id>, 'permission': <One of 'read', 'write', 'admin'>}
:raises: HTTPError(400) if contributors to be removed are not in list
or if no admin users would remain after changes were applied
"""
contributors = request.json.get('contributors')
# Update permissions and order
try:
node.manage_contributors(contributors, auth=auth, save=True)
except ValueError as error:
raise HTTPError(http.BAD_REQUEST, data={'message_long': error.message})
# If user has removed herself from project, alert; redirect to user
# dashboard if node is private, else node dashboard
if not node.is_contributor(auth.user):
status.push_status_message(
'You have removed yourself as a contributor from this project',
kind='success',
trust=False
)
if node.is_public:
return {'redirectUrl': node.url}
return {'redirectUrl': web_url_for('dashboard')}
# Else if user has revoked her admin permissions, alert and stay on
# current page
if not node.has_permission(auth.user, ADMIN):
status.push_status_message(
'You have removed your administrative privileges for this project',
kind='success',
trust=False
)
# Else stay on current page
return {}
@must_be_valid_project # returns project
@must_be_contributor
@must_not_be_registration
def project_remove_contributor(auth, **kwargs):
"""Remove a contributor from a list of nodes.
:param Auth auth: Consolidated authorization
:raises: HTTPError(400) if contributors to be removed are not in list
or if no admin users would remain after changes were applied
"""
contributor_id = request.get_json()['contributorID']
node_ids = request.get_json()['nodeIDs']
contributor = User.load(contributor_id)
if contributor is None:
raise HTTPError(http.BAD_REQUEST, data={'message_long': 'Contributor not found.'})
for node_id in node_ids:
# Update permissions and order
node = Node.load(node_id)
# Forbidden unless user is removing herself
if not node.has_permission(auth.user, 'admin'):
if auth.user != contributor:
raise HTTPError(http.FORBIDDEN)
if len(node.visible_contributor_ids) == 1 \
and node.visible_contributor_ids[0] == contributor._id:
raise HTTPError(http.FORBIDDEN, data={
'message_long': 'Must have at least one bibliographic contributor'
})
nodes_removed = node.remove_contributor(contributor, auth=auth)
# remove_contributor returns false if there is not one admin or visible contributor left after the move.
if not nodes_removed:
raise HTTPError(http.BAD_REQUEST, data={
'message_long': 'Could not remove contributor.'})
# If user has removed herself from project, alert; redirect to user
# dashboard if node is private, else node dashboard
if not node.is_contributor(auth.user):
status.push_status_message(
'You have removed yourself as a contributor from this project',
kind='success',
trust=False
)
if node.is_public:
return {'redirectUrl': node.url}
return {'redirectUrl': web_url_for('dashboard')}
# Else stay on current page
return {}
def get_timestamp():
return int(time.time())
def throttle_period_expired(timestamp, throttle):
return timestamp is None or (get_timestamp() - timestamp) > throttle
def send_claim_registered_email(claimer, unreg_user, node, throttle=24 * 3600):
unclaimed_record = unreg_user.get_unclaimed_record(node._primary_key)
# roll the valid token for each email, thus user cannot change email and approve a different email address
timestamp = unclaimed_record.get('last_sent')
if not throttle_period_expired(timestamp, throttle):
raise HTTPError(400, data=dict(
message_long='User account can only be claimed with an existing user once every 24 hours'
))
unclaimed_record['token'] = generate_confirm_token()
unclaimed_record['claimer_email'] = claimer.username
unreg_user.save()
referrer = User.load(unclaimed_record['referrer_id'])
claim_url = web_url_for(
'claim_user_registered',
uid=unreg_user._primary_key,
pid=node._primary_key,
token=unclaimed_record['token'],
_external=True,
)
# Send mail to referrer, telling them to forward verification link to claimer
mails.send_mail(
referrer.username,
mails.FORWARD_INVITE_REGISTERED,
user=unreg_user,
referrer=referrer,
node=node,
claim_url=claim_url,
fullname=unclaimed_record['name'],
)
unclaimed_record['last_sent'] = get_timestamp()
unreg_user.save()
# Send mail to claimer, telling them to wait for referrer
mails.send_mail(
claimer.username,
mails.PENDING_VERIFICATION_REGISTERED,
fullname=claimer.fullname,
referrer=referrer,
node=node,
)
def send_claim_email(email, user, node, notify=True, throttle=24 * 3600):
"""Send an email for claiming a user account. Either sends to the given email
or the referrer's email, depending on the email address provided.
:param str email: The address given in the claim user form
:param User user: The User record to claim.
:param Node node: The node where the user claimed their account.
:param bool notify: If True and an email is sent to the referrer, an email
will also be sent to the invited user about their pending verification.
:param int throttle: Time period (in seconds) after the referrer is
emailed during which the referrer will not be emailed again.
"""
claimer_email = email.lower().strip()
unclaimed_record = user.get_unclaimed_record(node._primary_key)
referrer = User.load(unclaimed_record['referrer_id'])
claim_url = user.get_claim_url(node._primary_key, external=True)
# If given email is the same provided by user, just send to that email
if unclaimed_record.get('email') == claimer_email:
mail_tpl = mails.INVITE
to_addr = claimer_email
unclaimed_record['claimer_email'] = claimer_email
user.save()
else: # Otherwise have the referrer forward the email to the user
# roll the valid token for each email, thus user cannot change email and approve a different email address
timestamp = unclaimed_record.get('last_sent')
if not throttle_period_expired(timestamp, throttle):
raise HTTPError(400, data=dict(
message_long='User account can only be claimed with an existing user once every 24 hours'
))
unclaimed_record['last_sent'] = get_timestamp()
unclaimed_record['token'] = generate_confirm_token()
unclaimed_record['claimer_email'] = claimer_email
user.save()
claim_url = user.get_claim_url(node._primary_key, external=True)
if notify:
pending_mail = mails.PENDING_VERIFICATION
mails.send_mail(
claimer_email,
pending_mail,
user=user,
referrer=referrer,
fullname=unclaimed_record['name'],
node=node
)
mail_tpl = mails.FORWARD_INVITE
to_addr = referrer.username
mails.send_mail(
to_addr,
mail_tpl,
user=user,
referrer=referrer,
node=node,
claim_url=claim_url,
email=claimer_email,
fullname=unclaimed_record['name']
)
return to_addr
@contributor_added.connect
def notify_added_contributor(node, contributor, auth=None, throttle=None):
throttle = throttle or settings.CONTRIBUTOR_ADDED_EMAIL_THROTTLE
# Exclude forks and templates because the user forking/templating the project gets added
# via 'add_contributor' but does not need to get notified.
# Only email users for projects, or for components where they are not contributors on the parent node.
if (contributor.is_registered and not node.template_node and not node.is_fork and
(not node.parent_node or
(node.parent_node and not node.parent_node.is_contributor(contributor)))):
contributor_record = contributor.contributor_added_email_records.get(node._id, {})
if contributor_record:
timestamp = contributor_record.get('last_sent', None)
if timestamp:
if not throttle_period_expired(timestamp, throttle):
return
else:
contributor.contributor_added_email_records[node._id] = {}
mails.send_mail(
contributor.username,
mails.CONTRIBUTOR_ADDED,
user=contributor,
node=node,
referrer_name=auth.user.fullname if auth else ''
)
contributor.contributor_added_email_records[node._id]['last_sent'] = get_timestamp()
contributor.save()
def verify_claim_token(user, token, pid):
"""View helper that checks that a claim token for a given user and node ID
is valid. If not valid, throws an error with custom error messages.
"""
# if token is invalid, throw an error
if not user.verify_claim_token(token=token, project_id=pid):
if user.is_registered:
error_data = {
'message_short': 'User has already been claimed.',
'message_long': 'Please <a href="/login/">log in</a> to continue.'}
raise HTTPError(400, data=error_data)
else:
return False
return True
@collect_auth
@must_be_valid_project
def claim_user_registered(auth, node, **kwargs):
"""View that prompts user to enter their password in order to claim
contributorship on a project.
A user must be logged in.
"""
current_user = auth.user
sign_out_url = web_url_for('auth_login', logout=True, next=request.url)
if not current_user:
return redirect(sign_out_url)
# Logged in user should not be a contributor the project
if node.is_contributor(current_user):
logout_url = web_url_for('auth_logout', redirect_url=request.url)
data = {
'message_short': 'Already a contributor',
'message_long': ('The logged-in user is already a contributor to this '
'project. Would you like to <a href="{}">log out</a>?').format(logout_url)
}
raise HTTPError(http.BAD_REQUEST, data=data)
uid, pid, token = kwargs['uid'], kwargs['pid'], kwargs['token']
unreg_user = User.load(uid)
if not verify_claim_token(unreg_user, token, pid=node._primary_key):
raise HTTPError(http.BAD_REQUEST)
# Store the unreg_user data on the session in case the user registers
# a new account
session.data['unreg_user'] = {
'uid': uid, 'pid': pid, 'token': token
}
form = PasswordForm(request.form)
if request.method == 'POST':
if form.validate():
if current_user.check_password(form.password.data):
node.replace_contributor(old=unreg_user, new=current_user)
node.save()
status.push_status_message(
'You are now a contributor to this project.',
kind='success')
return redirect(node.url)
else:
status.push_status_message(language.LOGIN_FAILED, kind='warning', trust=True)
else:
forms.push_errors_to_status(form.errors)
if is_json_request():
form_ret = forms.utils.jsonify(form)
user_ret = profile_utils.serialize_user(current_user, full=False)
else:
form_ret = form
user_ret = current_user
return {
'form': form_ret,
'user': user_ret,
'signOutUrl': sign_out_url
}
@user_registered.connect
def replace_unclaimed_user_with_registered(user):
"""Listens for the user_registered signal. If unreg_user is stored in the
session, then the current user is trying to claim themselves as a contributor.
Replaces the old, unregistered contributor with the newly registered
account.
"""
unreg_user_info = session.data.get('unreg_user')
if unreg_user_info:
unreg_user = User.load(unreg_user_info['uid'])
pid = unreg_user_info['pid']
node = Node.load(pid)
node.replace_contributor(old=unreg_user, new=user)
node.save()
status.push_status_message(
'Successfully claimed contributor.', kind='success', trust=False)
@collect_auth
def claim_user_form(auth, **kwargs):
"""View for rendering the set password page for a claimed user.
Must have ``token`` as a querystring argument.
Renders the set password form, validates it, and sets the user's password.
"""
uid, pid = kwargs['uid'], kwargs['pid']
token = request.form.get('token') or request.args.get('token')
# If user is logged in, redirect to 're-enter password' page
if auth.logged_in:
return redirect(web_url_for('claim_user_registered',
uid=uid, pid=pid, token=token))
user = User.load(uid) # The unregistered user
# user ID is invalid. Unregistered user is not in database
if not user:
raise HTTPError(http.BAD_REQUEST)
# If claim token not valid, redirect to registration page
if not verify_claim_token(user, token, pid):
return redirect(web_url_for('auth_login'))
unclaimed_record = user.unclaimed_records[pid]
user.fullname = unclaimed_record['name']
user.update_guessed_names()
# The email can be the original referrer email if no claimer email has been specified.
claimer_email = unclaimed_record.get('claimer_email') or unclaimed_record.get('email')
form = SetEmailAndPasswordForm(request.form, token=token)
if request.method == 'POST':
if form.validate():
username, password = claimer_email, form.password.data
user.register(username=username, password=password)
# Clear unclaimed records
user.unclaimed_records = {}
user.verification_key = security.random_string(20)
user.save()
# Authenticate user and redirect to project page
node = Node.load(pid)
status.push_status_message(language.CLAIMED_CONTRIBUTOR.format(node=node),
kind='success',
trust=True)
# Redirect to CAS and authenticate the user with a verification key.
return redirect(cas.get_login_url(
web_url_for('user_profile', _absolute=True),
auto=True,
username=user.username,
verification_key=user.verification_key
))
else:
forms.push_errors_to_status(form.errors)
return {
'firstname': user.given_name,
'email': claimer_email if claimer_email else '',
'fullname': user.fullname,
'form': forms.utils.jsonify(form) if is_json_request() else form,
}
@must_be_valid_project
@must_have_permission(ADMIN)
@must_not_be_registration
def invite_contributor_post(node, **kwargs):
"""API view for inviting an unregistered user. Performs validation, but does not actually invite the user.
Expects JSON arguments with 'fullname' (required) and email (not required).
"""
fullname = request.json.get('fullname').strip()
email = request.json.get('email')
# Validate and sanitize inputs as needed. Email will raise error if invalid.
fullname = sanitize.strip_html(fullname)
if email:
email = email.lower().strip()
try:
validate_email(email)
except ValidationError as e:
return {'status': 400, 'message': e.message}, 400
if not fullname:
return {'status': 400, 'message': 'Full name field cannot be empty'}, 400
# Check if email is in the database
user = get_user(email=email)
if user:
if user.is_registered:
msg = 'User is already in database. Please go back and try your search again.'
return {'status': 400, 'message': msg}, 400
elif node.is_contributor(user):
msg = 'User with this email address is already a contributor to this project.'
return {'status': 400, 'message': msg}, 400
else:
serialized = profile_utils.add_contributor_json(user)
# use correct display name
serialized['fullname'] = fullname
serialized['email'] = email
else:
# Create a placeholder
serialized = profile_utils.serialize_unregistered(fullname, email)
return {'status': 'success', 'contributor': serialized}
@must_be_contributor_or_public
def claim_user_post(node, **kwargs):
"""View for claiming a user from the X-editable form on a project page.
"""
reqdata = request.json
# Unreg user
user = User.load(reqdata['pk'])
unclaimed_data = user.get_unclaimed_record(node._primary_key)
# Submitted through X-editable
if 'value' in reqdata: # Submitted email address
email = reqdata['value'].lower().strip()
claimer = get_user(email=email)
if claimer and claimer.is_registered:
send_claim_registered_email(claimer=claimer, unreg_user=user,
node=node)
else:
send_claim_email(email, user, node, notify=True)
# TODO(sloria): Too many assumptions about the request data. Just use
elif 'claimerId' in reqdata: # User is logged in and confirmed identity
claimer_id = reqdata['claimerId']
claimer = User.load(claimer_id)
send_claim_registered_email(claimer=claimer, unreg_user=user, node=node)
email = claimer.username
else:
raise HTTPError(http.BAD_REQUEST)
return {
'status': 'success',
'email': email,
'fullname': unclaimed_data['name']
}
|
{
"content_hash": "b151efa299d3531fe405f3e647bc652f",
"timestamp": "",
"source": "github",
"line_count": 725,
"max_line_length": 120,
"avg_line_length": 37.87172413793103,
"alnum_prop": 0.642313435553775,
"repo_name": "billyhunt/osf.io",
"id": "1dfd1849805aa395581ed0a84652ed65380e37b9",
"size": "27482",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop",
"path": "website/project/views/contributor.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "133568"
},
{
"name": "HTML",
"bytes": "58491"
},
{
"name": "JavaScript",
"bytes": "1369885"
},
{
"name": "Mako",
"bytes": "619064"
},
{
"name": "Perl",
"bytes": "13885"
},
{
"name": "Python",
"bytes": "4835804"
},
{
"name": "Shell",
"bytes": "2118"
}
],
"symlink_target": ""
}
|
class UploadController < ApplicationController
def new
if current_user
@upload = Upload.new
else
flash[:alert] = "You must be logged in to upload your bookmarks!"
redirect_to :root
end
end
def create
if params[:upload]
@bookmark_html = params[:upload][:upload_file_name].read
if ParseBookmarks.call(@bookmark_html, current_user) == false
flash[:alert] = "Invalid or empty file!"
redirect_to :new_upload
else
redirect_to user_path(current_user)
end
else
flash[:alert] = "You need to select a file first!"
redirect_to :new_upload
end
end
def destroy
end
private
def file_upload_params
params.require(:upload).permit(:upload_file_name, :upload_content_type, :upload_file_size)
end
end
|
{
"content_hash": "67fe367af81acfddb96e3dca7ba6dfc6",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 94,
"avg_line_length": 22.5,
"alnum_prop": 0.645679012345679,
"repo_name": "larsjx/BookmarkIt-fork",
"id": "e371cee2b04c292097bb033608431725156aefb4",
"size": "810",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/controllers/upload_controller.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "407219"
},
{
"name": "CoffeeScript",
"bytes": "211"
},
{
"name": "HTML",
"bytes": "327403"
},
{
"name": "JavaScript",
"bytes": "344583"
},
{
"name": "Ruby",
"bytes": "59409"
}
],
"symlink_target": ""
}
|
namespace content {
// Tracks a single "bucket" of pending handshakes. For frames and dedicated
// workers there is one object per Page. For shared and service workers there is
// one per profile.
class CONTENT_EXPORT WebTransportThrottleContext final
: public base::SupportsUserData::Data {
public:
// Tracks an ongoing handshake. Passed to the caller of PerformThrottle(),
// which should call one of the methods.
class CONTENT_EXPORT Tracker final {
public:
// Only constructed by WebTransportThrottleContext.
explicit Tracker(
base::WeakPtr<WebTransportThrottleContext> throttle_context);
Tracker(const Tracker&) = delete;
Tracker& operator=(const Tracker&) = delete;
// Destruction of the object without calling one of the methods is treated
// like handshake failure.
~Tracker();
// Records the successful end of a WebTransport handshake.
void OnHandshakeEstablished();
// Records a WebTransport handshake failure.
void OnHandshakeFailed();
private:
base::WeakPtr<WebTransportThrottleContext> throttle_context_;
};
using ThrottleDoneCallback =
base::OnceCallback<void(std::unique_ptr<Tracker>)>;
static constexpr int kMaxPendingSessions = 64;
enum class ThrottleResult {
kOk,
kTooManyPendingSessions,
};
WebTransportThrottleContext();
WebTransportThrottleContext(const WebTransportThrottleContext&) = delete;
WebTransportThrottleContext& operator=(const WebTransportThrottleContext&) =
delete;
~WebTransportThrottleContext() override;
// Attempts to start a new handshake. Returns kTooManyPendingSessions if there
// are already too many pending handshakes. Otherwise, runs the
// `on_throttle_done` closure, possibly synchronously, and returns kOk.
// Immediately before the `on_throttle_done` closure is called the handshake
// is considered started.
ThrottleResult PerformThrottle(ThrottleDoneCallback on_throttle_done);
base::WeakPtr<WebTransportThrottleContext> GetWeakPtr();
private:
// Starts a connection immediately if there are none pending, or sets a timer
// to start one later.
void ScheduleThrottledConnection();
// Calls the throttle done callback on the connection at the head of
// `throttled_connections_`.
void DoOnThrottleDone();
// Starts a connection if there is one waiting, and schedules the timer for
// the next connection.
void StartOneConnection();
// Queues a pending handshake to be considered complete after `after`.
void QueuePending(base::TimeDelta after);
// If there are handshakes in `pending_queue_` that can now be considered
// finished, remove them and decrement `pending_handshakes_`. Recalculates the
// delay for the head of `throttled_connections_` and may trigger it to start
// as a side-effect.
void MaybeDecrementPending();
// Start the timer for removing items from `pending_queue_timer_`, to fire
// after `after` has passed.
void StartPendingQueueTimer(base::TimeDelta after);
int pending_handshakes_ = 0;
// Sessions for which the handshake has completed but we are still counting as
// "pending" for the purposes of throttling. An items is added to this queue
// when the handshake completes, and removed when the timer expires. The "top"
// of the queue is the timer that will expire first.
std::priority_queue<base::TimeTicks,
std::vector<base::TimeTicks>,
std::greater<>>
pending_queue_;
base::queue<ThrottleDoneCallback> throttled_connections_;
// The time that `throttled_connections_[0]` reached the front of the queue.
// This is needed if it gets recheduled by ScheduleThrottledConnection().
base::TimeTicks queue_head_time_;
// A timer that will fire the next time an entry should be removed from
// `pending_queue_`. The timer doesn't run when `throttled_connections_` is
// empty.
base::OneShotTimer pending_queue_timer_;
// A timer that will fire the next time a throttled connection should be
// allowed to proceed. This is a reset when pending_handshakes_ is
// decremented.
base::OneShotTimer throttled_connections_timer_;
base::WeakPtrFactory<WebTransportThrottleContext> weak_factory_{this};
};
} // namespace content
#endif // CONTENT_BROWSER_WEBTRANSPORT_WEB_TRANSPORT_THROTTLE_CONTEXT_H_
|
{
"content_hash": "b48f57c1120eb4e9b479bfe3c19ed7f3",
"timestamp": "",
"source": "github",
"line_count": 117,
"max_line_length": 80,
"avg_line_length": 37.162393162393165,
"alnum_prop": 0.735510579576817,
"repo_name": "nwjs/chromium.src",
"id": "6c4e234443f42873d6617ae146cba806fb113e0c",
"size": "4975",
"binary": false,
"copies": "6",
"ref": "refs/heads/nw70",
"path": "content/browser/webtransport/web_transport_throttle_context.h",
"mode": "33188",
"license": "bsd-3-clause",
"language": [],
"symlink_target": ""
}
|
using System.Collections.Generic;
namespace Telligent.Evolution.Extensions.OpenSearch.Model.Specification
{
public class OpenSearchV1_1 : IOpenSearchSpecification
{
public Dictionary<string, string> Get()
{
return new Dictionary<string, string>
{
{"searchTerms", ""},
{"count", "0"},
{"startIndex", "0"},
{"startPage", "0"},
{"language", "en-Us"},
{"inputEncoding", "UTF-8"},
{"outputEncoding", "UTF-8"}
};
}
}
}
|
{
"content_hash": "222cf6d11b54a15687fb5773efc82c94",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 71,
"avg_line_length": 28.523809523809526,
"alnum_prop": 0.48247078464106846,
"repo_name": "Telligent/Microsoft-SharePoint-Connector",
"id": "ad3b8f7f508aec3897a27934f10d6e752c22552a",
"size": "601",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/Telligent.Evolution.Extensions.OpenSearch/Model/Specification/OpenSearchV1.1.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ASP",
"bytes": "23258"
},
{
"name": "C#",
"bytes": "2025890"
},
{
"name": "CSS",
"bytes": "61139"
},
{
"name": "JavaScript",
"bytes": "540522"
},
{
"name": "PowerShell",
"bytes": "12814"
}
],
"symlink_target": ""
}
|
/** This is a testfile to be run wit mocha.
* Remember to start your node server before and edit config_for_tests for a proper baseURL.
*
* @author Johannes Konert
* @licence CC BY-SA 4.0
*
*/
"use strict";
var should = require('should');
require('should-http');
var request = require('supertest');
var cfg = require('./config_for_tests');
var baseURL = cfg.baseURL; // please change it in file config_for_tests.js
var videoURL = cfg.videoURL;
// some helper objects and function to be send to node ********************************************
var videoURL = baseURL + 'videos';
var codes = cfg.codes;
var videoCorrectMin = cfg.videoCorrectMin;
var videoCorrectMax = cfg.videoCorrectMax;
var videoIncorrectNumber = module.exports.videoIncorrectNumber;
// start of tests ********************************************************************************
describe('Task 1.b JSON Error data', function() {
var videoCorrect1Result = null;
var videoCorrect2Result = null;
describe('/videos REST API POST', function() {
// good POSTs
it('should save a proper POST with required fields and add all missing ones with default-values', function(done) {
var startDate = new Date();
request(videoURL)
.post('/')
.set('Accept-Version', '1.0')
.set('Accept', 'application/json')
.set('Content-Type', 'application/json')
.send(videoCorrectMin)
.expect('Content-Type', /json/)
.expect(codes.created)
.end(function(err, res) {
var stopDate = new Date();
should.not.exist(err);
res.should.be.json();
res.body.should.have.properties(Object.getOwnPropertyNames(videoCorrectMin));
res.body.should.have.ownProperty('id').above(0);
res.body.should.have.ownProperty('timestamp').within(startDate.getTime(), stopDate.getTime());
res.body.should.have.property('playcount', 0);
res.body.should.have.property('ranking', 0);
videoCorrect1Result = res.body;
done();
})
});
it('should save a proper POST with all fields', function(done) {
request(videoURL)
.post('/')
.set('Accept-Version', '1.0')
.set('Accept', 'application/json')
.set('Content-Type', 'application/json')
.send(videoCorrectMax)
.expect('Content-Type', /json/)
.expect(codes.created)
.end(function(err, res) {
should.not.exist(err);
res.should.be.json();
res.body.should.have.properties(Object.getOwnPropertyNames(videoCorrectMax));
res.body.should.have.property('id');
res.body.id.should.be.above(0);
res.body.playcount.should.equal(videoCorrectMax.playcount);
res.body.ranking.should.equal(videoCorrectMax.ranking);
videoCorrect2Result = res.body;
done();
})
});
// bad POSTs
it('should detect a post to wrong URL with id and answer with code 405 and with a JSON error object', function(done) {
request(videoURL)
.post('/123')
.set('Accept-Version', '1.0')
.set('Accept', 'application/json')
.set('Content-Type', 'application/json')
.send(videoCorrectMax)
.expect('Content-Type', /json/)
.expect(codes.wrongmethod)
.end(function(err, res) {
should.not.exist(err);
res.should.be.json();
res.body.should.have.property('error');
res.body.error.should.have.properties('message', 'code');
done();
})
});
// bad POST, body contains nonsense (not JSON)
it('should detect a post with bad body and send status 400 and a JSON error object', function(done) {
request(videoURL)
.post('/')
.set('Accept-Version', '1.0')
.set('Accept', 'application/json')
.set('Content-Type', 'application/json')
.send('this is not proper JSON')
.expect('Content-Type', /json/)
.expect(codes.wrongrequest)
.end(function(err, res) {
should.not.exist(err);
res.should.be.json();
res.body.should.have.property('error');
res.body.error.should.have.properties('message', 'code');
done();
})
});
it('should detect a post with wrong numeric values and answer with code 400 and with a JSON error object', function(done) {
request(videoURL)
.post('/')
.set('Accept-Version', '1.0')
.set('Accept', 'application/json')
.set('Content-Type', 'application/json')
.send(videoIncorrectNumber)
.expect('Content-Type', /json/)
.expect(codes.wrongrequest)
.end(function(err, res) {
should.not.exist(err);
res.should.be.json();
res.body.should.have.property('error');
res.body.error.should.have.properties('message', 'code');
done();
})
});
});
// *******************************************************
describe('/videos REST API PUT', function() {
// good PUTs
it('should save a proper PUT with required fields and change in .length', function(done) {
videoCorrect1Result.length = 4*60+2;
request(videoURL)
.put('/'+videoCorrect1Result.id)
.set('Accept-Version', '1.0')
.set('Accept', 'application/json')
.set('Content-Type', 'application/json')
.send(videoCorrect1Result)
.expect('Content-Type', /json/)
.expect(codes.success)
.end(function(err, res) {
should.not.exist(err);
res.should.be.json();
res.body.should.have.properties(Object.getOwnPropertyNames(videoCorrect1Result));
res.body.should.have.property('id', videoCorrect1Result.id);
res.body.should.have.property('length', videoCorrect1Result.length);
done();
})
});
it('should save a proper PUT with all fields and change in .ranking', function(done) {
videoCorrect2Result.ranking = 13;
request(videoURL)
.put('/'+videoCorrect2Result.id)
.set('Accept-Version', '1.0')
.set('Accept', 'application/json')
.set('Content-Type', 'application/json')
.send(videoCorrect2Result)
.expect('Content-Type', /json/)
.expect(codes.success)
.end(function(err, res) {
should.not.exist(err);
res.should.be.json();
res.body.should.have.properties(Object.getOwnPropertyNames(videoCorrect2Result));
res.body.should.have.property('id', videoCorrect2Result.id);
res.body.should.have.property('ranking', videoCorrect2Result.ranking);
done();
})
});
// bad PUTs
it('should detect a PUT to wrong URL without id and answer with code 405 and with a JSON error object', function(done) {
request(videoURL)
.put('/')
.set('Accept-Version', '1.0')
.set('Accept', 'application/json')
.set('Content-Type', 'application/json')
.send(videoCorrect1Result)
.expect('Content-Type', /json/)
.expect(codes.wrongmethod)
.end(function(err, res) {
should.not.exist(err);
res.should.be.json();
res.body.should.have.property('error');
res.body.error.should.have.properties('message', 'code');
done();
})
});
// bad PUT, body contains nonsense (not JSON)
it('should detect a PUT with bad body and send status 400 and with a JSON error object', function(done) {
request(videoURL)
.put('/'+videoCorrect1Result.id)
.set('Accept-Version', '1.0')
.set('Accept', 'application/json')
.set('Content-Type', 'application/json')
.send('this is not proper JSON')
.expect('Content-Type', /json/)
.expect(codes.wrongrequest)
.end(function(err, res) {
should.not.exist(err);
res.should.be.json();
res.body.should.have.property('error');
res.body.error.should.have.properties('message', 'code');
done();
})
});
// bad PUT, body contains nonsense (not JSON)
it('should detect a PUT with missing id in body and send status 400 and with a JSON error object', function(done) {
var videoCorr1CopyNoId = JSON.parse(JSON.stringify(videoCorrect1Result));
delete videoCorr1CopyNoId.id;
request(videoURL)
.put('/'+videoCorrect1Result.id)
.set('Accept-Version', '1.0')
.set('Accept', 'application/json')
.set('Content-Type', 'application/json')
.send(videoCorr1CopyNoId)
.expect('Content-Type', /json/)
.expect(codes.wrongrequest)
.end(function(err, res) {
should.not.exist(err);
res.should.be.json();
res.body.should.have.property('error');
res.body.error.should.have.properties('message', 'code');
done();
})
});
});
// *******************************************************
describe('/videos REST API DELETE', function() {
// good DELETEs
it('should properly delete and answer with code 204', function(done) {
request(videoURL)
.delete('/'+videoCorrect1Result.id)
.set('Accept-Version', '1.0')
.set('Accept', 'application/json')
.expect('Content-Type', /json/)
.expect(codes.nocontent)
.end(function(err, res) {
should.not.exist(err);
done();
})
});
// bad DELETEs
it('should properly detect if a resource does not exist for delete and answer with code 404 and with a JSON error object', function(done) {
request(videoURL)
.delete('/'+videoCorrect1Result.id)
.set('Accept-Version', '1.0')
.set('Accept', 'application/json')
.expect('Content-Type', /json/)
.expect(codes.notfound)
.expect('Content-Type', /json/)
.end(function(err, res) {
should.not.exist(err);
res.should.be.json();
res.body.should.have.property('error');
res.body.error.should.have.properties('message', 'code');
done();
})
});
});
});
|
{
"content_hash": "7c83b7194ce0029369d911687b779a7d",
"timestamp": "",
"source": "github",
"line_count": 267,
"max_line_length": 147,
"avg_line_length": 44.756554307116104,
"alnum_prop": 0.49397489539748957,
"repo_name": "lPhenax/MME2",
"id": "93f8a0f4cee2d21d37bf668be3889ba786737183",
"size": "11950",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "files/uebg4/test/videos_rest_api_1b_test.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "10084"
},
{
"name": "HTML",
"bytes": "12763"
},
{
"name": "JavaScript",
"bytes": "351541"
}
],
"symlink_target": ""
}
|
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null
|
{
"content_hash": "96000e4095687548218b6503823ee1cb",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.307692307692308,
"alnum_prop": 0.6940298507462687,
"repo_name": "mdoering/backbone",
"id": "7d9706ad856e6f1312c0d065f3e5620b471414a8",
"size": "192",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Plantae/Magnoliophyta/Magnoliopsida/Asterales/Asteraceae/Erigeron/Erigeron pumilus/Erigeron pumilus pumilus/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
}
|
class PhotoKeyword < ApplicationRecord
end
|
{
"content_hash": "f4a43170418969bb304bd492f4e14b3d",
"timestamp": "",
"source": "github",
"line_count": 2,
"max_line_length": 38,
"avg_line_length": 21.5,
"alnum_prop": 0.8604651162790697,
"repo_name": "minhquan4080/slack-bot",
"id": "41af7bc36ca11f213d93ae990d4bf02c61d36821",
"size": "280",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "app/models/photo_keyword.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "10695"
},
{
"name": "CoffeeScript",
"bytes": "104"
},
{
"name": "HTML",
"bytes": "17940"
},
{
"name": "JavaScript",
"bytes": "4700"
},
{
"name": "Ruby",
"bytes": "98762"
},
{
"name": "Shell",
"bytes": "1871"
}
],
"symlink_target": ""
}
|
class Nginx < Formula
desc "HTTP(S) server and reverse proxy, and IMAP/POP3 proxy server"
homepage "https://nginx.org/"
# Use "mainline" releases only (odd minor version number), not "stable"
# See https://www.nginx.com/blog/nginx-1-12-1-13-released/ for why
url "https://nginx.org/download/nginx-1.15.4.tar.gz"
sha256 "3324776c800d974ceae8797ab9102ca26a8c3656f5c6fb3f31f2cb1e719458e7"
head "https://hg.nginx.org/nginx/", :using => :hg
bottle do
sha256 "05f53e506ec0ef3a2f6d458d858055182ac4346be138cbbe4c10aa3df3b29b41" => :mojave
sha256 "f506291fd2b3d85d6b86a6611aff4fd6d082549e35a7632513230e221ce7c646" => :high_sierra
sha256 "08ba38c8dcf815c616a0f2ab257d7f145c924858a1fd0bc23832cc8a3a3b071e" => :sierra
end
option "with-passenger", "Compile with support for Phusion Passenger module"
depends_on "openssl" # don't switch to 1.1 until passenger is switched, too
depends_on "pcre"
depends_on "passenger" => :optional
def install
# Changes default port to 8080
inreplace "conf/nginx.conf" do |s|
s.gsub! "listen 80;", "listen 8080;"
s.gsub! " #}\n\n}", " #}\n include servers/*;\n}"
end
openssl = Formula["openssl"]
pcre = Formula["pcre"]
cc_opt = "-I#{pcre.opt_include} -I#{openssl.opt_include}"
ld_opt = "-L#{pcre.opt_lib} -L#{openssl.opt_lib}"
args = %W[
--prefix=#{prefix}
--sbin-path=#{bin}/nginx
--with-cc-opt=#{cc_opt}
--with-ld-opt=#{ld_opt}
--conf-path=#{etc}/nginx/nginx.conf
--pid-path=#{var}/run/nginx.pid
--lock-path=#{var}/run/nginx.lock
--http-client-body-temp-path=#{var}/run/nginx/client_body_temp
--http-proxy-temp-path=#{var}/run/nginx/proxy_temp
--http-fastcgi-temp-path=#{var}/run/nginx/fastcgi_temp
--http-uwsgi-temp-path=#{var}/run/nginx/uwsgi_temp
--http-scgi-temp-path=#{var}/run/nginx/scgi_temp
--http-log-path=#{var}/log/nginx/access.log
--error-log-path=#{var}/log/nginx/error.log
--with-debug
--with-http_addition_module
--with-http_auth_request_module
--with-http_dav_module
--with-http_degradation_module
--with-http_flv_module
--with-http_gunzip_module
--with-http_gzip_static_module
--with-http_mp4_module
--with-http_random_index_module
--with-http_realip_module
--with-http_secure_link_module
--with-http_slice_module
--with-http_ssl_module
--with-http_stub_status_module
--with-http_sub_module
--with-http_v2_module
--with-ipv6
--with-mail
--with-mail_ssl_module
--with-pcre
--with-pcre-jit
--with-stream
--with-stream_realip_module
--with-stream_ssl_module
--with-stream_ssl_preread_module
]
if build.with? "passenger"
nginx_ext = `#{Formula["passenger"].opt_bin}/passenger-config --nginx-addon-dir`.chomp
args << "--add-module=#{nginx_ext}"
end
if build.head?
system "./auto/configure", *args
else
system "./configure", *args
end
system "make", "install"
if build.head?
man8.install "docs/man/nginx.8"
else
man8.install "man/nginx.8"
end
end
def post_install
(etc/"nginx/servers").mkpath
(var/"run/nginx").mkpath
# nginx's docroot is #{prefix}/html, this isn't useful, so we symlink it
# to #{HOMEBREW_PREFIX}/var/www. The reason we symlink instead of patching
# is so the user can redirect it easily to something else if they choose.
html = prefix/"html"
dst = var/"www"
if dst.exist?
html.rmtree
dst.mkpath
else
dst.dirname.mkpath
html.rename(dst)
end
prefix.install_symlink dst => "html"
# for most of this formula's life the binary has been placed in sbin
# and Homebrew used to suggest the user copy the plist for nginx to their
# ~/Library/LaunchAgents directory. So we need to have a symlink there
# for such cases
if rack.subdirs.any? { |d| d.join("sbin").directory? }
sbin.install_symlink bin/"nginx"
end
end
def passenger_caveats; <<~EOS
To activate Phusion Passenger, add this to #{etc}/nginx/nginx.conf, inside the 'http' context:
passenger_root #{Formula["passenger"].opt_libexec}/src/ruby_supportlib/phusion_passenger/locations.ini;
passenger_ruby /usr/bin/ruby;
EOS
end
def caveats
s = <<~EOS
Docroot is: #{var}/www
The default port has been set in #{etc}/nginx/nginx.conf to 8080 so that
nginx can run without sudo.
nginx will load all files in #{etc}/nginx/servers/.
EOS
s << "\n" << passenger_caveats if build.with? "passenger"
s
end
plist_options :manual => "nginx"
def plist; <<~EOS
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>#{plist_name}</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>#{opt_bin}/nginx</string>
<string>-g</string>
<string>daemon off;</string>
</array>
<key>WorkingDirectory</key>
<string>#{HOMEBREW_PREFIX}</string>
</dict>
</plist>
EOS
end
test do
(testpath/"nginx.conf").write <<~EOS
worker_processes 4;
error_log #{testpath}/error.log;
pid #{testpath}/nginx.pid;
events {
worker_connections 1024;
}
http {
client_body_temp_path #{testpath}/client_body_temp;
fastcgi_temp_path #{testpath}/fastcgi_temp;
proxy_temp_path #{testpath}/proxy_temp;
scgi_temp_path #{testpath}/scgi_temp;
uwsgi_temp_path #{testpath}/uwsgi_temp;
server {
listen 8080;
root #{testpath};
access_log #{testpath}/access.log;
error_log #{testpath}/error.log;
}
}
EOS
system bin/"nginx", "-t", "-c", testpath/"nginx.conf"
end
end
|
{
"content_hash": "7b71acb20f78ec1a9f7fffc8b43e1c5a",
"timestamp": "",
"source": "github",
"line_count": 199,
"max_line_length": 109,
"avg_line_length": 30.819095477386934,
"alnum_prop": 0.6187836295450839,
"repo_name": "smessmer/homebrew-core",
"id": "f26ae0d5679d6970a33fb4b558836da0d9d332c8",
"size": "6133",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Formula/nginx.rb",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "Perl",
"bytes": "628"
},
{
"name": "Ruby",
"bytes": "8314005"
}
],
"symlink_target": ""
}
|
#region Copyright
/// <copyright>
/// Copyright (c) 2011 Ramunas Geciauskas, http://geciauskas.com
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentation files (the "Software"), to deal
/// in the Software without restriction, including without limitation the rights
/// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
/// copies of the Software, and to permit persons to whom the Software is
/// furnished to do so, subject to the following conditions:
///
/// The above copyright notice and this permission notice shall be included in
/// all copies or substantial portions of the Software.
///
/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
/// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
/// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
/// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
/// THE SOFTWARE.
/// </copyright>
/// <author>Ramunas Geciauskas</author>
/// <summary>Contains a MouseHook class for setting up low level Windows mouse hooks.</summary>
#endregion
using System;
using System.Runtime.InteropServices;
using System.Diagnostics;
namespace RamGecTools
{
/// <summary>
/// Class for intercepting low level Windows mouse hooks.
/// </summary>
class MouseHook
{
/// <summary>
/// Internal callback processing function
/// </summary>
private delegate IntPtr MouseHookHandler(int nCode, IntPtr wParam, IntPtr lParam);
private MouseHookHandler hookHandler;
/// <summary>
/// Function to be called when defined even occurs
/// </summary>
/// <param name="mouseStruct">MSLLHOOKSTRUCT mouse structure</param>
public delegate void MouseHookCallback(MSLLHOOKSTRUCT mouseStruct);
#region Events
public event MouseHookCallback LeftButtonDown;
public event MouseHookCallback LeftButtonUp;
public event MouseHookCallback RightButtonDown;
public event MouseHookCallback RightButtonUp;
public event MouseHookCallback MouseMove;
public event MouseHookCallback MouseWheel;
public event MouseHookCallback DoubleClick;
public event MouseHookCallback MiddleButtonDown;
public event MouseHookCallback MiddleButtonUp;
#endregion
/// <summary>
/// Low level mouse hook's ID
/// </summary>
private IntPtr hookID = IntPtr.Zero;
/// <summary>
/// Install low level mouse hook
/// </summary>
/// <param name="mouseHookCallbackFunc">Callback function</param>
public void Install()
{
hookHandler = HookFunc;
hookID = SetHook(hookHandler);
}
/// <summary>
/// Remove low level mouse hook
/// </summary>
public void Uninstall()
{
if (hookID == IntPtr.Zero)
return;
UnhookWindowsHookEx(hookID);
hookID = IntPtr.Zero;
}
/// <summary>
/// Destructor. Unhook current hook
/// </summary>
~MouseHook()
{
Uninstall();
}
/// <summary>
/// Sets hook and assigns its ID for tracking
/// </summary>
/// <param name="proc">Internal callback function</param>
/// <returns>Hook ID</returns>
private IntPtr SetHook(MouseHookHandler proc)
{
using (ProcessModule module = Process.GetCurrentProcess().MainModule)
return SetWindowsHookEx(WH_MOUSE_LL, proc, GetModuleHandle(module.ModuleName), 0);
}
/// <summary>
/// Callback function
/// </summary>
private IntPtr HookFunc(int nCode, IntPtr wParam, IntPtr lParam)
{
// parse system messages
if (nCode >= 0)
{
if (MouseMessages.WM_LBUTTONDOWN == (MouseMessages)wParam)
if (LeftButtonDown != null)
LeftButtonDown((MSLLHOOKSTRUCT)Marshal.PtrToStructure(lParam, typeof(MSLLHOOKSTRUCT)));
if (MouseMessages.WM_LBUTTONUP == (MouseMessages)wParam)
if (LeftButtonUp != null)
LeftButtonUp((MSLLHOOKSTRUCT)Marshal.PtrToStructure(lParam, typeof(MSLLHOOKSTRUCT)));
if (MouseMessages.WM_RBUTTONDOWN == (MouseMessages)wParam)
if (RightButtonDown != null)
RightButtonDown((MSLLHOOKSTRUCT)Marshal.PtrToStructure(lParam, typeof(MSLLHOOKSTRUCT)));
if (MouseMessages.WM_RBUTTONUP == (MouseMessages)wParam)
if (RightButtonUp != null)
RightButtonUp((MSLLHOOKSTRUCT)Marshal.PtrToStructure(lParam, typeof(MSLLHOOKSTRUCT)));
if (MouseMessages.WM_MOUSEMOVE == (MouseMessages)wParam)
if (MouseMove != null)
MouseMove((MSLLHOOKSTRUCT)Marshal.PtrToStructure(lParam, typeof(MSLLHOOKSTRUCT)));
if (MouseMessages.WM_MOUSEWHEEL == (MouseMessages)wParam)
if (MouseWheel != null)
MouseWheel((MSLLHOOKSTRUCT)Marshal.PtrToStructure(lParam, typeof(MSLLHOOKSTRUCT)));
if (MouseMessages.WM_LBUTTONDBLCLK == (MouseMessages)wParam)
if (DoubleClick != null)
DoubleClick((MSLLHOOKSTRUCT)Marshal.PtrToStructure(lParam, typeof(MSLLHOOKSTRUCT)));
if (MouseMessages.WM_MBUTTONDOWN == (MouseMessages)wParam)
if (MiddleButtonDown != null)
MiddleButtonDown((MSLLHOOKSTRUCT)Marshal.PtrToStructure(lParam, typeof(MSLLHOOKSTRUCT)));
if (MouseMessages.WM_MBUTTONUP == (MouseMessages)wParam)
if (MiddleButtonUp != null)
MiddleButtonUp((MSLLHOOKSTRUCT)Marshal.PtrToStructure(lParam, typeof(MSLLHOOKSTRUCT)));
}
return CallNextHookEx(hookID, nCode, wParam, lParam);
}
#region WinAPI
private const int WH_MOUSE_LL = 14;
private enum MouseMessages
{
WM_LBUTTONDOWN = 0x0201,
WM_LBUTTONUP = 0x0202,
WM_MOUSEMOVE = 0x0200,
WM_MOUSEWHEEL = 0x020A,
WM_RBUTTONDOWN = 0x0204,
WM_RBUTTONUP = 0x0205,
WM_LBUTTONDBLCLK = 0x0203,
WM_MBUTTONDOWN = 0x0207,
WM_MBUTTONUP = 0x0208
}
[StructLayout(LayoutKind.Sequential)]
public struct POINT
{
public int x;
public int y;
}
[StructLayout(LayoutKind.Sequential)]
public struct MSLLHOOKSTRUCT
{
public POINT pt;
public uint mouseData;
public uint flags;
public uint time;
public IntPtr dwExtraInfo;
}
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
private static extern IntPtr SetWindowsHookEx(int idHook,
MouseHookHandler lpfn, IntPtr hMod, uint dwThreadId);
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool UnhookWindowsHookEx(IntPtr hhk);
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
private static extern IntPtr CallNextHookEx(IntPtr hhk, int nCode, IntPtr wParam, IntPtr lParam);
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
private static extern IntPtr GetModuleHandle(string lpModuleName);
#endregion
}
}
|
{
"content_hash": "cbd323c2fe416fc9ec7dab66a30a06e2",
"timestamp": "",
"source": "github",
"line_count": 195,
"max_line_length": 113,
"avg_line_length": 40.92820512820513,
"alnum_prop": 0.61633880466107,
"repo_name": "JimmySticks2001/autoDig",
"id": "18354c1f5d2d102be34effd887badbd11d6b608c",
"size": "7983",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "autoDigGood/MouseHook.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "11815"
}
],
"symlink_target": ""
}
|
body {background-color: #eaeaea;}
.container {
margin: 2pc auto;
width: 550px;
outline: 3px solid brown;
padding: 1pc;
}
.name {
font-weight: bolder;
}
.frames{
clear: both;
margin-top: 5px;
margin-bottom: 5px;
}
.clearfix:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
.frame {
height:50px;
width:50px;
text-align: right;
background-color: orange;
float: left;
border-left: 1pt solid black;
border-bottom: 1pt solid black;
border-top: 1pt solid black;
}
.frame.tenth {
width: 71px;
border-right: 1pt solid black;
}
.rollDisplay {
padding-top: 2pt;
height: 20px;
width: 20px;
text-align: center;
border-bottom: 1pt solid black;
border-left: 1pt solid black;
float: left;
}
.rollDisplay:first-child {
border: none;
padding-left: 8px;
}
.scoreDisplay {
padding-right: 5px;
margin-top: 25px;
}
/* BowlingLine Buttons */
button {
background-color: green;
color: white;
height: 20px;
width: 30px;
border: none;
padding: 3px;
margin: 1pt;
}
span.actions {
cloat: left;
margin-left: 2pc;
}
div.rollButtons {
float: left;
width: 130px;
}
button.rollButton {
width: 20px;
}
button.newGame {
background-color: red;
width: 40px;
}
button.newGame:disabled {background-color: lightgray}
button.undo {
background-color: orange;
width: 40px;
}
button.undo:disabled {background-color: lightgray}
button.redo {
background-color: green;
width: 40px;
}
button.redo:disabled {background-color: lightgray}
button.delete {
background-color: red;
width: 40px;
}
button:disabled {
background-color: lightgray;
}
/* header/footer */
input.name {
float: left;
}
.playerLabel {
padding-right: 5px;
float: left;
font-size: small;
}
#title {
padding-left: 2pc;
text-align: center;
}
#title a {
text-decoration: none;
padding-left: 1pc;
padding-right: 1pc;
}
#title a:visited {
color: black;
}
#footer {
padding-left: 2pc;
text-align: right;
font-size: small;
}
#footer a {
text-decoration: none;
}
#footer a:hover {
color: white;
background-color: green;
}
#title span {
padding-left: 0.5pc;
padding-right: 0.5pc;
}
img {
height: 40px;
width: 40px;
}
|
{
"content_hash": "b2a2abd4f401af103772df632122f34b",
"timestamp": "",
"source": "github",
"line_count": 172,
"max_line_length": 53,
"avg_line_length": 13.13953488372093,
"alnum_prop": 0.6570796460176991,
"repo_name": "wizardwerdna/wizardwerdna.github.io",
"id": "5bf2090ae0916ddf646dad872e695b7cad6ef5e6",
"size": "2260",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "styles.css",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "2260"
},
{
"name": "HTML",
"bytes": "173"
}
],
"symlink_target": ""
}
|
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:layout_width="match_parent"
tools:layout_height="wrap_content">
<LinearLayout
android:id="@+id/wikitext_keyboard_container"
android:layout_width="wrap_content"
android:layout_height="48dp"
android:orientation="horizontal">
<org.wikipedia.views.WikitextKeyboardButtonView
android:id="@+id/wikitext_button_text_format"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:buttonHint="@string/wikitext_formatting"
app:buttonImage="@drawable/ic_format_bold_black_24dp" />
<org.wikipedia.views.WikitextKeyboardButtonView
android:id="@+id/wikitext_button_heading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:buttonHint="@string/wikitext_headings"
app:buttonImage="@drawable/ic_format_heading2_24" />
<org.wikipedia.views.WikitextKeyboardButtonView
android:id="@+id/wikitext_button_list_bulleted"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:buttonHint="@string/wikitext_bulleted_list"
app:buttonImage="@drawable/ic_format_list_bulleted_black_24dp" />
<org.wikipedia.views.WikitextKeyboardButtonView
android:id="@+id/wikitext_button_list_numbered"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:buttonHint="@string/wikitext_numbered_list"
app:buttonImage="@drawable/ic_format_list_numbered_black_24dp" />
<org.wikipedia.views.WikitextKeyboardButtonView
android:id="@+id/wikitext_button_undo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:buttonHint="@string/edit_undo"
app:buttonImage="@drawable/ic_undo_themed_24dp" />
<org.wikipedia.views.WikitextKeyboardButtonView
android:id="@+id/wikitext_button_redo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:buttonHint="@string/edit_redo"
app:buttonImage="@drawable/ic_redo_themed_24dp" />
<org.wikipedia.views.WikitextKeyboardButtonView
android:id="@+id/wikitext_button_insert_media"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:buttonHint="@string/wikitext_insert_media"
app:buttonImage="@drawable/ic_image_themed_24dp" />
<org.wikipedia.views.WikitextKeyboardButtonView
android:id="@+id/wikitext_button_link"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:buttonHint="@string/wikitext_link"
app:buttonImage="@drawable/ic_link_black_24dp" />
<org.wikipedia.views.WikitextKeyboardButtonView
android:id="@+id/wikitext_button_preview_link"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:buttonHint="@string/wikitext_preview_link"
app:buttonImage="@drawable/ic_visibility_24" />
<org.wikipedia.views.WikitextKeyboardButtonView
android:id="@+id/wikitext_button_template"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:buttonHint="@string/wikitext_template"
app:buttonImage="@drawable/ic_puzzle" />
<org.wikipedia.views.WikitextKeyboardButtonView
android:id="@+id/wikitext_button_ref"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:buttonHint="@string/wikitext_reference"
app:buttonImage="@drawable/ic_oojs_ui_icon_reference" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@android:color/transparent" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/color_group_60" />
</merge>
|
{
"content_hash": "cb898fa2755d77761f9261dd69b5ccb4",
"timestamp": "",
"source": "github",
"line_count": 103,
"max_line_length": 77,
"avg_line_length": 43.12621359223301,
"alnum_prop": 0.640252138676272,
"repo_name": "wikimedia/apps-android-wikipedia",
"id": "d481f0a60e6206b5d7fd81fe0a76926ea09a9c43",
"size": "4442",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "app/src/main/res/layout/view_wikitext_keyboard.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "68009"
},
{
"name": "Jinja",
"bytes": "533"
},
{
"name": "Kotlin",
"bytes": "2849948"
},
{
"name": "Python",
"bytes": "23673"
},
{
"name": "Shell",
"bytes": "521"
}
],
"symlink_target": ""
}
|
import time
from openerp.osv import fields, osv
from openerp.tools.translate import _
class hr_timesheet_invoice_factor(osv.osv):
_name = "hr_timesheet_invoice.factor"
_description = "Invoice Rate"
_order = 'factor'
_columns = {
'name': fields.char('Internal Name', required=True, translate=True),
'customer_name': fields.char('Name', help="Label for the customer"),
'factor': fields.float('Discount (%)', required=True, help="Discount in percentage"),
}
_defaults = {
'factor': lambda *a: 0.0,
}
class account_analytic_account(osv.osv):
def _invoiced_calc(self, cr, uid, ids, name, arg, context=None):
obj_invoice = self.pool.get('account.invoice')
res = {}
cr.execute('SELECT account_id as account_id, l.invoice_id '
'FROM hr_analytic_timesheet h LEFT JOIN account_analytic_line l '
'ON (h.line_id=l.id) '
'WHERE l.account_id = ANY(%s)', (ids,))
account_to_invoice_map = {}
for rec in cr.dictfetchall():
account_to_invoice_map.setdefault(rec['account_id'], []).append(rec['invoice_id'])
for account in self.browse(cr, uid, ids, context=context):
invoice_ids = filter(None, list(set(account_to_invoice_map.get(account.id, []))))
for invoice in obj_invoice.browse(cr, uid, invoice_ids, context=context):
res.setdefault(account.id, 0.0)
res[account.id] += invoice.amount_untaxed
for id in ids:
res[id] = round(res.get(id, 0.0),2)
return res
_inherit = "account.analytic.account"
_columns = {
'pricelist_id': fields.many2one('product.pricelist', 'Pricelist',
help="The product to invoice is defined on the employee form, the price will be deducted by this pricelist on the product."),
'amount_max': fields.float('Max. Invoice Price',
help="Keep empty if this contract is not limited to a total fixed price."),
'amount_invoiced': fields.function(_invoiced_calc, string='Invoiced Amount',
help="Total invoiced"),
'to_invoice': fields.many2one('hr_timesheet_invoice.factor', 'Timesheet Invoicing Ratio',
help="You usually invoice 100% of the timesheets. But if you mix fixed price and timesheet invoicing, you may use another ratio. For instance, if you do a 20% advance invoice (fixed price, based on a sales order), you should invoice the rest on timesheet with a 80% ratio."),
}
def on_change_partner_id(self, cr, uid, ids, partner_id, name, context=None):
res = super(account_analytic_account, self).on_change_partner_id(cr, uid, ids, partner_id, name, context=context)
if partner_id:
part = self.pool.get('res.partner').browse(cr, uid, partner_id, context=context)
pricelist = part.property_product_pricelist and part.property_product_pricelist.id or False
if pricelist:
res['value']['pricelist_id'] = pricelist
return res
def set_close(self, cr, uid, ids, context=None):
return self.write(cr, uid, ids, {'state': 'close'}, context=context)
def set_cancel(self, cr, uid, ids, context=None):
return self.write(cr, uid, ids, {'state': 'cancelled'}, context=context)
def set_open(self, cr, uid, ids, context=None):
return self.write(cr, uid, ids, {'state': 'open'}, context=context)
def set_pending(self, cr, uid, ids, context=None):
return self.write(cr, uid, ids, {'state': 'pending'}, context=context)
class account_analytic_line(osv.osv):
_inherit = 'account.analytic.line'
_columns = {
'invoice_id': fields.many2one('account.invoice', 'Invoice', ondelete="set null", copy=False),
'to_invoice': fields.many2one('hr_timesheet_invoice.factor', 'Invoiceable', help="It allows to set the discount while making invoice, keep empty if the activities should not be invoiced."),
}
def _default_journal(self, cr, uid, context=None):
proxy = self.pool.get('hr.employee')
record_ids = proxy.search(cr, uid, [('user_id', '=', uid)], context=context)
if record_ids:
employee = proxy.browse(cr, uid, record_ids[0], context=context)
return employee.journal_id and employee.journal_id.id or False
return False
def _default_general_account(self, cr, uid, context=None):
proxy = self.pool.get('hr.employee')
record_ids = proxy.search(cr, uid, [('user_id', '=', uid)], context=context)
if record_ids:
employee = proxy.browse(cr, uid, record_ids[0], context=context)
if employee.product_id and employee.product_id.property_account_income:
return employee.product_id.property_account_income.id
return False
_defaults = {
'journal_id' : _default_journal,
'general_account_id' : _default_general_account,
}
def write(self, cr, uid, ids, vals, context=None):
self._check_inv(cr, uid, ids, vals)
return super(account_analytic_line,self).write(cr, uid, ids, vals,
context=context)
def _check_inv(self, cr, uid, ids, vals):
select = ids
if isinstance(select, (int, long)):
select = [ids]
if ( not vals.has_key('invoice_id')) or vals['invoice_id' ] == False:
for line in self.browse(cr, uid, select):
if line.invoice_id:
raise osv.except_osv(_('Error!'),
_('You cannot modify an invoiced analytic line!'))
return True
def _get_invoice_price(self, cr, uid, account, product_id, user_id, qty, context = {}):
pro_price_obj = self.pool.get('product.pricelist')
if account.pricelist_id:
pl = account.pricelist_id.id
price = pro_price_obj.price_get(cr,uid,[pl], product_id, qty or 1.0, account.partner_id.id, context=context)[pl]
else:
price = 0.0
return price
def _prepare_cost_invoice(self, cr, uid, partner, company_id, currency_id, analytic_lines, context=None):
""" returns values used to create main invoice from analytic lines"""
account_payment_term_obj = self.pool['account.payment.term']
invoice_name = analytic_lines[0].account_id.name
date_due = False
if partner.property_payment_term:
pterm_list = account_payment_term_obj.compute(cr, uid,
partner.property_payment_term.id, value=1,
date_ref=time.strftime('%Y-%m-%d'))
if pterm_list:
pterm_list = [line[0] for line in pterm_list]
pterm_list.sort()
date_due = pterm_list[-1]
return {
'name': "%s - %s" % (time.strftime('%d/%m/%Y'), invoice_name),
'partner_id': partner.id,
'company_id': company_id,
'payment_term': partner.property_payment_term.id or False,
'account_id': partner.property_account_receivable.id,
'currency_id': currency_id,
'date_due': date_due,
'fiscal_position': partner.property_account_position.id
}
def _prepare_cost_invoice_line(self, cr, uid, invoice_id, product_id, uom, user_id,
factor_id, account, analytic_lines, journal_type, data, context=None):
product_obj = self.pool['product.product']
uom_context = dict(context or {}, uom=uom)
total_price = sum(l.amount for l in analytic_lines)
total_qty = sum(l.unit_amount for l in analytic_lines)
if data.get('product'):
# force product, use its public price
if isinstance(data['product'], (tuple, list)):
product_id = data['product'][0]
else:
product_id = data['product']
unit_price = self._get_invoice_price(cr, uid, account, product_id, user_id, total_qty, uom_context)
elif journal_type == 'general' and product_id:
# timesheets, use sale price
unit_price = self._get_invoice_price(cr, uid, account, product_id, user_id, total_qty, uom_context)
else:
# expenses, using price from amount field
unit_price = total_price*-1.0 / total_qty
factor = self.pool['hr_timesheet_invoice.factor'].browse(cr, uid, factor_id, context=uom_context)
factor_name = factor.customer_name or ''
curr_invoice_line = {
'price_unit': unit_price,
'quantity': total_qty,
'product_id': product_id,
'discount': factor.factor,
'invoice_id': invoice_id,
'name': factor_name,
'uos_id': uom,
'account_analytic_id': account.id,
}
if product_id:
product = product_obj.browse(cr, uid, product_id, context=uom_context)
factor_name = product_obj.name_get(cr, uid, [product_id], context=uom_context)[0][1]
if factor.customer_name:
factor_name += ' - ' + factor.customer_name
general_account = product.property_account_income or product.categ_id.property_account_income_categ
if not general_account:
raise osv.except_osv(_('Error!'), _("Configuration Error!") + '\n' + _("Please define income account for product '%s'.") % product.name)
taxes = product.taxes_id or general_account.tax_ids
tax = self.pool['account.fiscal.position'].map_tax(cr, uid, account.partner_id.property_account_position, taxes, context=context)
curr_invoice_line.update({
'invoice_line_tax_id': [(6, 0, tax)],
'name': factor_name,
'invoice_line_tax_id': [(6, 0, tax)],
'account_id': general_account.id,
})
note = []
for line in analytic_lines:
# set invoice_line_note
details = []
if data.get('date', False):
details.append(line['date'])
if data.get('time', False):
if line['product_uom_id']:
details.append("%s %s" % (line.unit_amount, line.product_uom_id.name))
else:
details.append("%s" % (line['unit_amount'], ))
if data.get('name', False):
details.append(line['name'])
if details:
note.append(u' - '.join(map(lambda x: unicode(x) or '', details)))
if note:
curr_invoice_line['name'] += "\n" + ("\n".join(map(lambda x: unicode(x) or '', note)))
return curr_invoice_line
def invoice_cost_create(self, cr, uid, ids, data=None, context=None):
invoice_obj = self.pool.get('account.invoice')
invoice_line_obj = self.pool.get('account.invoice.line')
analytic_line_obj = self.pool.get('account.analytic.line')
invoices = []
if context is None:
context = {}
if data is None:
data = {}
# use key (partner/account, company, currency)
# creates one invoice per key
invoice_grouping = {}
currency_id = False
# prepare for iteration on journal and accounts
for line in self.browse(cr, uid, ids, context=context):
key = (line.account_id.id,
line.account_id.company_id.id,
line.account_id.pricelist_id.currency_id.id)
invoice_grouping.setdefault(key, []).append(line)
for (key_id, company_id, currency_id), analytic_lines in invoice_grouping.items():
# key_id is an account.analytic.account
account = analytic_lines[0].account_id
partner = account.partner_id # will be the same for every line
if (not partner) or not (currency_id):
raise osv.except_osv(_('Error!'), _('Contract incomplete. Please fill in the Customer and Pricelist fields for %s.') % (account.name))
curr_invoice = self._prepare_cost_invoice(cr, uid, partner, company_id, currency_id, analytic_lines, context=context)
invoice_context = dict(context,
lang=partner.lang,
force_company=company_id, # set force_company in context so the correct product properties are selected (eg. income account)
company_id=company_id) # set company_id in context, so the correct default journal will be selected
last_invoice = invoice_obj.create(cr, uid, curr_invoice, context=invoice_context)
invoices.append(last_invoice)
# use key (product, uom, user, invoiceable, analytic account, journal type)
# creates one invoice line per key
invoice_lines_grouping = {}
for analytic_line in analytic_lines:
account = analytic_line.account_id
if not analytic_line.to_invoice:
raise osv.except_osv(_('Error!'), _('Trying to invoice non invoiceable line for %s.') % (analytic_line.product_id.name))
key = (analytic_line.product_id.id,
analytic_line.product_uom_id.id,
analytic_line.user_id.id,
analytic_line.to_invoice.id,
analytic_line.account_id,
analytic_line.journal_id.type)
# We want to retrieve the data in the partner language for the invoice creation
analytic_line = analytic_line_obj.browse(cr, uid , [line.id for line in analytic_line], context=invoice_context)
invoice_lines_grouping.setdefault(key, []).append(analytic_line)
# finally creates the invoice line
for (product_id, uom, user_id, factor_id, account, journal_type), lines_to_invoice in invoice_lines_grouping.items():
curr_invoice_line = self._prepare_cost_invoice_line(cr, uid, last_invoice,
product_id, uom, user_id, factor_id, account, lines_to_invoice,
journal_type, data, context=invoice_context)
invoice_line_obj.create(cr, uid, curr_invoice_line, context=context)
self.write(cr, uid, [l.id for l in analytic_lines], {'invoice_id': last_invoice}, context=context)
invoice_obj.button_reset_taxes(cr, uid, [last_invoice], context)
return invoices
class hr_analytic_timesheet(osv.osv):
_inherit = "hr.analytic.timesheet"
def on_change_account_id(self, cr, uid, ids, account_id, user_id=False):
res = super(hr_analytic_timesheet, self).on_change_account_id(
cr, uid, ids, account_id, context=user_id)
if not account_id:
return res
res.setdefault('value',{})
acc = self.pool.get('account.analytic.account').browse(cr, uid, account_id)
st = acc.to_invoice.id
res['value']['to_invoice'] = st or False
if acc.state=='pending':
res['warning'] = {
'title': _('Warning'),
'message': _('The analytic account is in pending state.\nYou should not work on this account !')
}
return res
class account_invoice(osv.osv):
_inherit = "account.invoice"
def _get_analytic_lines(self, cr, uid, ids, context=None):
iml = super(account_invoice, self)._get_analytic_lines(cr, uid, ids, context=context)
inv = self.browse(cr, uid, ids, context=context)[0]
if inv.type == 'in_invoice':
obj_analytic_account = self.pool.get('account.analytic.account')
for il in iml:
if il['account_analytic_id']:
# *-* browse (or refactor to avoid read inside the loop)
to_invoice = obj_analytic_account.read(cr, uid, [il['account_analytic_id']], ['to_invoice'], context=context)[0]['to_invoice']
if to_invoice:
il['analytic_lines'][0][2]['to_invoice'] = to_invoice[0]
return iml
class account_move_line(osv.osv):
_inherit = "account.move.line"
def create_analytic_lines(self, cr, uid, ids, context=None):
res = super(account_move_line, self).create_analytic_lines(cr, uid, ids,context=context)
analytic_line_obj = self.pool.get('account.analytic.line')
for move_line in self.browse(cr, uid, ids, context=context):
#For customer invoice, link analytic line to the invoice so it is not proposed for invoicing in Bill Tasks Work
invoice_id = move_line.invoice and move_line.invoice.type in ('out_invoice','out_refund') and move_line.invoice.id or False
for line in move_line.analytic_lines:
analytic_line_obj.write(cr, uid, line.id, {
'invoice_id': invoice_id,
'to_invoice': line.account_id.to_invoice and line.account_id.to_invoice.id or False
}, context=context)
return res
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
{
"content_hash": "e2e869a69b9dce6edea8807eda1042a0",
"timestamp": "",
"source": "github",
"line_count": 353,
"max_line_length": 287,
"avg_line_length": 48.685552407932015,
"alnum_prop": 0.5882695217037123,
"repo_name": "cristianquaglio/odoo",
"id": "cc68c73ff7ebc99b6a2b73eb11d6ba376c7f3e6a",
"size": "18165",
"binary": false,
"copies": "49",
"ref": "refs/heads/master",
"path": "addons/hr_timesheet_invoice/hr_timesheet_invoice.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "9611"
},
{
"name": "C++",
"bytes": "108790"
},
{
"name": "CSS",
"bytes": "671328"
},
{
"name": "HTML",
"bytes": "212829"
},
{
"name": "JavaScript",
"bytes": "5984109"
},
{
"name": "Makefile",
"bytes": "12332"
},
{
"name": "Mako",
"bytes": "561"
},
{
"name": "PHP",
"bytes": "14033"
},
{
"name": "Python",
"bytes": "8366254"
},
{
"name": "Ruby",
"bytes": "220"
},
{
"name": "Shell",
"bytes": "19163"
},
{
"name": "Vim script",
"bytes": "406"
},
{
"name": "XSLT",
"bytes": "92945"
}
],
"symlink_target": ""
}
|
package com.qtt.app.stock.simulator;
import java.util.Map;
public class ExpressionVariableLookback extends ExpressionBase
{
String mVariableName;
int mIndex;
public ExpressionVariableLookback(String variableName, String indexStr)
{
mVariableName = variableName;
mIndex = Integer.parseInt(indexStr);
}
public Object getValue(Object data)
{
Map lookBackData = LookBack.instance().get(mIndex);
if (lookBackData == null)
return null;
Map signalData = (Map) data;
if (signalData == null)
return null;
Object id = signalData.get("id");
if (id == null)
return null;
// Getting the old signal for the stock
Map oldSignal = (Map) lookBackData.get(id);
if (oldSignal == null)
{
Util.mLogger.info("oldSignal doesn't exists for id: {}", id);
return null;
}
// Getting the old signal itself
Double d = (Double) oldSignal.get(mVariableName);
if (d == null)
{
Util.mLogger.error("null for [{}]", mVariableName);
return null;
}
return d.doubleValue();
}
public String toString()
{
return "ExpVar: " + mVariableName + "[" + mIndex + "]";
}
}
|
{
"content_hash": "f49d7d8b4bd0c594a5cfc1c023ed3120",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 73,
"avg_line_length": 22.30188679245283,
"alnum_prop": 0.6353637901861252,
"repo_name": "qtruong/profit",
"id": "deeada3fa1bf12314134103c30c46dd9089bad8a",
"size": "1182",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "simulator/src/ExpressionVariableLookback.java",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
}
|
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2015 IRCCloud, Ltd.
~
~ 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.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/BuffersListFragment"
tools:context=".BuffersListFragment"
android:background="?buffersDrawerBackgroundDrawable">
<androidx.recyclerview.widget.RecyclerView
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:cacheColorHint="?attr/bufferBackgroundColor"
android:descendantFocusability="blocksDescendants"
android:divider="#00000000"
android:dividerHeight="0dip"
android:scrollbars="vertical"
android:fadingEdge="none"/>
<LinearLayout
android:id="@+id/topUnreadIndicator"
android:layout_width="match_parent"
android:layout_height="32dip"
android:layout_alignParentTop="true"
android:visibility="gone">
<LinearLayout
android:id="@+id/topUnreadIndicatorBorder"
android:layout_width="match_parent"
android:layout_height="12dip"
android:elevation="8dp"
android:background="@drawable/unreadBorder">
<LinearLayout
android:id="@+id/topUnreadIndicatorColor"
android:layout_width="match_parent"
android:layout_height="11dip"
android:background="@drawable/row_unread_border"/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/bottomUnreadIndicator"
android:layout_width="match_parent"
android:layout_height="32dip"
android:layout_alignParentBottom="true"
android:gravity="bottom"
android:visibility="gone" >
<LinearLayout
android:id="@+id/bottomUnreadIndicatorBorder"
android:layout_width="match_parent"
android:layout_height="12dip"
android:gravity="bottom"
android:elevation="8dp"
android:background="@drawable/unreadBorder">
<LinearLayout
android:id="@+id/bottomUnreadIndicatorColor"
android:layout_width="match_parent"
android:layout_height="11dip"
android:gravity="bottom"
android:orientation="horizontal"
android:background="@drawable/row_unread_border"/>
</LinearLayout>
</LinearLayout>
<ProgressBar
android:id="@+id/bufferprogress"
style="?android:attr/progressBarStyleLarge"
android:visibility="gone"
android:layout_centerInParent="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<LinearLayout
android:layout_width="1dp"
android:layout_height="fill_parent"
android:layout_alignParentRight="true"
android:background="?attr/contentBorderColor" />
</RelativeLayout>
|
{
"content_hash": "a46d890bfe2ce25f8d2761c37cdb9805",
"timestamp": "",
"source": "github",
"line_count": 95,
"max_line_length": 76,
"avg_line_length": 38.642105263157895,
"alnum_prop": 0.6515935712339962,
"repo_name": "irccloud/android",
"id": "e96bd295c3a410e6e6ff5a6968aaac27a5a7b250",
"size": "3671",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "res/layout/bufferslist.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "2212746"
},
{
"name": "JavaScript",
"bytes": "183740"
},
{
"name": "Python",
"bytes": "21048"
},
{
"name": "Ruby",
"bytes": "7187"
},
{
"name": "Shell",
"bytes": "1164"
}
],
"symlink_target": ""
}
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_20) on Mon May 02 10:23:15 CEST 2011 -->
<TITLE>
Uses of Class play.vfs.VirtualFile (Play! API)
</TITLE>
<META NAME="date" CONTENT="2011-05-02">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class play.vfs.VirtualFile (Play! API)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html?play/vfs//class-useVirtualFile.html" target="_top"><B>FRAMES</B></A>
<A HREF="VirtualFile.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<CENTER>
<H2>
<B>Uses of Class<br>play.vfs.VirtualFile</B></H2>
</CENTER>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
Packages that use <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><A HREF="#play"><B>play</B></A></TD>
<TD> </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><A HREF="#play.classloading"><B>play.classloading</B></A></TD>
<TD> </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><A HREF="#play.classloading.hash"><B>play.classloading.hash</B></A></TD>
<TD> </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><A HREF="#play.exceptions"><B>play.exceptions</B></A></TD>
<TD> </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><A HREF="#play.mvc"><B>play.mvc</B></A></TD>
<TD> </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><A HREF="#play.mvc.results"><B>play.mvc.results</B></A></TD>
<TD> </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><A HREF="#play.plugins"><B>play.plugins</B></A></TD>
<TD> </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><A HREF="#play.templates"><B>play.templates</B></A></TD>
<TD> </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><A HREF="#play.vfs"><B>play.vfs</B></A></TD>
<TD> </TD>
</TR>
</TABLE>
<P>
<A NAME="play"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
Uses of <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A> in <A HREF="../../../play/package-summary.html">play</A></FONT></TH>
</TR>
</TABLE>
<P>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left" COLSPAN="2">Fields in <A HREF="../../../play/package-summary.html">play</A> declared as <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></CODE></FONT></TD>
<TD><CODE><B>Play.</B><B><A HREF="../../../play/Play.html#conf">conf</A></B></CODE>
<BR>
The main application.conf</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></CODE></FONT></TD>
<TD><CODE><B>Play.</B><B><A HREF="../../../play/Play.html#routes">routes</A></B></CODE>
<BR>
Main routes file</TD>
</TR>
</TABLE>
<P>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left" COLSPAN="2">Fields in <A HREF="../../../play/package-summary.html">play</A> with type parameters of type <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.util.List<<A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A>></CODE></FONT></TD>
<TD><CODE><B>Play.</B><B><A HREF="../../../play/Play.html#javaPath">javaPath</A></B></CODE>
<BR>
All paths to search for Java files</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.util.Map<java.lang.String,<A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A>></CODE></FONT></TD>
<TD><CODE><B>Play.</B><B><A HREF="../../../play/Play.html#modules">modules</A></B></CODE>
<BR>
Modules</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.util.Map<java.lang.String,<A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A>></CODE></FONT></TD>
<TD><CODE><B>Play.</B><B><A HREF="../../../play/Play.html#modulesRoutes">modulesRoutes</A></B></CODE>
<BR>
Plugin routes files</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.util.List<<A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A>></CODE></FONT></TD>
<TD><CODE><B>Play.</B><B><A HREF="../../../play/Play.html#roots">roots</A></B></CODE>
<BR>
All paths to search for files</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.util.List<<A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A>></CODE></FONT></TD>
<TD><CODE><B>Play.</B><B><A HREF="../../../play/Play.html#templatesPath">templatesPath</A></B></CODE>
<BR>
All paths to search for templates files</TD>
</TR>
</TABLE>
<P>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../play/package-summary.html">play</A> that return <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></CODE></FONT></TD>
<TD><CODE><B>Play.</B><B><A HREF="../../../play/Play.html#getVirtualFile(java.lang.String)">getVirtualFile</A></B>(java.lang.String path)</CODE>
<BR>
Search a VirtualFile in all loaded applications and plugins</TD>
</TR>
</TABLE>
<P>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../play/package-summary.html">play</A> with parameters of type <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../play/templates/Template.html" title="class in play.templates">Template</A></CODE></FONT></TD>
<TD><CODE><B>PlayPlugin.</B><B><A HREF="../../../play/PlayPlugin.html#loadTemplate(play.vfs.VirtualFile)">loadTemplate</A></B>(<A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A> file)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B>PlayPlugin.</B><B><A HREF="../../../play/PlayPlugin.html#serveStatic(play.vfs.VirtualFile, play.mvc.Http.Request, play.mvc.Http.Response)">serveStatic</A></B>(<A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A> file,
<A HREF="../../../play/mvc/Http.Request.html" title="class in play.mvc">Http.Request</A> request,
<A HREF="../../../play/mvc/Http.Response.html" title="class in play.mvc">Http.Response</A> response)</CODE>
<BR>
Let a chance to this plugin to manage a static ressource</TD>
</TR>
</TABLE>
<P>
<A NAME="play.classloading"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
Uses of <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A> in <A HREF="../../../play/classloading/package-summary.html">play.classloading</A></FONT></TH>
</TR>
</TABLE>
<P>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left" COLSPAN="2">Fields in <A HREF="../../../play/classloading/package-summary.html">play.classloading</A> declared as <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></CODE></FONT></TD>
<TD><CODE><B>ApplicationClasses.ApplicationClass.</B><B><A HREF="../../../play/classloading/ApplicationClasses.ApplicationClass.html#javaFile">javaFile</A></B></CODE>
<BR>
A reference to the java source file</TD>
</TR>
</TABLE>
<P>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../play/classloading/package-summary.html">play.classloading</A> that return <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></CODE></FONT></TD>
<TD><CODE><B>ApplicationClasses.</B><B><A HREF="../../../play/classloading/ApplicationClasses.html#getJava(java.lang.String)">getJava</A></B>(java.lang.String name)</CODE>
<BR>
Retrieve the corresponding source file for a given class name.</TD>
</TR>
</TABLE>
<P>
<A NAME="play.classloading.hash"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
Uses of <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A> in <A HREF="../../../play/classloading/hash/package-summary.html">play.classloading.hash</A></FONT></TH>
</TR>
</TABLE>
<P>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left" COLSPAN="2">Method parameters in <A HREF="../../../play/classloading/hash/package-summary.html">play.classloading.hash</A> with type arguments of type <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B>ClassStateHashCreator.</B><B><A HREF="../../../play/classloading/hash/ClassStateHashCreator.html#computePathHash(java.util.List)">computePathHash</A></B>(java.util.List<<A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A>> paths)</CODE>
<BR>
</TD>
</TR>
</TABLE>
<P>
<A NAME="play.exceptions"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
Uses of <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A> in <A HREF="../../../play/exceptions/package-summary.html">play.exceptions</A></FONT></TH>
</TR>
</TABLE>
<P>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left" COLSPAN="2">Constructors in <A HREF="../../../play/exceptions/package-summary.html">play.exceptions</A> with parameters of type <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../play/exceptions/CompilationException.html#CompilationException(play.vfs.VirtualFile, java.lang.String, int, int, int)">CompilationException</A></B>(<A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A> source,
java.lang.String problem,
int line,
int start,
int end)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../play/exceptions/YAMLException.html#YAMLException(org.yaml.snakeyaml.scanner.ScannerException, play.vfs.VirtualFile)">YAMLException</A></B>(org.yaml.snakeyaml.scanner.ScannerException e,
<A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A> yaml)</CODE>
<BR>
</TD>
</TR>
</TABLE>
<P>
<A NAME="play.mvc"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
Uses of <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A> in <A HREF="../../../play/mvc/package-summary.html">play.mvc</A></FONT></TH>
</TR>
</TABLE>
<P>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../play/mvc/package-summary.html">play.mvc</A> with parameters of type <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.lang.String</CODE></FONT></TD>
<TD><CODE><B>Router.</B><B><A HREF="../../../play/mvc/Router.html#reverse(play.vfs.VirtualFile)">reverse</A></B>(<A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A> file)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.lang.String</CODE></FONT></TD>
<TD><CODE><B>Router.</B><B><A HREF="../../../play/mvc/Router.html#reverse(play.vfs.VirtualFile, boolean)">reverse</A></B>(<A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A> file,
boolean absolute)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.lang.String</CODE></FONT></TD>
<TD><CODE><B>Router.</B><B><A HREF="../../../play/mvc/Router.html#reverseWithCheck(java.lang.String, play.vfs.VirtualFile, boolean)">reverseWithCheck</A></B>(java.lang.String name,
<A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A> file,
boolean absolute)</CODE>
<BR>
</TD>
</TR>
</TABLE>
<P>
<A NAME="play.mvc.results"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
Uses of <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A> in <A HREF="../../../play/mvc/results/package-summary.html">play.mvc.results</A></FONT></TH>
</TR>
</TABLE>
<P>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left" COLSPAN="2">Fields in <A HREF="../../../play/mvc/results/package-summary.html">play.mvc.results</A> declared as <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></CODE></FONT></TD>
<TD><CODE><B>RenderStatic.</B><B><A HREF="../../../play/mvc/results/RenderStatic.html#resolvedFile">resolvedFile</A></B></CODE>
<BR>
</TD>
</TR>
</TABLE>
<P>
<A NAME="play.plugins"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
Uses of <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A> in <A HREF="../../../play/plugins/package-summary.html">play.plugins</A></FONT></TH>
</TR>
</TABLE>
<P>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../play/plugins/package-summary.html">play.plugins</A> with parameters of type <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../play/templates/Template.html" title="class in play.templates">Template</A></CODE></FONT></TD>
<TD><CODE><B>PluginCollection.</B><B><A HREF="../../../play/plugins/PluginCollection.html#loadTemplate(play.vfs.VirtualFile)">loadTemplate</A></B>(<A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A> file)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B>PluginCollection.</B><B><A HREF="../../../play/plugins/PluginCollection.html#serveStatic(play.vfs.VirtualFile, play.mvc.Http.Request, play.mvc.Http.Response)">serveStatic</A></B>(<A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A> file,
<A HREF="../../../play/mvc/Http.Request.html" title="class in play.mvc">Http.Request</A> request,
<A HREF="../../../play/mvc/Http.Response.html" title="class in play.mvc">Http.Response</A> response)</CODE>
<BR>
</TD>
</TR>
</TABLE>
<P>
<A NAME="play.templates"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
Uses of <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A> in <A HREF="../../../play/templates/package-summary.html">play.templates</A></FONT></TH>
</TR>
</TABLE>
<P>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../play/templates/package-summary.html">play.templates</A> with parameters of type <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../play/templates/BaseTemplate.html" title="class in play.templates">BaseTemplate</A></CODE></FONT></TD>
<TD><CODE><B>TemplateCompiler.</B><B><A HREF="../../../play/templates/TemplateCompiler.html#compile(play.vfs.VirtualFile)">compile</A></B>(<A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A> file)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../play/templates/Template.html" title="class in play.templates">Template</A></CODE></FONT></TD>
<TD><CODE><B>TemplateLoader.</B><B><A HREF="../../../play/templates/TemplateLoader.html#load(play.vfs.VirtualFile)">load</A></B>(<A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A> file)</CODE>
<BR>
Load a template from a virtual file</TD>
</TR>
</TABLE>
<P>
<A NAME="play.vfs"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
Uses of <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A> in <A HREF="../../../play/vfs/package-summary.html">play.vfs</A></FONT></TH>
</TR>
</TABLE>
<P>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../play/vfs/package-summary.html">play.vfs</A> that return <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></CODE></FONT></TD>
<TD><CODE><B>VirtualFile.</B><B><A HREF="../../../play/vfs/VirtualFile.html#child(java.lang.String)">child</A></B>(java.lang.String name)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></CODE></FONT></TD>
<TD><CODE><B>VirtualFile.</B><B><A HREF="../../../play/vfs/VirtualFile.html#fromRelativePath(java.lang.String)">fromRelativePath</A></B>(java.lang.String relativePath)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></CODE></FONT></TD>
<TD><CODE><B>VirtualFile.</B><B><A HREF="../../../play/vfs/VirtualFile.html#open(java.io.File)">open</A></B>(java.io.File file)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></CODE></FONT></TD>
<TD><CODE><B>VirtualFile.</B><B><A HREF="../../../play/vfs/VirtualFile.html#open(java.lang.String)">open</A></B>(java.lang.String file)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></CODE></FONT></TD>
<TD><CODE><B>VirtualFile.</B><B><A HREF="../../../play/vfs/VirtualFile.html#search(java.util.Collection, java.lang.String)">search</A></B>(java.util.Collection<<A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A>> roots,
java.lang.String path)</CODE>
<BR>
</TD>
</TR>
</TABLE>
<P>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../play/vfs/package-summary.html">play.vfs</A> that return types with arguments of type <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.util.List<<A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A>></CODE></FONT></TD>
<TD><CODE><B>VirtualFile.</B><B><A HREF="../../../play/vfs/VirtualFile.html#list()">list</A></B>()</CODE>
<BR>
</TD>
</TR>
</TABLE>
<P>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left" COLSPAN="2">Method parameters in <A HREF="../../../play/vfs/package-summary.html">play.vfs</A> with type arguments of type <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A></CODE></FONT></TD>
<TD><CODE><B>VirtualFile.</B><B><A HREF="../../../play/vfs/VirtualFile.html#search(java.util.Collection, java.lang.String)">search</A></B>(java.util.Collection<<A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs">VirtualFile</A>> roots,
java.lang.String path)</CODE>
<BR>
</TD>
</TR>
</TABLE>
<P>
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../play/vfs/VirtualFile.html" title="class in play.vfs"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html?play/vfs//class-useVirtualFile.html" target="_top"><B>FRAMES</B></A>
<A HREF="VirtualFile.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
<a href="http://guillaume.bort.fr">Guillaume Bort</a> & <a href="http://www.zenexity.fr">zenexity</a> - Distributed under <a href="http://www.apache.org/licenses/LICENSE-2.0.html">Apache 2 licence</a>, without any warrantly
</BODY>
</HTML>
|
{
"content_hash": "2d86bcaef562212dd00152159dccb453",
"timestamp": "",
"source": "github",
"line_count": 638,
"max_line_length": 294,
"avg_line_length": 50.58620689655172,
"alnum_prop": 0.6493772076594162,
"repo_name": "lafayette/JBTT",
"id": "478eb2c649f282762464e9862f776f846e2b82f9",
"size": "32274",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "framework/documentation/api/play/vfs/class-use/VirtualFile.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "76128"
},
{
"name": "C++",
"bytes": "30518"
},
{
"name": "Java",
"bytes": "1882568"
},
{
"name": "JavaScript",
"bytes": "1326008"
},
{
"name": "Python",
"bytes": "8682515"
},
{
"name": "Shell",
"bytes": "1977"
}
],
"symlink_target": ""
}
|
// [WriteFile Name=GODictionaryRenderer_3D, Category=DisplayInformation]
// [Legal]
// Copyright 2016 Esri.
// 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.
// [Legal]
#ifdef PCH_BUILD
#include "pch.hpp"
#endif // PCH_BUILD
#include "GODictionaryRenderer_3D.h"
#include <QFileInfo>
#include "ArcGISTiledElevationSource.h"
#include "Camera.h"
#include "DictionaryRenderer.h"
#include "GeometryEngine.h"
#include "GraphicListModel.h"
#include "Scene.h"
#include "SceneQuickView.h"
#include "Surface.h"
#include "DictionarySymbolStyle.h"
#include <QDir>
#include <QtCore/qglobal.h>
#ifdef Q_OS_IOS
#include <QStandardPaths>
#endif // Q_OS_IOS
using namespace Esri::ArcGISRuntime;
// helper method to get cross platform data path
namespace
{
QString defaultDataPath()
{
QString dataPath;
#ifdef Q_OS_ANDROID
dataPath = "/sdcard";
#elif defined Q_OS_IOS
dataPath = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation);
#else
dataPath = QDir::homePath();
#endif
return dataPath;
}
} // namespace
const QString GODictionaryRenderer_3D::FIELD_CONTROL_POINTS = "_control_points";
const QString GODictionaryRenderer_3D::FIELD_WKID = "_wkid";
GODictionaryRenderer_3D::GODictionaryRenderer_3D(QQuickItem* parent) :
QQuickItem(parent),
m_dataPath(defaultDataPath() + "/ArcGIS/Runtime/Data"),
m_graphicsOverlay(new GraphicsOverlay(this))
{
connect(m_graphicsOverlay, &GraphicsOverlay::errorOccurred, this, &GODictionaryRenderer_3D::logError);
m_graphicsOverlay->setRenderingMode(GraphicsRenderingMode::Dynamic);
}
GODictionaryRenderer_3D::~GODictionaryRenderer_3D() = default;
void GODictionaryRenderer_3D::init()
{
qmlRegisterType<SceneQuickView>("Esri.Samples", 1, 0, "SceneView");
qmlRegisterType<GODictionaryRenderer_3D>("Esri.Samples", 1, 0, "GODictionaryRenderer_3DSample");
}
void GODictionaryRenderer_3D::logError(Error error)
{
setErrorMessage(QString("%1: %2").arg(error.message(), error.additionalMessage()));
}
void GODictionaryRenderer_3D::componentComplete()
{
QQuickItem::componentComplete();
// Set up DictionaryRenderer
if (!QFileInfo::exists(m_dataPath + "/styles/arcade_style/mil2525d.stylx"))
setErrorMessage("mil2525d.stylx not found");
DictionarySymbolStyle* dictionarySymbolStyle = DictionarySymbolStyle::createFromFile(m_dataPath + "/styles/arcade_style/mil2525d.stylx", this);
connect(dictionarySymbolStyle, &DictionarySymbolStyle::errorOccurred, this, &GODictionaryRenderer_3D::logError);
DictionaryRenderer* renderer = new DictionaryRenderer(dictionarySymbolStyle, this);
connect(renderer, &DictionaryRenderer::errorOccurred, this, &GODictionaryRenderer_3D::logError);
m_graphicsOverlay->setRenderer(renderer);
// Create a scene and give it to the SceneView
m_sceneView = findChild<SceneQuickView*>("sceneView");
connect(m_sceneView, &SceneQuickView::errorOccurred, this, &GODictionaryRenderer_3D::logError);
Scene* scene = new Scene(BasemapStyle::ArcGISImageryStandard, this);
connect(scene, &Scene::errorOccurred, this, &GODictionaryRenderer_3D::logError);
Surface* surface = new Surface(this);
connect(surface, &Surface::errorOccurred, this, &GODictionaryRenderer_3D::logError);
surface->elevationSources()->append(
new ArcGISTiledElevationSource(
QUrl("https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer"),
this));
scene->setBaseSurface(surface);
m_sceneView->setArcGISScene(scene);
m_sceneView->graphicsOverlays()->append(m_graphicsOverlay);
parseXmlFile();
emit graphicsLoaded();
zoomToGraphics();
}
void GODictionaryRenderer_3D::parseXmlFile()
{
bool readingMessage = false;
QVariantMap elementValues;
QString currentElementName;
if (!QFileInfo::exists(m_dataPath + "/xml/arcade_style/Mil2525DMessages.xml"))
setErrorMessage("xml/Mil2525DMessages.xml file is missing");
QFile xmlFile(m_dataPath + "/xml/arcade_style/Mil2525DMessages.xml");
// Open the file for reading
if (xmlFile.isOpen())
{
xmlFile.reset();
}
else
{
xmlFile.open(QIODevice::ReadOnly | QIODevice::Text);
}
m_xmlParser.setDevice(&xmlFile);
// Traverse the XML in a loop
while (!m_xmlParser.atEnd())
{
m_xmlParser.readNext();
// Is this the start or end of a message element?
if (m_xmlParser.name() == "message")
{
if (!readingMessage)
{
// This is the start of a message element.
elementValues.clear();
}
else
{
/**
* This is the end of a message element. Here we have a complete message that defines
* a military feature to display on the map. Create a graphic from its attributes.
*/
createGraphic(elementValues);
}
// Either we just started reading a message, or we just finished reading a message.
readingMessage = !readingMessage;
}
// Are we already inside a message element?
else if (readingMessage)
{
// Is this the start of an element inside a message?
if (m_xmlParser.isStartElement())
{
// Remember which element we're reading
currentElementName = m_xmlParser.name().toString();
}
// Is this text?
else if (m_xmlParser.isCharacters())
{
// Is this text inside an element?
if (!currentElementName.isEmpty())
{
// Get the text and store it as the current element's value
QStringRef trimmedText = m_xmlParser.text().trimmed();
if (!trimmedText.isEmpty())
{
elementValues[currentElementName] = trimmedText.toString();
}
}
}
}
}
}
void GODictionaryRenderer_3D::createGraphic(QVariantMap rawAttributes)
{
// If _wkid was absent, use WGS 1984 (4326) by default.
int wkid = rawAttributes.count(FIELD_WKID) > 0 ? rawAttributes[FIELD_WKID].toInt() : 4326;
SpatialReference sr(wkid);
Geometry geom;
QStringList pointStrings = rawAttributes[FIELD_CONTROL_POINTS].toString().split(";");
if (pointStrings.length() == 1)
{
// It's a point
QStringList coords = pointStrings[0].split(",");
geom = Point(coords[0].toDouble(), coords[1].toDouble(), sr);
}
if (!geom.isEmpty())
{
/**
* Get rid of _control_points and _wkid. They are not needed in the graphic's
* attributes.
*/
rawAttributes.remove(FIELD_CONTROL_POINTS);
rawAttributes.remove(FIELD_WKID);
Graphic* graphic = new Graphic(geom, rawAttributes, this);
m_graphicsOverlay->graphics()->append(graphic);
m_bbox = m_bbox.isEmpty() ? geom.extent() : GeometryEngine::unionOf(m_bbox, geom).extent();
}
}
void GODictionaryRenderer_3D::zoomToGraphics()
{
m_bbox = GeometryEngine::project(m_bbox, m_sceneView->arcGISScene()->spatialReference());
// Create a camera that looks at the bbox center, height 15000, pitch 70
Camera camera(m_bbox.extent().center(), 15000, 0, 70, 0);
m_sceneView->setViewpointCameraAndWait(camera);
}
QString GODictionaryRenderer_3D::errorMessage() const
{
return m_errorMsg;
}
void GODictionaryRenderer_3D::setErrorMessage(const QString& msg)
{
m_errorMsg = msg;
qDebug() << m_errorMsg;
emit errorMessageChanged();
}
|
{
"content_hash": "3d82fd3186ff294e09fbf918cc33e5ce",
"timestamp": "",
"source": "github",
"line_count": 249,
"max_line_length": 145,
"avg_line_length": 31.180722891566266,
"alnum_prop": 0.7031169500257599,
"repo_name": "Esri/arcgis-runtime-samples-qt",
"id": "7a94ed541995a43dc54b8843a4ca064f1c230c5f",
"size": "7764",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "ArcGISRuntimeSDKQt_CppSamples/DisplayInformation/GODictionaryRenderer_3D/GODictionaryRenderer_3D.cpp",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "1257"
},
{
"name": "C++",
"bytes": "3016542"
},
{
"name": "Dockerfile",
"bytes": "1654"
},
{
"name": "Python",
"bytes": "21695"
},
{
"name": "QML",
"bytes": "2260363"
},
{
"name": "QMake",
"bytes": "1444609"
},
{
"name": "Ruby",
"bytes": "1047"
}
],
"symlink_target": ""
}
|
using System.Collections.Generic;
using System.Threading.Tasks;
using YUTPLAT.ViewModel;
namespace YUTPLAT.Services.Interface
{
public interface IPersonaService
{
Task<PersonaViewModel> GetById(string id);
Task<PersonaViewModel> GetByUserName(string userName);
Task<IList<PersonaViewModel>> Todas();
Task<IList<PersonaViewModel>> Buscar(PersonaViewModel filtro);
Task<IList<RolViewModel>> TodosRoles();
Task<string> Guardar(PersonaViewModel personaViewModel);
Task<bool> ExisteUsuario(string nombreUsuario);
}
}
|
{
"content_hash": "f485da372cd1ef7c23e0f2b3c976f881",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 70,
"avg_line_length": 26.391304347826086,
"alnum_prop": 0.6968698517298187,
"repo_name": "ballesta1234/Y-U-T-P-L-A-T",
"id": "85b937217ecf0988ea336b53f7fe83ef6fd5abe9",
"size": "609",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "YUTPLAT/Services/Interface/IPersonaService.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ASP",
"bytes": "98"
},
{
"name": "C#",
"bytes": "340717"
},
{
"name": "CSS",
"bytes": "146215"
},
{
"name": "HTML",
"bytes": "391905"
},
{
"name": "JavaScript",
"bytes": "1018701"
},
{
"name": "PLSQL",
"bytes": "49690"
}
],
"symlink_target": ""
}
|
// -*- mode: java; c-basic-offset: 2; -*-
// Copyright 2012 Massachusetts Institute of Technology. All rights reserved.
/**
* @license
* @fileoverview Procedure yail generators for Blockly, modified for MIT App Inventor.
* @author mckinney@mit.edu (Andrew F. McKinney)
*/
'use strict';
goog.provide('Blockly.Yail.procedures');
/**
* Lyn's History:
* [lyn, 10/29/13] Fixed bug in handling parameters of zero-arg procedures.
* [lyn, 10/27/13] Modified procedure names to begin with YAIL_PROC_TAG (currently 'p$')
* and parameters to begin with YAIL_LOCAL_VAR_TAG (currently '$').
* At least on Kawa-legal first character is necessary to ensure AI identifiers
* satisfy Kawa's identifier rules. And the procedure 'p$' tag is necessary to
* distinguish procedures from globals (which use the 'g$' tag).
* [lyn, 01/15/2013] Edited to remove STACK (no longer necessary with DO-THEN-RETURN)
*/
Blockly.Yail.YAIL_PROC_TAG = 'p$'; // See notes on this in generators/yail/variables.js
// Generator code for procedure call with return
// [lyn, 01/15/2013] Edited to remove STACK (no longer necessary with DO-THEN-RETURN)
Blockly.Yail['procedures_defreturn'] = function() {
var argPrefix = Blockly.Yail.YAIL_LOCAL_VAR_TAG
+ (Blockly.usePrefixInYail && this.arguments_.length != 0 ? "param_" : "");
var args = this.arguments_.map(function (arg) {return argPrefix + arg;}).join(' ');
var procName = Blockly.Yail.YAIL_PROC_TAG + this.getFieldValue('NAME');
var returnVal = Blockly.Yail.valueToCode(this, 'RETURN', Blockly.Yail.ORDER_NONE) || Blockly.Yail.YAIL_FALSE;
var code = Blockly.Yail.YAIL_DEFINE + Blockly.Yail.YAIL_OPEN_COMBINATION + procName
+ Blockly.Yail.YAIL_SPACER + args + Blockly.Yail.YAIL_CLOSE_COMBINATION
+ Blockly.Yail.YAIL_SPACER + returnVal + Blockly.Yail.YAIL_CLOSE_COMBINATION;
return code;
};
// Generator code for procedure call with return
Blockly.Yail['procedures_defnoreturn'] = function() {
var argPrefix = Blockly.Yail.YAIL_LOCAL_VAR_TAG
+ (Blockly.usePrefixInYail && this.arguments_.length != 0 ? "param_" : "");
var args = this.arguments_.map(function (arg) {return argPrefix + arg;}).join(' ');
var procName = Blockly.Yail.YAIL_PROC_TAG + this.getFieldValue('NAME');
var body = Blockly.Yail.statementToCode(this, 'STACK', Blockly.Yail.ORDER_NONE) || Blockly.Yail.YAIL_FALSE;
var code = Blockly.Yail.YAIL_DEFINE + Blockly.Yail.YAIL_OPEN_COMBINATION + procName
+ Blockly.Yail.YAIL_SPACER + args + Blockly.Yail.YAIL_CLOSE_COMBINATION + body
+ Blockly.Yail.YAIL_CLOSE_COMBINATION;
return code;
};
Blockly.Yail['procedure_lexical_variable_get'] = function() {
return Blockly.Yail.lexical_variable_get.call(this);
}
//call the do return in control category
Blockly.Yail['procedures_do_then_return'] = function() {
return Blockly.Yail.controls_do_then_return.call(this);
}
// Generator code for procedure call with return
Blockly.Yail['procedures_callnoreturn'] = function() {
var procName = Blockly.Yail.YAIL_PROC_TAG + this.getFieldValue('PROCNAME');
var argCode = [];
for ( var x = 0;this.getInput("ARG" + x); x++) {
argCode[x] = Blockly.Yail.valueToCode(this, 'ARG' + x, Blockly.Yail.ORDER_NONE) || Blockly.Yail.YAIL_FALSE;
}
var code = Blockly.Yail.YAIL_OPEN_COMBINATION + Blockly.Yail.YAIL_GET_VARIABLE + procName
+ Blockly.Yail.YAIL_CLOSE_COMBINATION + Blockly.Yail.YAIL_SPACER + argCode.join(' ')
+ Blockly.Yail.YAIL_CLOSE_COMBINATION;
return code;
};
// Generator code for procedure call with return
Blockly.Yail['procedures_callreturn'] = function() {
var procName = Blockly.Yail.YAIL_PROC_TAG + this.getFieldValue('PROCNAME');
var argCode = [];
for ( var x = 0; this.getInput("ARG" + x); x++) {
argCode[x] = Blockly.Yail.valueToCode(this, 'ARG' + x, Blockly.Yail.ORDER_NONE) || Blockly.Yail.YAIL_FALSE;
}
var code = Blockly.Yail.YAIL_OPEN_COMBINATION + Blockly.Yail.YAIL_GET_VARIABLE + procName
+ Blockly.Yail.YAIL_CLOSE_COMBINATION + Blockly.Yail.YAIL_SPACER + argCode.join(' ')
+ Blockly.Yail.YAIL_CLOSE_COMBINATION;
return [ code, Blockly.Yail.ORDER_ATOMIC ];
};
|
{
"content_hash": "04a0b46e9673fb25f8e209a442991db0",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 111,
"avg_line_length": 47.97701149425287,
"alnum_prop": 0.701245807379013,
"repo_name": "cs6510/CS6510-Compiler-John",
"id": "078329b444110a8870a6581e2c0c2d8d0b13dc60",
"size": "4174",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "appinventor/blocklyeditor/src/generators/yail/procedures.js",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "202763"
},
{
"name": "Java",
"bytes": "4676586"
},
{
"name": "JavaScript",
"bytes": "14219122"
},
{
"name": "Python",
"bytes": "311126"
},
{
"name": "Scheme",
"bytes": "122163"
},
{
"name": "Shell",
"bytes": "2517"
}
],
"symlink_target": ""
}
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/dataproc/v1beta2/workflow_templates.proto
package com.google.cloud.dataproc.v1beta2;
/**
*
*
* <pre>
* Specifies workflow execution target.
* Either `managed_cluster` or `cluster_selector` is required.
* </pre>
*
* Protobuf type {@code google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement}
*/
public final class WorkflowTemplatePlacement extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement)
WorkflowTemplatePlacementOrBuilder {
private static final long serialVersionUID = 0L;
// Use WorkflowTemplatePlacement.newBuilder() to construct.
private WorkflowTemplatePlacement(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private WorkflowTemplatePlacement() {}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private WorkflowTemplatePlacement(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
com.google.cloud.dataproc.v1beta2.ManagedCluster.Builder subBuilder = null;
if (placementCase_ == 1) {
subBuilder =
((com.google.cloud.dataproc.v1beta2.ManagedCluster) placement_).toBuilder();
}
placement_ =
input.readMessage(
com.google.cloud.dataproc.v1beta2.ManagedCluster.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.google.cloud.dataproc.v1beta2.ManagedCluster) placement_);
placement_ = subBuilder.buildPartial();
}
placementCase_ = 1;
break;
}
case 18:
{
com.google.cloud.dataproc.v1beta2.ClusterSelector.Builder subBuilder = null;
if (placementCase_ == 2) {
subBuilder =
((com.google.cloud.dataproc.v1beta2.ClusterSelector) placement_).toBuilder();
}
placement_ =
input.readMessage(
com.google.cloud.dataproc.v1beta2.ClusterSelector.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(
(com.google.cloud.dataproc.v1beta2.ClusterSelector) placement_);
placement_ = subBuilder.buildPartial();
}
placementCase_ = 2;
break;
}
default:
{
if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto
.internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplatePlacement_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto
.internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplatePlacement_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.class,
com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.Builder.class);
}
private int placementCase_ = 0;
private java.lang.Object placement_;
public enum PlacementCase implements com.google.protobuf.Internal.EnumLite {
MANAGED_CLUSTER(1),
CLUSTER_SELECTOR(2),
PLACEMENT_NOT_SET(0);
private final int value;
private PlacementCase(int value) {
this.value = value;
}
/** @deprecated Use {@link #forNumber(int)} instead. */
@java.lang.Deprecated
public static PlacementCase valueOf(int value) {
return forNumber(value);
}
public static PlacementCase forNumber(int value) {
switch (value) {
case 1:
return MANAGED_CLUSTER;
case 2:
return CLUSTER_SELECTOR;
case 0:
return PLACEMENT_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public PlacementCase getPlacementCase() {
return PlacementCase.forNumber(placementCase_);
}
public static final int MANAGED_CLUSTER_FIELD_NUMBER = 1;
/**
*
*
* <pre>
* Optional. A cluster that is managed by the workflow.
* </pre>
*
* <code>.google.cloud.dataproc.v1beta2.ManagedCluster managed_cluster = 1;</code>
*/
public boolean hasManagedCluster() {
return placementCase_ == 1;
}
/**
*
*
* <pre>
* Optional. A cluster that is managed by the workflow.
* </pre>
*
* <code>.google.cloud.dataproc.v1beta2.ManagedCluster managed_cluster = 1;</code>
*/
public com.google.cloud.dataproc.v1beta2.ManagedCluster getManagedCluster() {
if (placementCase_ == 1) {
return (com.google.cloud.dataproc.v1beta2.ManagedCluster) placement_;
}
return com.google.cloud.dataproc.v1beta2.ManagedCluster.getDefaultInstance();
}
/**
*
*
* <pre>
* Optional. A cluster that is managed by the workflow.
* </pre>
*
* <code>.google.cloud.dataproc.v1beta2.ManagedCluster managed_cluster = 1;</code>
*/
public com.google.cloud.dataproc.v1beta2.ManagedClusterOrBuilder getManagedClusterOrBuilder() {
if (placementCase_ == 1) {
return (com.google.cloud.dataproc.v1beta2.ManagedCluster) placement_;
}
return com.google.cloud.dataproc.v1beta2.ManagedCluster.getDefaultInstance();
}
public static final int CLUSTER_SELECTOR_FIELD_NUMBER = 2;
/**
*
*
* <pre>
* Optional. A selector that chooses target cluster for jobs based
* on metadata.
* The selector is evaluated at the time each job is submitted.
* </pre>
*
* <code>.google.cloud.dataproc.v1beta2.ClusterSelector cluster_selector = 2;</code>
*/
public boolean hasClusterSelector() {
return placementCase_ == 2;
}
/**
*
*
* <pre>
* Optional. A selector that chooses target cluster for jobs based
* on metadata.
* The selector is evaluated at the time each job is submitted.
* </pre>
*
* <code>.google.cloud.dataproc.v1beta2.ClusterSelector cluster_selector = 2;</code>
*/
public com.google.cloud.dataproc.v1beta2.ClusterSelector getClusterSelector() {
if (placementCase_ == 2) {
return (com.google.cloud.dataproc.v1beta2.ClusterSelector) placement_;
}
return com.google.cloud.dataproc.v1beta2.ClusterSelector.getDefaultInstance();
}
/**
*
*
* <pre>
* Optional. A selector that chooses target cluster for jobs based
* on metadata.
* The selector is evaluated at the time each job is submitted.
* </pre>
*
* <code>.google.cloud.dataproc.v1beta2.ClusterSelector cluster_selector = 2;</code>
*/
public com.google.cloud.dataproc.v1beta2.ClusterSelectorOrBuilder getClusterSelectorOrBuilder() {
if (placementCase_ == 2) {
return (com.google.cloud.dataproc.v1beta2.ClusterSelector) placement_;
}
return com.google.cloud.dataproc.v1beta2.ClusterSelector.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (placementCase_ == 1) {
output.writeMessage(1, (com.google.cloud.dataproc.v1beta2.ManagedCluster) placement_);
}
if (placementCase_ == 2) {
output.writeMessage(2, (com.google.cloud.dataproc.v1beta2.ClusterSelector) placement_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (placementCase_ == 1) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
1, (com.google.cloud.dataproc.v1beta2.ManagedCluster) placement_);
}
if (placementCase_ == 2) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
2, (com.google.cloud.dataproc.v1beta2.ClusterSelector) placement_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement)) {
return super.equals(obj);
}
com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement other =
(com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement) obj;
boolean result = true;
result = result && getPlacementCase().equals(other.getPlacementCase());
if (!result) return false;
switch (placementCase_) {
case 1:
result = result && getManagedCluster().equals(other.getManagedCluster());
break;
case 2:
result = result && getClusterSelector().equals(other.getClusterSelector());
break;
case 0:
default:
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (placementCase_) {
case 1:
hash = (37 * hash) + MANAGED_CLUSTER_FIELD_NUMBER;
hash = (53 * hash) + getManagedCluster().hashCode();
break;
case 2:
hash = (37 * hash) + CLUSTER_SELECTOR_FIELD_NUMBER;
hash = (53 * hash) + getClusterSelector().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
* <pre>
* Specifies workflow execution target.
* Either `managed_cluster` or `cluster_selector` is required.
* </pre>
*
* Protobuf type {@code google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement)
com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacementOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto
.internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplatePlacement_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto
.internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplatePlacement_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.class,
com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.Builder.class);
}
// Construct using com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
placementCase_ = 0;
placement_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto
.internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplatePlacement_descriptor;
}
@java.lang.Override
public com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement getDefaultInstanceForType() {
return com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement build() {
com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement buildPartial() {
com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement result =
new com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement(this);
if (placementCase_ == 1) {
if (managedClusterBuilder_ == null) {
result.placement_ = placement_;
} else {
result.placement_ = managedClusterBuilder_.build();
}
}
if (placementCase_ == 2) {
if (clusterSelectorBuilder_ == null) {
result.placement_ = placement_;
} else {
result.placement_ = clusterSelectorBuilder_.build();
}
}
result.placementCase_ = placementCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement) {
return mergeFrom((com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement other) {
if (other == com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.getDefaultInstance())
return this;
switch (other.getPlacementCase()) {
case MANAGED_CLUSTER:
{
mergeManagedCluster(other.getManagedCluster());
break;
}
case CLUSTER_SELECTOR:
{
mergeClusterSelector(other.getClusterSelector());
break;
}
case PLACEMENT_NOT_SET:
{
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int placementCase_ = 0;
private java.lang.Object placement_;
public PlacementCase getPlacementCase() {
return PlacementCase.forNumber(placementCase_);
}
public Builder clearPlacement() {
placementCase_ = 0;
placement_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataproc.v1beta2.ManagedCluster,
com.google.cloud.dataproc.v1beta2.ManagedCluster.Builder,
com.google.cloud.dataproc.v1beta2.ManagedClusterOrBuilder>
managedClusterBuilder_;
/**
*
*
* <pre>
* Optional. A cluster that is managed by the workflow.
* </pre>
*
* <code>.google.cloud.dataproc.v1beta2.ManagedCluster managed_cluster = 1;</code>
*/
public boolean hasManagedCluster() {
return placementCase_ == 1;
}
/**
*
*
* <pre>
* Optional. A cluster that is managed by the workflow.
* </pre>
*
* <code>.google.cloud.dataproc.v1beta2.ManagedCluster managed_cluster = 1;</code>
*/
public com.google.cloud.dataproc.v1beta2.ManagedCluster getManagedCluster() {
if (managedClusterBuilder_ == null) {
if (placementCase_ == 1) {
return (com.google.cloud.dataproc.v1beta2.ManagedCluster) placement_;
}
return com.google.cloud.dataproc.v1beta2.ManagedCluster.getDefaultInstance();
} else {
if (placementCase_ == 1) {
return managedClusterBuilder_.getMessage();
}
return com.google.cloud.dataproc.v1beta2.ManagedCluster.getDefaultInstance();
}
}
/**
*
*
* <pre>
* Optional. A cluster that is managed by the workflow.
* </pre>
*
* <code>.google.cloud.dataproc.v1beta2.ManagedCluster managed_cluster = 1;</code>
*/
public Builder setManagedCluster(com.google.cloud.dataproc.v1beta2.ManagedCluster value) {
if (managedClusterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
placement_ = value;
onChanged();
} else {
managedClusterBuilder_.setMessage(value);
}
placementCase_ = 1;
return this;
}
/**
*
*
* <pre>
* Optional. A cluster that is managed by the workflow.
* </pre>
*
* <code>.google.cloud.dataproc.v1beta2.ManagedCluster managed_cluster = 1;</code>
*/
public Builder setManagedCluster(
com.google.cloud.dataproc.v1beta2.ManagedCluster.Builder builderForValue) {
if (managedClusterBuilder_ == null) {
placement_ = builderForValue.build();
onChanged();
} else {
managedClusterBuilder_.setMessage(builderForValue.build());
}
placementCase_ = 1;
return this;
}
/**
*
*
* <pre>
* Optional. A cluster that is managed by the workflow.
* </pre>
*
* <code>.google.cloud.dataproc.v1beta2.ManagedCluster managed_cluster = 1;</code>
*/
public Builder mergeManagedCluster(com.google.cloud.dataproc.v1beta2.ManagedCluster value) {
if (managedClusterBuilder_ == null) {
if (placementCase_ == 1
&& placement_
!= com.google.cloud.dataproc.v1beta2.ManagedCluster.getDefaultInstance()) {
placement_ =
com.google.cloud.dataproc.v1beta2.ManagedCluster.newBuilder(
(com.google.cloud.dataproc.v1beta2.ManagedCluster) placement_)
.mergeFrom(value)
.buildPartial();
} else {
placement_ = value;
}
onChanged();
} else {
if (placementCase_ == 1) {
managedClusterBuilder_.mergeFrom(value);
}
managedClusterBuilder_.setMessage(value);
}
placementCase_ = 1;
return this;
}
/**
*
*
* <pre>
* Optional. A cluster that is managed by the workflow.
* </pre>
*
* <code>.google.cloud.dataproc.v1beta2.ManagedCluster managed_cluster = 1;</code>
*/
public Builder clearManagedCluster() {
if (managedClusterBuilder_ == null) {
if (placementCase_ == 1) {
placementCase_ = 0;
placement_ = null;
onChanged();
}
} else {
if (placementCase_ == 1) {
placementCase_ = 0;
placement_ = null;
}
managedClusterBuilder_.clear();
}
return this;
}
/**
*
*
* <pre>
* Optional. A cluster that is managed by the workflow.
* </pre>
*
* <code>.google.cloud.dataproc.v1beta2.ManagedCluster managed_cluster = 1;</code>
*/
public com.google.cloud.dataproc.v1beta2.ManagedCluster.Builder getManagedClusterBuilder() {
return getManagedClusterFieldBuilder().getBuilder();
}
/**
*
*
* <pre>
* Optional. A cluster that is managed by the workflow.
* </pre>
*
* <code>.google.cloud.dataproc.v1beta2.ManagedCluster managed_cluster = 1;</code>
*/
public com.google.cloud.dataproc.v1beta2.ManagedClusterOrBuilder getManagedClusterOrBuilder() {
if ((placementCase_ == 1) && (managedClusterBuilder_ != null)) {
return managedClusterBuilder_.getMessageOrBuilder();
} else {
if (placementCase_ == 1) {
return (com.google.cloud.dataproc.v1beta2.ManagedCluster) placement_;
}
return com.google.cloud.dataproc.v1beta2.ManagedCluster.getDefaultInstance();
}
}
/**
*
*
* <pre>
* Optional. A cluster that is managed by the workflow.
* </pre>
*
* <code>.google.cloud.dataproc.v1beta2.ManagedCluster managed_cluster = 1;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataproc.v1beta2.ManagedCluster,
com.google.cloud.dataproc.v1beta2.ManagedCluster.Builder,
com.google.cloud.dataproc.v1beta2.ManagedClusterOrBuilder>
getManagedClusterFieldBuilder() {
if (managedClusterBuilder_ == null) {
if (!(placementCase_ == 1)) {
placement_ = com.google.cloud.dataproc.v1beta2.ManagedCluster.getDefaultInstance();
}
managedClusterBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataproc.v1beta2.ManagedCluster,
com.google.cloud.dataproc.v1beta2.ManagedCluster.Builder,
com.google.cloud.dataproc.v1beta2.ManagedClusterOrBuilder>(
(com.google.cloud.dataproc.v1beta2.ManagedCluster) placement_,
getParentForChildren(),
isClean());
placement_ = null;
}
placementCase_ = 1;
onChanged();
;
return managedClusterBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataproc.v1beta2.ClusterSelector,
com.google.cloud.dataproc.v1beta2.ClusterSelector.Builder,
com.google.cloud.dataproc.v1beta2.ClusterSelectorOrBuilder>
clusterSelectorBuilder_;
/**
*
*
* <pre>
* Optional. A selector that chooses target cluster for jobs based
* on metadata.
* The selector is evaluated at the time each job is submitted.
* </pre>
*
* <code>.google.cloud.dataproc.v1beta2.ClusterSelector cluster_selector = 2;</code>
*/
public boolean hasClusterSelector() {
return placementCase_ == 2;
}
/**
*
*
* <pre>
* Optional. A selector that chooses target cluster for jobs based
* on metadata.
* The selector is evaluated at the time each job is submitted.
* </pre>
*
* <code>.google.cloud.dataproc.v1beta2.ClusterSelector cluster_selector = 2;</code>
*/
public com.google.cloud.dataproc.v1beta2.ClusterSelector getClusterSelector() {
if (clusterSelectorBuilder_ == null) {
if (placementCase_ == 2) {
return (com.google.cloud.dataproc.v1beta2.ClusterSelector) placement_;
}
return com.google.cloud.dataproc.v1beta2.ClusterSelector.getDefaultInstance();
} else {
if (placementCase_ == 2) {
return clusterSelectorBuilder_.getMessage();
}
return com.google.cloud.dataproc.v1beta2.ClusterSelector.getDefaultInstance();
}
}
/**
*
*
* <pre>
* Optional. A selector that chooses target cluster for jobs based
* on metadata.
* The selector is evaluated at the time each job is submitted.
* </pre>
*
* <code>.google.cloud.dataproc.v1beta2.ClusterSelector cluster_selector = 2;</code>
*/
public Builder setClusterSelector(com.google.cloud.dataproc.v1beta2.ClusterSelector value) {
if (clusterSelectorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
placement_ = value;
onChanged();
} else {
clusterSelectorBuilder_.setMessage(value);
}
placementCase_ = 2;
return this;
}
/**
*
*
* <pre>
* Optional. A selector that chooses target cluster for jobs based
* on metadata.
* The selector is evaluated at the time each job is submitted.
* </pre>
*
* <code>.google.cloud.dataproc.v1beta2.ClusterSelector cluster_selector = 2;</code>
*/
public Builder setClusterSelector(
com.google.cloud.dataproc.v1beta2.ClusterSelector.Builder builderForValue) {
if (clusterSelectorBuilder_ == null) {
placement_ = builderForValue.build();
onChanged();
} else {
clusterSelectorBuilder_.setMessage(builderForValue.build());
}
placementCase_ = 2;
return this;
}
/**
*
*
* <pre>
* Optional. A selector that chooses target cluster for jobs based
* on metadata.
* The selector is evaluated at the time each job is submitted.
* </pre>
*
* <code>.google.cloud.dataproc.v1beta2.ClusterSelector cluster_selector = 2;</code>
*/
public Builder mergeClusterSelector(com.google.cloud.dataproc.v1beta2.ClusterSelector value) {
if (clusterSelectorBuilder_ == null) {
if (placementCase_ == 2
&& placement_
!= com.google.cloud.dataproc.v1beta2.ClusterSelector.getDefaultInstance()) {
placement_ =
com.google.cloud.dataproc.v1beta2.ClusterSelector.newBuilder(
(com.google.cloud.dataproc.v1beta2.ClusterSelector) placement_)
.mergeFrom(value)
.buildPartial();
} else {
placement_ = value;
}
onChanged();
} else {
if (placementCase_ == 2) {
clusterSelectorBuilder_.mergeFrom(value);
}
clusterSelectorBuilder_.setMessage(value);
}
placementCase_ = 2;
return this;
}
/**
*
*
* <pre>
* Optional. A selector that chooses target cluster for jobs based
* on metadata.
* The selector is evaluated at the time each job is submitted.
* </pre>
*
* <code>.google.cloud.dataproc.v1beta2.ClusterSelector cluster_selector = 2;</code>
*/
public Builder clearClusterSelector() {
if (clusterSelectorBuilder_ == null) {
if (placementCase_ == 2) {
placementCase_ = 0;
placement_ = null;
onChanged();
}
} else {
if (placementCase_ == 2) {
placementCase_ = 0;
placement_ = null;
}
clusterSelectorBuilder_.clear();
}
return this;
}
/**
*
*
* <pre>
* Optional. A selector that chooses target cluster for jobs based
* on metadata.
* The selector is evaluated at the time each job is submitted.
* </pre>
*
* <code>.google.cloud.dataproc.v1beta2.ClusterSelector cluster_selector = 2;</code>
*/
public com.google.cloud.dataproc.v1beta2.ClusterSelector.Builder getClusterSelectorBuilder() {
return getClusterSelectorFieldBuilder().getBuilder();
}
/**
*
*
* <pre>
* Optional. A selector that chooses target cluster for jobs based
* on metadata.
* The selector is evaluated at the time each job is submitted.
* </pre>
*
* <code>.google.cloud.dataproc.v1beta2.ClusterSelector cluster_selector = 2;</code>
*/
public com.google.cloud.dataproc.v1beta2.ClusterSelectorOrBuilder
getClusterSelectorOrBuilder() {
if ((placementCase_ == 2) && (clusterSelectorBuilder_ != null)) {
return clusterSelectorBuilder_.getMessageOrBuilder();
} else {
if (placementCase_ == 2) {
return (com.google.cloud.dataproc.v1beta2.ClusterSelector) placement_;
}
return com.google.cloud.dataproc.v1beta2.ClusterSelector.getDefaultInstance();
}
}
/**
*
*
* <pre>
* Optional. A selector that chooses target cluster for jobs based
* on metadata.
* The selector is evaluated at the time each job is submitted.
* </pre>
*
* <code>.google.cloud.dataproc.v1beta2.ClusterSelector cluster_selector = 2;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataproc.v1beta2.ClusterSelector,
com.google.cloud.dataproc.v1beta2.ClusterSelector.Builder,
com.google.cloud.dataproc.v1beta2.ClusterSelectorOrBuilder>
getClusterSelectorFieldBuilder() {
if (clusterSelectorBuilder_ == null) {
if (!(placementCase_ == 2)) {
placement_ = com.google.cloud.dataproc.v1beta2.ClusterSelector.getDefaultInstance();
}
clusterSelectorBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataproc.v1beta2.ClusterSelector,
com.google.cloud.dataproc.v1beta2.ClusterSelector.Builder,
com.google.cloud.dataproc.v1beta2.ClusterSelectorOrBuilder>(
(com.google.cloud.dataproc.v1beta2.ClusterSelector) placement_,
getParentForChildren(),
isClean());
placement_ = null;
}
placementCase_ = 2;
onChanged();
;
return clusterSelectorBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement)
private static final com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement();
}
public static com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<WorkflowTemplatePlacement> PARSER =
new com.google.protobuf.AbstractParser<WorkflowTemplatePlacement>() {
@java.lang.Override
public WorkflowTemplatePlacement parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new WorkflowTemplatePlacement(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<WorkflowTemplatePlacement> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<WorkflowTemplatePlacement> getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
|
{
"content_hash": "de58ad1e2bbb451d500f223aa563062a",
"timestamp": "",
"source": "github",
"line_count": 1122,
"max_line_length": 109,
"avg_line_length": 34.09090909090909,
"alnum_prop": 0.6570457516339869,
"repo_name": "vam-google/google-cloud-java",
"id": "926f9f2b63ad728c861a0b54a7b2988a281ae4b1",
"size": "38250",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplatePlacement.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "128"
},
{
"name": "CSS",
"bytes": "23036"
},
{
"name": "Dockerfile",
"bytes": "127"
},
{
"name": "Go",
"bytes": "9641"
},
{
"name": "HTML",
"bytes": "16158"
},
{
"name": "Java",
"bytes": "47356483"
},
{
"name": "JavaScript",
"bytes": "989"
},
{
"name": "Python",
"bytes": "110799"
},
{
"name": "Shell",
"bytes": "9162"
}
],
"symlink_target": ""
}
|
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null
|
{
"content_hash": "21df96d549b71b8a0873707b07d9de4e",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "723e03d5efc2a95df087b1eb329b340d877ff896",
"size": "215",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Plantae/Magnoliophyta/Magnoliopsida/Ericales/Ericaceae/Rhododendron/Rhododendron longesquamatum/Rhododendron longesquamatum glabristylum/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
}
|
package stallone.api.discretization;
import stallone.api.doubles.IDoubleArray;
/**
* @author Frank Noe
*/
public interface IDiscretization
{
/**
* Get the cluster index, the datapoint p belongs to.
*
* @param p is the object to assign to a cluster
*
* @return the cluster index.
*/
public int assign(IDoubleArray p);
/**
* Gets the representative grid point
* @param p
* @return
*/
public IDoubleArray getRepresentative(IDoubleArray p);
/**
* Get the membership assignment of object p.
*
* @param p is the object whose fuzzy membership assignment is retrieved.
*
* @return the membership assignment of p.
*/
public IDoubleArray assignFuzzy(IDoubleArray p);
}
|
{
"content_hash": "a41516e1dc6c6528a77b0d9aabee8a82",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 80,
"avg_line_length": 20.55263157894737,
"alnum_prop": 0.6312419974391805,
"repo_name": "markovmodel/stallone",
"id": "f0da3382c536c9c2d477a126d4ba1370d7e639ba",
"size": "781",
"binary": false,
"copies": "1",
"ref": "refs/heads/devel",
"path": "src/stallone/api/discretization/IDiscretization.java",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "Java",
"bytes": "2472839"
},
{
"name": "Ruby",
"bytes": "978"
}
],
"symlink_target": ""
}
|
package com.codepath.apps.simpletweets.models;
import android.text.format.DateUtils;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Locale;
/**
* Created by Dara on 8/6/16.
*/
// Parse the JSON, Store the Data, Encapsulate state and display logic
public class Tweet {
// Attributes
private String body;
private long id; //unique database id for tweet
private User user;
private String createdAt;
public String getBody() {
return body;
}
public long getId() {
return id;
}
public User getUser() {
return user;
}
public String getCreatedAt() {
return createdAt;
}
public String getTimestamp() {
return getRelativeTimeAgo(getCreatedAt());
}
// Deserialize the JSON
// Tweet.fromJSON (...) => <Tweet>
public static Tweet fromJSON (JSONObject jsonObject) {
Tweet tweet = new Tweet();
try {
// Extract values from JSON
tweet.body = jsonObject.getString("text");
tweet.id = jsonObject.getLong("id");
tweet.createdAt = jsonObject.getString("created_at");
tweet.user = User.fromJSON(jsonObject.getJSONObject("user"));
} catch (JSONException e) {
e.printStackTrace();
}
// Store value
return tweet;
}
public static ArrayList<Tweet> fromJSONArray (JSONArray jsonArray){
ArrayList<Tweet> tweets = new ArrayList<>();
for (int i = 0; i < jsonArray.length(); i++) {
try {
JSONObject tweetJson = jsonArray.getJSONObject(i);
Tweet tweet = Tweet.fromJSON(tweetJson);
if (tweet != null) {
tweets.add(tweet);
}
} catch (JSONException e) {
e.printStackTrace();
continue;
}
}
//return finished list
return tweets;
}
// getRelativeTimeAgo("Mon Apr 01 21:16:23 +0000 2014");
public String getRelativeTimeAgo(String rawJsonDate) {
String twitterFormat = "EEE MMM dd HH:mm:ss ZZZZZ yyyy";
SimpleDateFormat sf = new SimpleDateFormat(twitterFormat, Locale.ENGLISH);
sf.setLenient(true);
String relativeDate = "";
try {
long dateMillis = sf.parse(rawJsonDate).getTime();
relativeDate = DateUtils.getRelativeTimeSpanString(dateMillis,
System.currentTimeMillis(), DateUtils.SECOND_IN_MILLIS).toString();
} catch (java.text.ParseException e) {
e.printStackTrace();
}
return relativeDate;
}
}
|
{
"content_hash": "aa6f08c01d4dc4745e3c065edcea87d1",
"timestamp": "",
"source": "github",
"line_count": 102,
"max_line_length": 87,
"avg_line_length": 27.107843137254903,
"alnum_prop": 0.5934900542495479,
"repo_name": "daraoke/Simple-Tweets",
"id": "39a50825f0da24b757153c9cd945b80812f6b3e6",
"size": "2765",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/src/main/java/com/codepath/apps/simpletweets/models/Tweet.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "41399"
}
],
"symlink_target": ""
}
|
import taktil from 'taktil';
export const daw = {};
taktil.on('init', () => {
daw.transport = host.createTransport();
// ...setup all of your "init time only" bitwig api stuff here
});
|
{
"content_hash": "28f26a7d6027cddbf3cacfd8f97573d4",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 66,
"avg_line_length": 24.375,
"alnum_prop": 0.6307692307692307,
"repo_name": "taktiljs/taktil",
"id": "4f794908334f9f70679d2cade7be0623ae085a07",
"size": "195",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "bin/template/src/daw.js",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "JavaScript",
"bytes": "13547"
},
{
"name": "TypeScript",
"bytes": "67250"
}
],
"symlink_target": ""
}
|
package com.github.jsonj;
import static com.github.jsonj.tools.JsonBuilder.array;
import static com.github.jsonj.tools.JsonBuilder.field;
import static com.github.jsonj.tools.JsonBuilder.fromObject;
import static com.github.jsonj.tools.JsonBuilder.nullValue;
import static com.github.jsonj.tools.JsonBuilder.object;
import static com.github.jsonj.tools.JsonBuilder.primitive;
import static org.assertj.core.api.Assertions.assertThat;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.testng.Assert.assertTrue;
import com.github.jsonj.exceptions.JsonTypeMismatchException;
import com.github.jsonj.tools.JsonBuilder;
import com.jillesvangurp.efficientstring.EfficientString;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import java.util.function.Supplier;
import org.hamcrest.CoreMatchers;
import org.hamcrest.Matchers;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
@Test
public class JsonObjectTest {
@DataProvider
public Object[][] equalPairs() {
return new Object[][] {
{ object().put("a", object().put("b", object().put("c", "d").get()).get()).get(),
object().put("a", object().put("b", object().put("c", "d").get()).get()).get() },
{ object().get(), object().get() },
{ object().put("a", "a").put("b", 42).put("c", true).put("d", array("foo", "bar")).put("e", primitive((String) null)).get(),
object().put("b", 42).put("a", "a").put("c", true).put("d", array("foo", "bar")).put("e", primitive((String) null)).get() } };
}
@Test(dataProvider = "equalPairs")
public void shouldBeEqualToSelf(final JsonObject left, final JsonObject right) {
Assert.assertTrue(left.equals(left)); // reflexive
Assert.assertTrue(right.equals(right)); // reflexive
Assert.assertTrue(left.equals(right)); // symmetric
Assert.assertTrue(right.equals(left)); // symmetric
}
@Test(dataProvider="equalPairs")
public void shouldHaveSameHashCode(final JsonObject left, final JsonObject right) {
Assert.assertEquals(left.hashCode(), right.hashCode());
}
@DataProvider
public Object[][] unEqualPairs() {
return new Object[][] {
{ object().put("a", "b").get(),
object().put("a", "b").put("b", 42).get() },
{ object().put("a", "b").get(), null },
{ object().put("a", "b").get(), primitive(42) },
{ object().put("a", 42).get(), object().put("a", 41).get() } };
}
@DataProvider
public Object[][] objectConstructors() {
return new Supplier[][]{
{() -> new JsonObject()},
{() -> new MapBasedJsonObject()},
{() -> new SimpleIntMapJsonObject()}
};
}
@Test(dataProvider = "unEqualPairs")
public void shouldNotBeEqual(final JsonObject o, final JsonElement e) {
Assert.assertNotSame(o, e);
}
public void shouldExtractValue() {
JsonObject o = object().put("a",
object().put("b", object().put("c", "d").get()).get()).get();
Assert.assertEquals("d", o.get("a", "b", "c").asPrimitive().asString());
assertThat(o.maybeGet("a", "b", "c").isPresent()).isTrue();
assertThat(o.maybeGetString("a", "b", "c").get()).isEqualTo("d");
}
@Test(dataProvider="objectConstructors")
public void shouldCreateArray(Supplier<JsonObject> supplier) {
JsonObject object = supplier.get();
JsonArray createdArray = object.getOrCreateArray("a","b","c");
createdArray.add("1");
Assert.assertTrue(object.getArray("a","b","c").contains("1"), "array should have been added to the object");
}
public void shouldReturnExistingArray() {
JsonObject object = object().put("a", object().put("b", array("foo")).get()).get();
Assert.assertTrue(object.getOrCreateArray("a","b").contains("foo"));
}
@Test(expectedExceptions=JsonTypeMismatchException.class)
public void shouldThrowExceptionOnElementThatIsNotAnArray() {
JsonObject object = object().put("a", object().put("b", 42).get()).get();
object.getOrCreateArray("a","b");
}
@Test(dataProvider="objectConstructors")
public void shouldCreateObject(Supplier<JsonObject> supplier) {
JsonObject object = supplier.get();
JsonObject createdObject = object.getOrCreateObject("a","b","c");
createdObject.put("foo", "bar");
Assert.assertTrue(object.getString("a","b","c", "foo").equals("bar"), "object should have been added");
}
public void shouldReturnExistingObject() {
JsonObject object = object().put("a", object().put("b", object().put("foo","bar").get()).get()).get();
JsonObject orCreateObject = object.getOrCreateObject("a","b");
Assert.assertTrue(orCreateObject.getString("foo").equals("bar"), "return the object with foo=bar");
}
@Test(expectedExceptions=JsonTypeMismatchException.class)
public void shouldThrowExceptionOnElementThatIsNotAnObject() {
JsonObject object = object().put("a", object().put("b", 42).get()).get();
object.getOrCreateObject("a","b");
}
public void shouldDoDeepClone() {
JsonObject o = object().put("1", 42).put("2", "Hello world").get();
JsonObject cloneOfO = o.deepClone();
Assert.assertTrue(o.equals(cloneOfO));
o.remove("1");
Assert.assertFalse(o.equals(cloneOfO));
o.put("1", cloneOfO);
Object clone = o.clone();
Assert.assertTrue(o.equals(clone));
cloneOfO.remove("2");
Assert.assertFalse(o.equals(clone));
}
public void shouldRemoveEmptyElements() {
JsonObject jsonObject = object().put("empty", object().get()).put("empty2", nullValue()).put("empty3", new JsonArray()).get();
jsonObject.removeEmpty();
assertThat("should leave empty objects",jsonObject.getObject("empty"), is(object().get()));
Assert.assertEquals(jsonObject.get("empty2"), null);
Assert.assertEquals(jsonObject.get("empty3"), null);
}
public void shouldReturn2ndEntry() {
assertThat(object().put("1", 1).put("2", 2).put("3", 3).get().get(1).getValue(), is((JsonElement)primitive(2)));
}
public void shouldReturnFirstEntry() {
assertThat(object().put("1", 1).put("2", 2).put("3", 3).get().first().getValue(), is((JsonElement)primitive(1)));
}
public void shouldSupportJavaSerialization() throws IOException, ClassNotFoundException {
JsonObject object = object().put("42",42).get();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ObjectOutputStream oos = new ObjectOutputStream(baos);
oos.writeObject(object);
oos.close();
byte[] bytes = baos.toByteArray();
ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
ObjectInputStream ois = new ObjectInputStream(bais);
Object object2 = ois.readObject();
assertTrue(object.equals(object2));
}
@Test(dataProvider="objectConstructors")
public void shouldPutBuilder(Supplier<JsonObject> supplier) {
JsonBuilder builder = object().put("foo", "bar");
JsonObject object1 = object().put("foobar",builder).get();
JsonObject object2 = supplier.get();
object2.put("foobar", builder);
JsonObject object3 = supplier.get();
object3.put("foobar", fromObject(builder));
assertThat(object1, is(object2));
assertThat(object1, is(object3));
assertThat(object1.toString(), is("{\"foobar\":{\"foo\":\"bar\"}}"));
}
public void shouldHandleJsonNullsOnGet() {
JsonObject o = object().put("x", JsonPrimitive.JSON_NULL).get();
// should return the json null
assertThat((JsonPrimitive)o.get("x"), CoreMatchers.notNullValue());
// these should all return a java null
assertThat(o.getInt("x"), CoreMatchers.nullValue());
assertThat(o.getLong("x"), CoreMatchers.nullValue());
assertThat(o.getFloat("x"), CoreMatchers.nullValue());
assertThat(o.getDouble("x"), CoreMatchers.nullValue());
assertThat(o.getBoolean("x"), CoreMatchers.nullValue());
assertThat(o.getString("x"), CoreMatchers.nullValue());
assertThat(o.getArray("x"), CoreMatchers.nullValue());
assertThat(o.getObject("x"), CoreMatchers.nullValue());
}
public void shouldAllowPutOfNullValue() {
JsonElement x=null;
JsonObject o = object().put("x", x).get();
assertThat(o.getInt("x"), CoreMatchers.nullValue());
}
public void shouldAddFields() {
JsonObject object = object(field("meaningoflife", 42), field("foo", primitive("bar")), field("list",array("stuff")));
assertThat(object.getInt("meaningoflife"), is(42));
assertThat(object.getString("foo"), is("bar"));
assertThat(object.getArray("list").get(0).asString(), is("stuff"));
}
// public void shouldAddFieldsShortNotation() {
// JsonObject object = $(
// _("meaningoflife", 42),
// _("foo", primitive("bar")),
// _("list",$("stuff"))
// );
// assertThat(object.getInt("meaningoflife"), is(42));
// assertThat(object.getString("foo"), is("bar"));
// assertThat(object.getArray("list").get(0).asString(), is("stuff"));
// }
@Test(dataProvider="objectConstructors")
public void shouldSupportConcurrentlyCreatingNewKeys(Supplier<JsonObject> supplier) throws InterruptedException {
// note. this test did never actually trigger the race condition so only limited confidence here.
// this is the best I've come up with so far for actually triggering the conditions this breaks
EfficientString.clear(); // clear to avoid clashes with other tests
int factor = 666;
int startIndex = EfficientString.nextIndex();
ScheduledExecutorService executorService = Executors.newScheduledThreadPool(20);
final JsonObject o = supplier.get();
// this should create some potential for the race condition to trigger since it rapidly creates the same keys
int total = 100000;
for(int i=0;i<total;i++) {
// make sure we are actually creating new Strings with no overlap with the other tests
final String str="shouldSupportConcurrentlyCreatingNewKeys-"+ i/factor;
executorService.execute(() -> {
o.put(str, str); // this should never fail with null key because of the (hopefully) now fixed EfficientString
EfficientString e = EfficientString.fromString(str);
assertThat(EfficientString.fromString(str), is(e));
});
}
executorService.shutdown();
executorService.awaitTermination(2, TimeUnit.SECONDS);
// check greater than so that it won't clash with concurrent executions of other tests in surefire
assertThat(EfficientString.nextIndex()-startIndex, Matchers.greaterThan(total/factor));
}
@Test(dataProvider="objectConstructors")
public void shouldGetPrimitiveDefaultValues(Supplier<JsonObject> supplier) {
JsonObject object = supplier.get();
assertThat(object.get("field", 42), is(42));
assertThat(object.get("field", 42l), is(42l));
assertThat(object.get("field", 42.0), is(42.0));
assertThat(object.get("field", 42.0f), is(42.0f));
assertThat(object.get("field", true), is(true));
}
public void shouldGetPrimitiveNumber() {
JsonObject object = object(field("field",42));
assertThat(object.get("field", 1), is(42));
assertThat(object.get("field", 1l), is(42l));
assertThat(object.get("field", 1.0), is(42.0));
assertThat(object.get("field", 1.0f), is(42.0f));
assertThat(object.get("field", false), is(true));
}
public void shouldConvertFieldToSet() {
JsonObject object = object(field("f", array(1,1,1,1,1)));
assertThat(object.getOrCreateArray("f").size(), is(5));
assertThat(object.getOrCreateSet("f").size(), is(1));
assertThat(object.getArray("f").size(), is(1));
object.getArray("f").add(1);
assertThat(object.getArray("f").size(), is(1));
}
@Test(expectedExceptions=IllegalStateException.class)
public void shouldNotAllowMutations() {
JsonObject object = object(field("f", array(1,1,1,1,1)));
JsonObject clone = object.immutableClone();
assertThat(clone).isEqualTo(object);
clone.put("x", "y");
}
@Test(expectedExceptions=IllegalStateException.class)
public void shouldNotAllowMutationsOnArrayInObject() {
JsonObject object = object(field("f", array(1,1,1,1,1)));
JsonObject clone = object.immutableClone();
assertThat(clone).isEqualTo(object);
clone.getArray("f").add(1);
}
@Test(expectedExceptions=IllegalStateException.class)
public void shouldNotAllowMutationsOnObjectInObject() {
JsonObject object = object(field("f", object(field("1",1))));
JsonObject clone = object.immutableClone();
assertThat(clone).isEqualTo(object);
clone.getObject("f").put("2",2);
}
public void shouldPutJsonDataObject() {
JsonDataObject jdo = new JsonDataObject() {
private static final long serialVersionUID = 1L;
@Override
public JsonObject getJsonObject() {
return object(field("foo","bar"));
}
};
JsonObject o = object(field("x",42));
o.put("jdo", jdo);
assertThat(o.getString("jdo","foo")).isEqualTo("bar");
}
public void shouldConvertSimpleHashMapToJsonObject() {
Map<String,String> simpleMap=new HashMap<>();
simpleMap.put("one", "xxxxx");
simpleMap.put("two", "xxxxx");
simpleMap.put("three", "xxxxx");
JsonObject object = new JsonObject(simpleMap);
assertThat(object.getString("one")).isEqualTo("xxxxx");
}
public void shouldSupportOptional() {
JsonObject o = object(
field("o1", Optional.of(1)),
field("o2", Optional.empty())
);
o.put("o3", Optional.of(array(1,2,3)));
assertThat(o.get("o1").isNumber()).isTrue();
assertThat(o.get("o2").isNull()).isTrue();
assertThat(o.get("o3").isArray()).isTrue();
}
public void shouldFlatten() {
JsonObject obj = object(field("x", object(field("y", array(primitive(1),primitive(2),object(field("foo","bar")))))));
JsonObject flattened = obj.flatten(":");
assertThat(flattened.getInt("x:y:0")).isEqualTo(1);
assertThat(flattened.getInt("x:y:1")).isEqualTo(2);
assertThat(flattened.getString("x:y:2:foo")).isEqualTo("bar");
}
public void shouldHandleBooleanOnLongField() {
JsonObject o = object(field("deleted",1l));
assertThat(o.get("deleted",false)).isTrue();
o.put("deleted", 0);
assertThat(o.get("deleted",false)).isFalse();
o.put("deleted", true);
assertThat(o.get("deleted",false)).isTrue();
}
}
|
{
"content_hash": "81c145bf1da315f0554d4fadd5a5eaf9",
"timestamp": "",
"source": "github",
"line_count": 363,
"max_line_length": 142,
"avg_line_length": 43.05234159779614,
"alnum_prop": 0.631750703864858,
"repo_name": "jillesvangurp/jsonj",
"id": "33b691a6e31d7ff9956d1f7f83e02e99b5c5d6ae",
"size": "16749",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/test/java/com/github/jsonj/JsonObjectTest.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "321951"
},
{
"name": "Kotlin",
"bytes": "14418"
}
],
"symlink_target": ""
}
|
layout: post
title: Some project notes(3)
category: [tech]
tags: [Django]
---
## Transaction in Django
### atomic
{% highlight python %}
@atomic
def transaction_func():
pass
{% endhighlight %}
We know that a decorator will return a wrapper function/class of the decorated function. In Django, the an instance of Atomic class is returned. Atomic is a subclass of ContextDecorator, it is callable because ContextDecorator has a `__call__` function.
In ContextDecorator's `__call__`, we can see something like:
{% highlight python %}
@wraps(func, assigned=available_attrs(func))
def inner(*args, **kwargs):
with self:
return func(*args, **kwargs)
return inner
{% endhighlight %}
So, the wrapped function will be put into a context `self`. In its context control function,
`__enter__` will open a new transaction if not already in one or create a new savepoint if otherwise. `__exit__` is rather complex. Generally, if atomic is wrapped in another atomic, then the inner one will be treated as a savepoint if not be told otherwise. when the inner one exits, Django will try to commit the inner savepoint, and rollback the savepoint and set `needs_rollback` flag if error occurs. If everything goes well, then in the outermost atomic exits, Django will commit the transaction.
### database connections
In Django settings, we wrote DATABASES like:
{% highlight python %}
DATABASES = {
'default': {
'ENGINE': 'Django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': '', # Or path to database file if using sqlite3.
# The following settings are not used with sqlite3:
'USER': '',
'PASSWORD': '',
'HOST': '', # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
'PORT': '', # Set to empty string for default.
}
}
{% endhighlight %}
So how this info is used? Django has a class `ConnectionHandler`. This class holds the `DATABSES` in its `_database` dict. Also, it has a `_connection` dict, which stores the connections to databases. For example, for our DATABASES above, `_connection` will have a `default` attribute, with its value the connection instance which talks to the database. All the db manipulations, like transaction, rollback etc. will be carried out through this connection instance.
## Behind model class of Django
{% highlight python %}
class Question(models.Model):
question_text = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
{% endhighlight %}
When we use the above code to create a model in Django, we get a class `Question`. If we try to invoke `Question.pub_date`, we get an attribute error saying that pub_date isn't there.
Instead, in `Question._meta.fields` we find these fields. So, models.Model does more than it appears to do.
In the definition of models.Model, I find it has a base class `six.with_metaclass(ModelBase)`. Here its base class is not the simple ModelBase, `with_metaclass` made a dummy class like this:
{% highlight python %}
def with_metaclass(meta, *bases):
class metaclass(meta):
def __new__(cls, name, this_bases, d):
return meta(name, bases, d)
return type.__new__(metaclass, 'temporary_class', (), {})
{% endhighlight %}
This is a python2/3 compatible way of setting metaclass.
About metaclass, there's an excellent article in [stackoverflow](http://stackoverflow.com/questions/100003/what-is-a-metaclass-in-python).
So how this with_metaclass works? \\
When we write `six.with_metaclass(ModelBase)`, we create a class whose __class__ is `metaclass`. Now `Model` will have a base class whose __class__ will be `metaclass`. According to [python doc](https://docs.python.org/2/reference/datamodel.html#__metaclass__):
> if there is at least one base class, its metaclass is used
> (this looks for a __class__ attribute first and if not found, uses its type)
`Model`'s metaclass will be `metaclass`, so will all its sub classes. As a result, when `Question` is defined, `__new__` of `metaclass` will be called, and it returns an instance of `ModelBase`, this instance becomes the content of `Question` class we saw.
How does `ModelBase` create the content of `Question`? \\
First thing I can see is that, it attach `_meta` object to model class. _meta is an object of class `Options`. This `Options` holds many information about model, including primary key, app_label, fields, etc. Attributes in `Meta` Class of Model will be stored here. This can answer our problem of where has the fields gone? They were added to _meta in the `__new__` of `ModelBase`. Interestingly, fields is actually a method in `Options`, when called return a list on the fly.
Second, install `Manager` of model. This is VERY complex, the behavior depends heavily on if the model is abstract, proxy or its parents. Anyway, at least `ensure_default_manager` will be called, so that we can call `Question.objects`.
Third, add `DoesNotExist` and `MultipleObjectsReturned` exception for model.
## The unusual part of Manager
We often use something like `Question.objects.filter()`, actually this method comes from class `QuerySet`. The definition of `Manager` is:
{% highlight python %}
class Manager(BaseManager.from_queryset(QuerySet)):
pass
{% endhighlight %}
`from_queryset` is a classmethod, it will 'copy' necessary methods from QuerySet into BaseManager. This 'copy' is a delegation, when we call `filter` on `Manager`, what happens is that the Manager instance will call the same function on the `queryset` obtained by calling `get_queryset`. That's why when customizing Managers, we often override the `get_queryset` method, so that any following query functions will all carried out based on the customized `queryset`.
## Fields in Django ORM
## How query is generated in Django ORM
|
{
"content_hash": "cde629140bf311e62fcf9a3720dc2761",
"timestamp": "",
"source": "github",
"line_count": 91,
"max_line_length": 502,
"avg_line_length": 64.95604395604396,
"alnum_prop": 0.7267805785823042,
"repo_name": "wgundamj44/wgundamj44.github.io__bk",
"id": "fd631435c3c785e26daad99b4d9e92ccbc37642b",
"size": "5915",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "_posts/2015-09-26-project-note-3.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "49251"
},
{
"name": "HTML",
"bytes": "23622"
},
{
"name": "JavaScript",
"bytes": "67911"
},
{
"name": "Ruby",
"bytes": "2774"
}
],
"symlink_target": ""
}
|
"""Create a snapshot of an iSCSI volume."""
# :license: MIT, see LICENSE for more details.
import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import helpers
import click
@click.command()
@click.argument('identifier')
@click.option('--notes', help="An optional note for the snapshot")
@environment.pass_env
def cli(env, identifier, notes):
"""Create a snapshot of an iSCSI volume."""
iscsi_mgr = SoftLayer.ISCSIManager(env.client)
iscsi_id = helpers.resolve_id(iscsi_mgr.resolve_ids, identifier, 'iSCSI')
iscsi_mgr.create_snapshot(iscsi_id, notes)
|
{
"content_hash": "77815e54df4e4029b4439e5afb3932b2",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 77,
"avg_line_length": 28.19047619047619,
"alnum_prop": 0.7347972972972973,
"repo_name": "briancline/softlayer-python",
"id": "dd23d304c5d3aaff6babfe1c5bffb544445c7f27",
"size": "592",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "SoftLayer/CLI/snapshot/create.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "DIGITAL Command Language",
"bytes": "854"
},
{
"name": "Python",
"bytes": "741890"
}
],
"symlink_target": ""
}
|
/*
* Author: doe300
*
* See the file "LICENSE" for the full license governing this code.
*/
#ifndef VC4C_REGISTER_FIXES_H
#define VC4C_REGISTER_FIXES_H
#include "../helper.h"
#include <functional>
#include <string>
#include <vector>
namespace vc4c
{
struct Configuration;
class Method;
namespace qpu_asm
{
class GraphColoring;
enum class FixupResult
{
// Colored graph is valid, register fix-up can be aborted
ALL_FIXED,
// Some fixes were applied and the colored graph needs to be regenerated before the next step is run
FIXES_APPLIED_RECREATE_GRAPH,
// Only fixes that do not modify the colored graph have been applied
FIXES_APPLIED_KEEP_GRAPH,
// No fixes were applied, colored graph was not changed, next step should be run
NOTHING_FIXED
};
struct RegisterFixupStep
{
std::string name;
FunctionPointer<FixupResult(Method&, const Configuration&, GraphColoring&)> step;
FixupResult operator()(Method& method, const Configuration& config, GraphColoring& coloredGraph) const
{
return step(method, config, coloredGraph);
}
};
/**
* The different steps to run for trying to fix register association errors.
*
* The general flow is like this:
* 1. color local graph and check for errors
* 1.1 if there are no errors, end
* 2. run the current fix-up step
* 3. if necessary, completely recreate the colored graph
* 4. increment current fix-up step and go back to 1.
*/
extern const std::vector<RegisterFixupStep> FIXUP_STEPS;
/**
* Reduces register pressure by grouping pointer parameter into the elements of vector locals.
*
* NOTE: Since this modification increases the number of instructions noticeably, certain conditions are checked
* (e.g. parameters not accessed too often or on loops), which can lead to some pointer parameters not being
* grouped!
*
* Example:
* %in = reg uniform
* %out = reg uniform
* [...]
* %in_addr = %in
* [...]
* %out_addr = %out
*
* is converted to:
* - = xor reg elem_num, 0 (setf)
* %param_group = reg uniform (ifz)
* - = xor reg elem_num, 1 (setf)
* %param_group reg uniform (ifz)
* [...]
* %in_addr = %param_group >> 0
* [...]
* %out_addr = %param_group >> 1
*
* Returns whether at least one group of parameters was created and therefore instructions and parameter
* livenesses changed.
*/
FixupResult groupParameters(Method& method, const Configuration& config, GraphColoring& coloredGraph);
/**
* Reduces register pressure by grouping scalar and pointer locals into the elements of vector locals.
*
* NOTE: This modification increases the number of instructions drastically!
*
* Example:
* %in = reg uniform
* %out = reg uniform
* [...]
* %in_addr = %in
* [...]
* %out_addr = %out
*
* is converted to:
* - = xor reg elem_num, 0 (setf)
* %param_group = reg uniform (ifz)
* - = xor reg elem_num, 1 (setf)
* %param_group reg uniform (ifz)
* [...]
* %in_addr = %param_group >> 0
* [...]
* %out_addr = %param_group >> 1
*
* Returns whether at least one group of scalar locals was created and therefore instructions and local
* livenesses changed.
*/
FixupResult groupScalarLocals(
Method& method, const Configuration& config, const GraphColoring& coloredGraph, bool runConservative);
/**
* Reduces register pressure by moving constant calculations closer to their usages.
*
* This fix-up may partially undo some optimizations, e.g. by moving constant loads back to their original
* position inside a loop they were hoisted from.
*
* NOTE: Since delays have already been handled at this point, some instructions will be replaced by a NOP
* instead of being completely removed when being moved away!
*
* Example:
* %a = ldi 42
* [...]
* %b = %a xor 15
*
* is converted to:
* [...]
* %a = ldi 42
* %b = %a xor 15
*/
FixupResult rematerializeConstants(Method& method, const Configuration& config, GraphColoring& coloredGraph);
/**
* Reduces register pressure by spilling long-living and rarely used locals into VPM cache rows.
*
* NOTE: This fix-up could greatly reduce performance, since it introduces VPM accesses.
*
*/
FixupResult spillLocals(Method& method, const Configuration& config, GraphColoring& coloredGraph);
} // namespace qpu_asm
} // namespace vc4c
#endif /* VC4C_REGISTER_FIXES_H */
|
{
"content_hash": "0202f50bfb895eba257e5c8c7b9603ba",
"timestamp": "",
"source": "github",
"line_count": 151,
"max_line_length": 120,
"avg_line_length": 35.152317880794705,
"alnum_prop": 0.5666917859834213,
"repo_name": "doe300/VC4C",
"id": "4949191321989b9bcb7b44897d2f2ace7b6b6ebd",
"size": "5308",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/asm/RegisterFixes.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "19656565"
},
{
"name": "C++",
"bytes": "5809799"
},
{
"name": "CMake",
"bytes": "54143"
},
{
"name": "Cool",
"bytes": "8941"
},
{
"name": "LLVM",
"bytes": "59434"
},
{
"name": "Shell",
"bytes": "5457"
}
],
"symlink_target": ""
}
|
/*************************************************************************/
/* menu_button.cpp */
/*************************************************************************/
/* This file is part of: */
/* GODOT ENGINE */
/* http://www.godotengine.org */
/*************************************************************************/
/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur. */
/* */
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "menu_button.h"
#include "os/keyboard.h"
#include "scene/main/viewport.h"
void MenuButton::_unhandled_key_input(InputEvent p_event) {
if (p_event.is_pressed() && !p_event.is_echo() && (p_event.type==InputEvent::KEY || p_event.type==InputEvent::ACTION || p_event.type==InputEvent::JOYSTICK_BUTTON)) {
if (!get_parent() || !is_visible() || is_disabled())
return;
if (get_viewport()->get_modal_stack_top() && !get_viewport()->get_modal_stack_top()->is_a_parent_of(this))
return; //ignore because of modal window
if (popup->activate_item_by_event(p_event))
accept_event();
}
}
void MenuButton::pressed() {
emit_signal("about_to_show");
Size2 size=get_size();
Point2 gp = get_global_pos();
popup->set_global_pos( gp + Size2( 0, size.height ) );
popup->set_size( Size2( size.width, 0) );
popup->set_parent_rect( Rect2(Point2(gp-popup->get_global_pos()),get_size()));
popup->popup();
popup->call_deferred("grab_click_focus");
popup->set_invalidate_click_until_motion();
}
void MenuButton::_input_event(InputEvent p_event) {
/*if (p_event.type==InputEvent::MOUSE_BUTTON && p_event.mouse_button.button_index==BUTTON_LEFT) {
clicked=p_event.mouse_button.pressed;
}
if (clicked && p_event.type==InputEvent::MOUSE_MOTION && popup->is_visible()) {
Point2 gt = Point2(p_event.mouse_motion.x,p_event.mouse_motion.y);
gt = get_global_transform().xform(gt);
Point2 lt = popup->get_transform().affine_inverse().xform(gt);
if (popup->has_point(lt)) {
//print_line("HAS POINT!!!");
popup->call_deferred("grab_click_focus");
}
}*/
BaseButton::_input_event(p_event);
}
PopupMenu *MenuButton::get_popup() {
return popup;
}
Array MenuButton::_get_items() const {
return popup->get("items");
}
void MenuButton::_set_items(const Array& p_items) {
popup->set("items",p_items);
}
void MenuButton::_bind_methods() {
ObjectTypeDB::bind_method(_MD("get_popup:PopupMenu"),&MenuButton::get_popup);
ObjectTypeDB::bind_method(_MD("_unhandled_key_input"),&MenuButton::_unhandled_key_input);
ObjectTypeDB::bind_method(_MD("_set_items"),&MenuButton::_set_items);
ObjectTypeDB::bind_method(_MD("_get_items"),&MenuButton::_get_items);
ADD_PROPERTY( PropertyInfo(Variant::ARRAY,"items",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR), _SCS("_set_items"),_SCS("_get_items") );
ADD_SIGNAL( MethodInfo("about_to_show") );
}
MenuButton::MenuButton() {
set_flat(true);
set_enabled_focus_mode(FOCUS_NONE);
popup = memnew( PopupMenu );
popup->hide();
add_child(popup);
popup->set_as_toplevel(true);
set_process_unhandled_key_input(true);
set_click_on_press(true);
}
MenuButton::~MenuButton() {
}
|
{
"content_hash": "09e158e5be5c42cf03241d8b29d36d6f",
"timestamp": "",
"source": "github",
"line_count": 130,
"max_line_length": 166,
"avg_line_length": 36.8,
"alnum_prop": 0.5698160535117057,
"repo_name": "rollenrolm/godot",
"id": "725f1ddf1761599f4f2a202c6026f5ade076defd",
"size": "4784",
"binary": false,
"copies": "11",
"ref": "refs/heads/master",
"path": "scene/gui/menu_button.cpp",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "471707"
},
{
"name": "C++",
"bytes": "11879226"
},
{
"name": "Java",
"bytes": "493485"
},
{
"name": "Objective-C",
"bytes": "28194"
},
{
"name": "Objective-C++",
"bytes": "143453"
},
{
"name": "Python",
"bytes": "129866"
},
{
"name": "Shell",
"bytes": "266"
}
],
"symlink_target": ""
}
|
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists purely as an
// implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
#ifndef QXMLSCHEMA_P_H
#define QXMLSCHEMA_P_H
#include "qabstractmessagehandler.h"
#include "qabstracturiresolver.h"
#include "qautoptr_p.h"
#include "qcoloringmessagehandler_p.h"
#include "qreferencecountedvalue_p.h"
#include "qxsdschemacontext_p.h"
#include "qxsdschemaparser_p.h"
#include "qxsdschemaparsercontext_p.h"
#include <QtCore/QSharedData>
#include <QtNetwork/QNetworkAccessManager>
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE
class QXmlSchemaPrivate : public QSharedData
{
public:
QXmlSchemaPrivate(const QXmlNamePool &namePool);
QXmlSchemaPrivate(const QPatternist::XsdSchemaContext::Ptr &schemaContext);
QXmlSchemaPrivate(const QXmlSchemaPrivate &other);
void load(const QUrl &source, const QString &targetNamespace);
void load(QIODevice *source, const QUrl &documentUri, const QString &targetNamespace);
void load(const QByteArray &data, const QUrl &documentUri, const QString &targetNamespace);
bool isValid() const;
QXmlNamePool namePool() const;
QUrl documentUri() const;
void setMessageHandler(QAbstractMessageHandler *handler);
QAbstractMessageHandler *messageHandler() const;
void setUriResolver(const QAbstractUriResolver *resolver);
const QAbstractUriResolver *uriResolver() const;
void setNetworkAccessManager(QNetworkAccessManager *networkmanager);
QNetworkAccessManager *networkAccessManager() const;
QXmlNamePool m_namePool;
QAbstractMessageHandler* m_userMessageHandler;
const QAbstractUriResolver* m_uriResolver;
QNetworkAccessManager* m_userNetworkAccessManager;
QPatternist::ReferenceCountedValue<QAbstractMessageHandler>::Ptr m_messageHandler;
QPatternist::ReferenceCountedValue<QNetworkAccessManager>::Ptr m_networkAccessManager;
QPatternist::XsdSchemaContext::Ptr m_schemaContext;
QPatternist::XsdSchemaParserContext::Ptr m_schemaParserContext;
bool m_schemaIsValid;
QUrl m_documentUri;
};
QT_END_NAMESPACE
QT_END_HEADER
#endif
|
{
"content_hash": "4db72260c759369f2ced54f082472492",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 100,
"avg_line_length": 38.02857142857143,
"alnum_prop": 0.6397445529676935,
"repo_name": "stephaneAG/PengPod700",
"id": "8bce046a036084a69c2b05a37f6947312e7a078c",
"size": "4636",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "QtEsrc/backup_qt/qt-everywhere-opensource-src-4.8.5/src/xmlpatterns/api/qxmlschema_p.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Assembly",
"bytes": "167426"
},
{
"name": "Batchfile",
"bytes": "25368"
},
{
"name": "C",
"bytes": "3755463"
},
{
"name": "C#",
"bytes": "9282"
},
{
"name": "C++",
"bytes": "177871700"
},
{
"name": "CSS",
"bytes": "600936"
},
{
"name": "GAP",
"bytes": "758872"
},
{
"name": "GLSL",
"bytes": "32226"
},
{
"name": "Groff",
"bytes": "106542"
},
{
"name": "HTML",
"bytes": "273585110"
},
{
"name": "IDL",
"bytes": "1194"
},
{
"name": "JavaScript",
"bytes": "435912"
},
{
"name": "Makefile",
"bytes": "289373"
},
{
"name": "Objective-C",
"bytes": "1898658"
},
{
"name": "Objective-C++",
"bytes": "3222428"
},
{
"name": "PHP",
"bytes": "6074"
},
{
"name": "Perl",
"bytes": "291672"
},
{
"name": "Prolog",
"bytes": "102468"
},
{
"name": "Python",
"bytes": "22546"
},
{
"name": "QML",
"bytes": "3580408"
},
{
"name": "QMake",
"bytes": "2191574"
},
{
"name": "Scilab",
"bytes": "2390"
},
{
"name": "Shell",
"bytes": "116533"
},
{
"name": "TypeScript",
"bytes": "42452"
},
{
"name": "Visual Basic",
"bytes": "8370"
},
{
"name": "XQuery",
"bytes": "25094"
},
{
"name": "XSLT",
"bytes": "252382"
}
],
"symlink_target": ""
}
|
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("T11.7.ArithmExpression")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("T11.7.ArithmExpression")]
[assembly: AssemblyCopyright("Copyright © 2013")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("16aeeaf1-1ba2-463a-9786-2706a45365b0")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
|
{
"content_hash": "158492881615440c7626140aa2a3f425",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 84,
"avg_line_length": 39.361111111111114,
"alnum_prop": 0.7459421312632322,
"repo_name": "studware/Ange-Git",
"id": "711e8bad6f96415c90210b74554f6ca0b096526e",
"size": "1420",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "MyTelerikAcademyHomeWorks/CSharp1/HW11.ClassesAndObjects/T11.7.ArithmExpression/Properties/AssemblyInfo.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "1833657"
},
{
"name": "CSS",
"bytes": "52022"
},
{
"name": "HTML",
"bytes": "48849"
},
{
"name": "JavaScript",
"bytes": "6247"
},
{
"name": "PLSQL",
"bytes": "6610"
},
{
"name": "PowerShell",
"bytes": "332"
},
{
"name": "XSLT",
"bytes": "2371"
}
],
"symlink_target": ""
}
|
package net.sanukin.unilocalnotification;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Build;
import android.support.v4.app.NotificationCompat;
/**
* Created by sanukiwataru on 2017/09/17.
*/
public class NotificationReceiver extends BroadcastReceiver {
/**
* Receiving notification event
* @param context current context
* @param intent received intent
*/
@Override
public void onReceive(Context context, Intent intent) {
// get notification info
String message = intent.getStringExtra("MESSAGE");
String title = intent.getStringExtra("TITLE");
int requestCode = intent.getIntExtra("REQUEST_CODE", 0);
// create intent for taping notification
final PackageManager pm=context.getPackageManager();
Intent intentCustom = pm.getLaunchIntentForPackage(context.getPackageName());
PendingIntent contentIntent = PendingIntent.getActivity(context, 0, intentCustom,
PendingIntent.FLAG_UPDATE_CURRENT);
// create icon bitmap
ApplicationInfo applicationInfo = null;
try {
applicationInfo = pm.getApplicationInfo(context.getPackageName(),PackageManager.GET_META_DATA);
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
return;
}
final int appIconResId=applicationInfo.icon;
Bitmap largeIcon = BitmapFactory.decodeResource(context.getResources(), appIconResId);
NotificationManager manager = (NotificationManager) context.getSystemService(Service.NOTIFICATION_SERVICE);
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
{
String channelId = "default";
NotificationChannel channel = new NotificationChannel(channelId, "Default", NotificationManager.IMPORTANCE_DEFAULT);
channel.setDescription("Default Notification");
channel.enableVibration(true);
channel.canShowBadge();
channel.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
channel.setShowBadge(true);
manager.createNotificationChannel(channel);
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_ONE_SHOT);
Notification notification = new Notification.Builder(context, channelId)
.setContentTitle(title)
.setContentText(message)
.setAutoCancel(true)
.setContentIntent(pendingIntent)
.setSmallIcon(context.getResources().getIdentifier("notification_icon", "drawable", context.getPackageName()))
.setLargeIcon(largeIcon)
.build();
manager.notify(requestCode, notification);
} else {
// create notification builder
NotificationCompat.Builder builder = new NotificationCompat.Builder(context);
builder.setContentIntent(contentIntent);
// set notification info
builder.setTicker("");
builder.setContentTitle(title);
builder.setContentText(message);
// set icon
builder.setLargeIcon(largeIcon);
builder.setSmallIcon(context.getResources().getIdentifier("notification_icon", "drawable", context.getPackageName()));
// fire now
builder.setWhen(System.currentTimeMillis());
// set device notification settings
builder.setDefaults(Notification.DEFAULT_SOUND
| Notification.DEFAULT_VIBRATE
| Notification.DEFAULT_LIGHTS);
// tap to cancel
builder.setAutoCancel(true);
// fire notification
manager.notify(requestCode, builder.build());
}
}
}
|
{
"content_hash": "2e3f03505b380943b9cb24a6feb60ea6",
"timestamp": "",
"source": "github",
"line_count": 111,
"max_line_length": 130,
"avg_line_length": 38.351351351351354,
"alnum_prop": 0.6659619450317125,
"repo_name": "sanukin39/UniLocalNotification",
"id": "be41b11f052fa7fa1204428a556299fc131355b4",
"size": "4257",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "AndroidLibraryProject/unilocalnotification/src/main/java/net/sanukin/unilocalnotification/NotificationReceiver.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "8132"
},
{
"name": "Java",
"bytes": "10400"
},
{
"name": "Objective-C++",
"bytes": "949"
}
],
"symlink_target": ""
}
|
require 'json'
output = JSON.parse(`terraform output -json`)
bastion_public_name = output["bastion_public_name"]["value"]
single_instances = output
.map do |name, value|
if name =~ /aws_(.*)_private_name$/
{ symbolic_name: $1, private_name: value["value"] }
end
end
.compact
multiple_instances = output
.map do |name, value|
if name =~ /aws_(.*)_private_names$/
value["value"].each_with_index.map do |name, index|
{ symbolic_name: "#{$1}-#{index}", private_name: name }
end
end
end
.compact
.flatten
instances = single_instances + multiple_instances
key_file = output["key_file"]["value"]
tunnel_string = <<-eos
# sumaform configuration start
Host bastion
HostName #{bastion_public_name}
StrictHostKeyChecking no
User ec2-user
IdentityFile #{key_file}
ServerAliveInterval 120
eos
instances.each do |instance|
tunnel_string += <<-eos
Host #{instance[:symbolic_name]}
HostName #{instance[:private_name]}
StrictHostKeyChecking no
User ec2-user
IdentityFile #{key_file}
ProxyCommand ssh ec2-user@bastion -W %h:%p
ServerAliveInterval 120
eos
if instance[:symbolic_name] =~ /suma/
tunnel_string += " LocalForward 8043 127.0.0.1:443\n"
end
if instance[:symbolic_name] =~ /grafana/
tunnel_string += " LocalForward 8080 127.0.0.1:8080\n"
tunnel_string += " LocalForward 9090 127.0.0.1:9090\n"
end
end
tunnel_string += "# sumaform configuration end"
config_path = "#{Dir.home}/.ssh/config"
config_string = File.read(config_path)
if config_string =~ /(.*)^# sumaform configuration start$(.*)^# sumaform configuration end$(.*)/m
File.write(config_path, "#{$1}#{tunnel_string}#{$3}")
else
File.write(config_path, "#{config_string}\n#{tunnel_string}\n")
end
|
{
"content_hash": "6e480462d70e2b7e86bf78aa81e981f5",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 97,
"avg_line_length": 26.029411764705884,
"alnum_prop": 0.6694915254237288,
"repo_name": "moio/sumaform",
"id": "c0215be0a37af4278c44e8933e6d78a1d2ccf555",
"size": "1809",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "configure_aws_tunnels.rb",
"mode": "33261",
"license": "bsd-3-clause",
"language": [
{
"name": "Groovy",
"bytes": "1059"
},
{
"name": "HCL",
"bytes": "210423"
},
{
"name": "Python",
"bytes": "16263"
},
{
"name": "Ruby",
"bytes": "1809"
},
{
"name": "SaltStack",
"bytes": "161886"
},
{
"name": "Shell",
"bytes": "27732"
},
{
"name": "XSLT",
"bytes": "5231"
}
],
"symlink_target": ""
}
|
import { Colors } from "../resources/colors";
export class ButtonPage {
protected colors = ["default", ...Colors.base];
protected crumbs = [
{ href: "/docs", icon: "mdi mdi-home", label: "Home" },
{ href: "/docs/form", label: "Forms" },
{ href: "/docs/inputs", label: "Inputs" },
{ href: "/docs/lists", label: "Lists" },
{ href: "/docs/button", label: "Buttons" },
{ href: "/docs/tags", label: "Tags" },
{ label: "Breadcrumbs" }
];
protected breadcrumbHtml = `<template>
<ui-breadcrumbs items="[...]">...</ui-breadcrumbs>
</template>`;
protected breadcrumbAttrs = {
title: "ui-breadcrumbs",
attrs: [
{
name: "items",
values: "[]",
description: "Breadcrumb items"
}
]
};
}
|
{
"content_hash": "60452a3befab2de2e61bfeb5ce654a9e",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 59,
"avg_line_length": 24.741935483870968,
"alnum_prop": 0.5488917861799217,
"repo_name": "adarshpastakia/aurelia-ui-framework",
"id": "34f20df8fbef74b0f4e49eca4f072dc174b03904",
"size": "869",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop",
"path": "examples/buttons/breadcrumbs.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "2208"
},
{
"name": "HTML",
"bytes": "37523"
},
{
"name": "JavaScript",
"bytes": "84035"
},
{
"name": "TypeScript",
"bytes": "295874"
}
],
"symlink_target": ""
}
|
Component to render a small pop-up "tip" once a trigger element is clicked. Clicking the target again should toggle the popover. Clicking outside of the popover will typically close it.
## Usage
Similar to `<Dropdown>`, the `<Popover>` will render its children inside an overlay and the `renderTrigger`-prop renders the button that triggers the overlay.
```js
import { Popover } from '@folio/stripes/components';
<Popover
renderTrigger={({ open, ref, toggle, }) => (
<Button
onClick={toggle}
ref={ref}
>
{open ? 'Close' : 'Open'}
</Button>
)}
>
Lorem ipsum delor sit amet...
</Popover>
```
## Controlled
By default, the `<Popover>` handles its open state internally. If you need to control the `<Popover>` externally, you can pass an `open`-prop which controls the visibility of the overlay and an `onToggle`-prop that handles flipping the open state.
```js
const [open, setOpen] = useState(fale);
<Popover
open={open}
onToggle={() => setOpen(!open)}
renderTrigger={({ open, ref, toggle, }) => (
<Button
onClick={toggle}
ref={ref}
>
{open ? 'Close' : 'Open'}
</Button>
)}
>
Lorem ipsum delor sit amet...
</Popover>
```
## Props
Name | Type | Description | Default | Required
--- | --- | --- | --- | ---
anchorRef | func, object | Pass a ref to an alternative anchor element. The anchor is the element that the popover attaches to. The `<Popover>` will automatically generate a ref that will be passed down to the trigger element via. the `renderTrigger`-prop. The default ref will be replaced by the ref passed to the `anchorRef`-prop. | |
children | func, node | Renders the contents of the popover overlay. Passing a function will enable accessing the same render-props that is passed to the `renderTrigger`-function. This is useful for e.g. passing down the `toggle`-function to a "close"-button inside the popover overlay. | |
className | string | Applies a custom class name for the popover overlay. | |
modifiers | object | Pass modifiers for the internal `<Popper>`-component. See the `<Popper>`-documentation for more information. | |
noPadding | bool | Removes the default padding on the popover overlay. | false |
onToggle | func | A callback function for toggling the popover's open state. This is only relevant if you are manually controlling the open state externally. | |
offset | number | Sets the offset (px) from the popover overlay to the anchor/trigger element | 5 |
open | bool | Controls the popover open state. This is only relevant if you need to be able to close the popover externally. Remember to also pass an `onToggle`-callback that toggles the external open state. | |
placement | string | Determines the placement of the popover overlay relative to the trigger button/anchor element. See the available placements in the basic usage example/story. | bottom |
popperProps | object | Pass additional props to the internal `<Popper>`-component. See the documentation for the `<Popper>`-component to learn more. | |
renderTrigger | func | Renders the trigger button/anchor element. The function will receive an object that contains a `ref`, an open state and a `toggle`-function. It's required to pass the ref down to either the toggle button or some anchor element. | |
## Legacy Popover
The previous `<Popover>` component API is still working for older implementations. However, it is recommended that you update your implementations to use the new component API as support for the deprecated component API will be removed in a future release.
You can see the documentation for the legacy popover below.
Name | type | description | default | required
--- | --- | --- | --- | ---
position | string | Position of pop-up relative to the target. Can be `top`, `bottom`, `start`, or `end` | `bottom` |
alignment | string | Position along the cross-axis. Can be centered, or align with an edge of the target. Can be set to `center`, `start`, or `end` | `center` |
children | arrayOf(node) | Requires two children one with `data-role="target"` and another with `data-role="popover"`. Ideally, the target child is an interactive element - a `<Button>`, for instance. The popover can be any dom element. | | ✔
noPadding | bool | Removes padding from popover content if set to true | `false` |
offset | number | Distance of the popover toward or away from the target. | 0 |
activeClass | string | Adds the activeClass to the wrapper once the Popover is open | |
## Positioning
Setting `position` of "top" and `alignment` of "end" will render the popover above the trigger, aligned with the 'end' of the target's bounding box.
```
<Popover position="top" alignment="end">
<Button data-role="target">Top Popover3</Button>
<p data-role="popover">Lorem ipsum delor sit amet...</p>
</Popover>
```
|
{
"content_hash": "73fed6357f6e9d2c77e583d5420569db",
"timestamp": "",
"source": "github",
"line_count": 82,
"max_line_length": 336,
"avg_line_length": 58.65853658536585,
"alnum_prop": 0.7205821205821206,
"repo_name": "folio-org/stripes-components",
"id": "723359a4eac322651ac374096aac9c0df5bba6dc",
"size": "4820",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lib/Popover/readme.md",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "105251"
},
{
"name": "HTML",
"bytes": "287"
},
{
"name": "JavaScript",
"bytes": "1302811"
}
],
"symlink_target": ""
}
|
package io.github.mayunfei.wbesocket.live;
import io.github.mayunfei.wbesocket.message.ChangePPTMessage;
import io.github.mayunfei.wbesocket.message.DrawClearMessage;
import io.github.mayunfei.wbesocket.message.DrawEllipseMessage;
import io.github.mayunfei.wbesocket.message.DrawEraseMessage;
import io.github.mayunfei.wbesocket.message.DrawLineMessage;
import io.github.mayunfei.wbesocket.message.DrawRectMessage;
import io.github.mayunfei.wbesocket.message.DrawTextMessage;
/**
* Created by mayunfei on 17-9-18.
*/
public interface IWhiteBoard {
/**
* 画方
*/
void drawLine(DrawLineMessage message);
/**
* 画圆
*/
void drawEllipse(DrawEllipseMessage message);
/**
* 清空全部
*/
void drawClearAll(DrawClearMessage message);
/**
* 画矩形
*/
void drawRect(DrawRectMessage message);
/**
* 橡皮擦
*/
void drawErase(DrawEraseMessage message);
/**
* 写字
*/
void drawText(DrawTextMessage message);
/**
* 切换ppt
* @param message
*/
void changePPPT(ChangePPTMessage message);
}
|
{
"content_hash": "6978268964c7ee904842303ba900dc1f",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 63,
"avg_line_length": 21.49019607843137,
"alnum_prop": 0.6843065693430657,
"repo_name": "MaYunFei/TXLiveDemo",
"id": "f5570f2148aaca17d3e9619d2443939525148df2",
"size": "1132",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "wbesocket/src/main/java/io/github/mayunfei/wbesocket/live/IWhiteBoard.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "570800"
}
],
"symlink_target": ""
}
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__dest_wchar_t_declare_cat_74b.cpp
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__dest.label.xml
Template File: sources-sink-74b.tmpl.cpp
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSource: Set data pointer to the bad buffer
* GoodSource: Set data pointer to the good buffer
* Sinks: cat
* BadSink : Copy string to data using wcscat
* Flow Variant: 74 Data flow: data passed in a map from one function to another in different source files
*
* */
#include "std_testcase.h"
#include <map>
#include <wchar.h>
using namespace std;
namespace CWE121_Stack_Based_Buffer_Overflow__dest_wchar_t_declare_cat_74
{
#ifndef OMITBAD
void badSink(map<int, wchar_t *> dataMap)
{
/* copy data out of dataMap */
wchar_t * data = dataMap[2];
{
wchar_t source[100];
wmemset(source, L'C', 100-1); /* fill with L'C's */
source[100-1] = L'\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */
wcscat(data, source);
printWLine(data);
}
}
#endif /* OMITBAD */
#ifndef OMITGOOD
/* goodG2B uses the GoodSource with the BadSink */
void goodG2BSink(map<int, wchar_t *> dataMap)
{
wchar_t * data = dataMap[2];
{
wchar_t source[100];
wmemset(source, L'C', 100-1); /* fill with L'C's */
source[100-1] = L'\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */
wcscat(data, source);
printWLine(data);
}
}
#endif /* OMITGOOD */
} /* close namespace */
|
{
"content_hash": "0f2f4761bb3cc6844430dc0abca7488a",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 121,
"avg_line_length": 28.77777777777778,
"alnum_prop": 0.6326530612244898,
"repo_name": "maurer/tiamat",
"id": "a4a47864aabdd93d7b0bd90571139b18e8cc1523",
"size": "1813",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "samples/Juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s08/CWE121_Stack_Based_Buffer_Overflow__dest_wchar_t_declare_cat_74b.cpp",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
}
|
TASSELpy.test.net.maizegenetics.matrixalgebra.Matrix package
============================================================
Submodules
----------
TASSELpy.test.net.maizegenetics.matrixalgebra.Matrix.DoubleMatrixFactoryTest module
-----------------------------------------------------------------------------------
.. automodule:: TASSELpy.test.net.maizegenetics.matrixalgebra.Matrix.DoubleMatrixFactoryTest
:members:
:undoc-members:
:show-inheritance:
TASSELpy.test.net.maizegenetics.matrixalgebra.Matrix.DoubleMatrixTest module
----------------------------------------------------------------------------
.. automodule:: TASSELpy.test.net.maizegenetics.matrixalgebra.Matrix.DoubleMatrixTest
:members:
:undoc-members:
:show-inheritance:
TASSELpy.test.net.maizegenetics.matrixalgebra.Matrix.MatrixTestSuite module
---------------------------------------------------------------------------
.. automodule:: TASSELpy.test.net.maizegenetics.matrixalgebra.Matrix.MatrixTestSuite
:members:
:undoc-members:
:show-inheritance:
Module contents
---------------
.. automodule:: TASSELpy.test.net.maizegenetics.matrixalgebra.Matrix
:members:
:undoc-members:
:show-inheritance:
|
{
"content_hash": "2c88cc0a5ce0633a5c3558cc75fd8079",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 92,
"avg_line_length": 32.13157894736842,
"alnum_prop": 0.5806715806715806,
"repo_name": "er432/TASSELpy",
"id": "7c3c210a51cab90d8b25173cf76db14b0493ded7",
"size": "1221",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop",
"path": "docs/TASSELpy.test.net.maizegenetics.matrixalgebra.Matrix.rst",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Python",
"bytes": "947691"
},
{
"name": "Shell",
"bytes": "6705"
}
],
"symlink_target": ""
}
|
from typing import Union, Callable, Optional
from turbojpeg import TurboJPEG, TJPF_GRAY
import torchvision
import cv2
import os
import numpy as np
import torch
from logging import warning
from os.path import split, join, realpath
local_libturbo_path = None
_turbo_path = realpath(join(split(realpath(__file__))[0],
"../../../libs/libturbojpeg.so.0.2.0"))
if os.path.exists(_turbo_path):
local_libturbo_path = _turbo_path
else:
warning("libturbojpeg.so.0 not found in bigdl-nano, try to load from system.")
class ImageFolder(torchvision.datasets.ImageFolder):
"""A optimzied ImageFolder using libjpeg_turbo to load jpg images."""
def __init__(
self,
root: str,
transform: Optional[Callable] = None,
target_transform: Optional[Callable] = None
):
"""
Create a ImageFolder.
:param root: A string represting the root directory path.
:param transform: A function/transform that takes in an ndarray image
and returns a transformed version. E.g, ``transforms.RandomCrop``
:param target_transform: A function/transform that takes in the
target and transforms it.
"""
super(ImageFolder, self).__init__(root, transform, target_transform)
self.jpeg: Optional[TurboJPEG] = None
def _read_image_to_bytes(self, path: str):
fd = open(path, 'rb')
img_str = fd.read()
fd.close()
return img_str
def _decode_img_libjpeg_turbo(self, img_str: str):
if self.jpeg is None:
self.jpeg = TurboJPEG(lib_path=local_libturbo_path)
bgr_array = self.jpeg.decode(img_str)
return bgr_array
def __getitem__(self, idx: int):
path = self.imgs[idx][0]
label = self.imgs[idx][1]
if path.endswith(".jpg") or path.endswith(".jpeg"):
img_str = self._read_image_to_bytes(path)
img = self._decode_img_libjpeg_turbo(img_str)
else:
img = cv2.imread(path)
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
if self.transform:
img = self.transform(img)
img = img.numpy()
return img.astype('float32'), label
class SegmentationImageFolder:
"""A dataset for segmentation tasks."""
def __init__(
self,
root: str,
image_folder: str,
mask_folder: str,
transforms: Optional[Callable] = None,
):
"""
Create dataset for image segmentation task.
The layout the folder should look like following:
root/image_folder/image_1.jpg
root/image_folder/image_2.jpg
...
root/mask_folder/image_1.jpg
root/mask_folder/image_2.jpg
image_folder and the mask_folder should have the same number images in it
and the corresponding image and mask should have the same prefix.
:param root: the directory to look for image_folder and mask_folder
:param image_folder: the directory under root containing image files
:param mask_folder: the directory under root containing mask files
:param transforms: an optional transforms operating on images and masks
"""
self.image_folder = os.path.join(root, image_folder)
self.mask_folder = os.path.join(root, mask_folder)
self.imgs = list(sorted(os.listdir(self.image_folder)))
self.masks = list(sorted(os.listdir(self.mask_folder)))
self.transforms = transforms
self.jpeg = TurboJPEG(lib_path=local_libturbo_path)
def __getitem__(self, idx: int):
img_path = os.path.join(self.image_folder, self.imgs[idx])
mask_path = os.path.join(self.mask_folder, self.masks[idx])
# img = Image.open(img_path).convert("RGB")
# note that we haven't converted the mask to RGB,
# because each color corresponds to a different instance
# with 0 being background
if img_path.endswith(".jpg") or img_path.endswith(".jpeg"):
fd = open(img_path, 'rb')
img = self.jpeg.decode(fd.read())
fd.close()
else:
img = cv2.imread(img_path)
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
if mask_path.endswith(".jpg") or mask_path.endswith(".jpeg"):
fd = open(mask_path, 'rb')
mask = self.jpeg.decode(fd.read(), pixel_format=TJPF_GRAY)
fd.close()
else:
mask = cv2.imread(mask_path, cv2.IMREAD_GRAYSCALE)
mask = np.array(mask)
# instances are encoded as different colors
obj_ids = np.unique(mask)
# first id is the background, so remove it
obj_ids = obj_ids[1:]
# split the color-encoded mask into a set
# of binary masks
masks = mask == obj_ids[:, None, None]
# get bounding box coordinates for each mask
num_objs = len(obj_ids)
boxes = []
area = []
for i in range(num_objs):
pos = np.where(masks[i])
xmin = np.min(pos[1])
xmax = np.max(pos[1])
ymin = np.min(pos[0])
ymax = np.max(pos[0])
boxes.append([xmin, ymin, xmax, ymax])
area.append((ymax - ymin) * (xmax - xmin))
target = {}
target["boxes"] = torch.as_tensor(boxes, dtype=torch.float32)
# there is only one class
target["labels"] = torch.ones((num_objs,), dtype=torch.int64)
target["masks"] = torch.as_tensor(masks, dtype=torch.uint8)
target["image_id"] = torch.tensor([idx])
target["area"] = torch.as_tensor(area, dtype=torch.float32)
# suppose all instances are not crowd
target["iscrowd"] = torch.zeros((num_objs,), dtype=torch.int64)
if self.transforms is not None:
img, target = self.transforms(img, target)
return img, target
def __len__(self):
return len(self.imgs)
|
{
"content_hash": "8491dc09211a80a378eea40abe4da441",
"timestamp": "",
"source": "github",
"line_count": 168,
"max_line_length": 82,
"avg_line_length": 35.714285714285715,
"alnum_prop": 0.594,
"repo_name": "yangw1234/BigDL",
"id": "7ea96e3ca9222b7c86ea264fd88cb5fc7d255d39",
"size": "6588",
"binary": false,
"copies": "2",
"ref": "refs/heads/main",
"path": "python/nano/src/bigdl/nano/pytorch/vision/datasets/datasets.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "5342"
},
{
"name": "Dockerfile",
"bytes": "138760"
},
{
"name": "Java",
"bytes": "1321348"
},
{
"name": "Jupyter Notebook",
"bytes": "54063856"
},
{
"name": "Lua",
"bytes": "1904"
},
{
"name": "Makefile",
"bytes": "19253"
},
{
"name": "PowerShell",
"bytes": "1137"
},
{
"name": "PureBasic",
"bytes": "593"
},
{
"name": "Python",
"bytes": "8762180"
},
{
"name": "RobotFramework",
"bytes": "16117"
},
{
"name": "Scala",
"bytes": "13216038"
},
{
"name": "Shell",
"bytes": "844916"
}
],
"symlink_target": ""
}
|
.leaderboard-creation {
min-width: 300px;
position: relative;
vertical-align: top; }
.leaderboard-creation > *, .leaderboard-creation > * > * {
vertical-align: top; }
.leaderboard-creation .form-row {
margin: 30px 0px; }
.leaderboard-creation .form-row-label {
display: inline-block;
width: 200px;
font-weight: bold; }
.leaderboard-creation .form-row-field {
display: inline-block;
width: calc(100% - 200px); }
.leaderboard-creation .form-row-description {
margin-left: 200px;
font-size: 0.9em;
color: #666666; }
.leaderboard-creation .im-btn {
display: none !important; }
.leaderboard-creation .timespan-cb {
margin-bottom: 30px;
width: 100%; }
.leaderboard-creation .timespan-cb > span {
display: inline-block;
padding: 0px 0px 0px 10px;
top: 3px;
position: relative; }
|
{
"content_hash": "77d9c9eb413f8f201c1b257af2d42025",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 60,
"avg_line_length": 30.06896551724138,
"alnum_prop": 0.643348623853211,
"repo_name": "ActiDoo/gamification-engine",
"id": "05d4d2b594539e6966615c91bd18a4bc86507fbf",
"size": "872",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "gengine/app/jsscripts/src/components/views/leaderboard-creation/leaderboardCreation.css",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "3492"
},
{
"name": "Dockerfile",
"bytes": "576"
},
{
"name": "HTML",
"bytes": "14169"
},
{
"name": "JavaScript",
"bytes": "70706"
},
{
"name": "Mako",
"bytes": "494"
},
{
"name": "Python",
"bytes": "391639"
},
{
"name": "SCSS",
"bytes": "2574"
},
{
"name": "Shell",
"bytes": "6184"
}
],
"symlink_target": ""
}
|
import { moduleFor, test } from 'ember-qunit';
moduleFor('controller:new-platform-flexberry-services-lock-list', 'Unit | Controller | new-platform-flexberry-services-lock-list');
test('it exists', function(assert) {
let controller = this.subject();
assert.ok(controller);
});
|
{
"content_hash": "2ef68609cc4cb3e395333f44ba8eb12e",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 131,
"avg_line_length": 35.25,
"alnum_prop": 0.7304964539007093,
"repo_name": "Flexberry/ember-flexberry",
"id": "cdf3c0e39398633bab56c7b7759c23fb44c5e1d9",
"size": "282",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop",
"path": "tests/unit/controllers/new-platform-flexberry-services-lock-list-test.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "1882"
},
{
"name": "Handlebars",
"bytes": "458142"
},
{
"name": "JavaScript",
"bytes": "2528680"
},
{
"name": "Less",
"bytes": "6426"
},
{
"name": "Shell",
"bytes": "7536"
},
{
"name": "TypeScript",
"bytes": "101585"
}
],
"symlink_target": ""
}
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.11.04 at 10:30:05 PM CET
//
package io.leishvl.core.ncbi.pubmed;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.annotation.Generated;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"commentsCorrections"
})
@XmlRootElement(name = "CommentsCorrectionsList")
@Generated(value = "com.sun.tools.xjc.Driver", date = "2015-11-04T10:30:05+01:00", comments = "JAXB RI v2.2.11")
public class CommentsCorrectionsList {
@XmlElement(name = "CommentsCorrections", required = true)
@Generated(value = "com.sun.tools.xjc.Driver", date = "2015-11-04T10:30:05+01:00", comments = "JAXB RI v2.2.11")
protected List<CommentsCorrections> commentsCorrections;
/**
* Gets the value of the commentsCorrections property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the commentsCorrections property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getCommentsCorrections().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link CommentsCorrections }
*
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", date = "2015-11-04T10:30:05+01:00", comments = "JAXB RI v2.2.11")
public List<CommentsCorrections> getCommentsCorrections() {
if (commentsCorrections == null) {
commentsCorrections = new ArrayList<CommentsCorrections>();
}
return this.commentsCorrections;
}
@Generated(value = "com.sun.tools.xjc.Driver", date = "2015-11-04T10:30:05+01:00", comments = "JAXB RI v2.2.11")
public CommentsCorrectionsList withCommentsCorrections(CommentsCorrections... values) {
if (values!= null) {
for (CommentsCorrections value: values) {
getCommentsCorrections().add(value);
}
}
return this;
}
@Generated(value = "com.sun.tools.xjc.Driver", date = "2015-11-04T10:30:05+01:00", comments = "JAXB RI v2.2.11")
public CommentsCorrectionsList withCommentsCorrections(Collection<CommentsCorrections> values) {
if (values!= null) {
getCommentsCorrections().addAll(values);
}
return this;
}
@Override
@Generated(value = "com.sun.tools.xjc.Driver", date = "2015-11-04T10:30:05+01:00", comments = "JAXB RI v2.2.11")
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
@Generated(value = "com.sun.tools.xjc.Driver", date = "2015-11-04T10:30:05+01:00", comments = "JAXB RI v2.2.11")
public boolean equals(java.lang.Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
@Generated(value = "com.sun.tools.xjc.Driver", date = "2015-11-04T10:30:05+01:00", comments = "JAXB RI v2.2.11")
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}
|
{
"content_hash": "435ef09d28f280f4e7114a6f406159d8",
"timestamp": "",
"source": "github",
"line_count": 107,
"max_line_length": 116,
"avg_line_length": 37.401869158878505,
"alnum_prop": 0.6794102948525738,
"repo_name": "eubrazilcc/leishvl",
"id": "fc1763f5650474661216677ba0b1182c3f7a706a",
"size": "4002",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "leishvl-core/src/main/generated-sources/pubmed/io/leishvl/core/ncbi/pubmed/CommentsCorrectionsList.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "5006"
},
{
"name": "Java",
"bytes": "2858931"
},
{
"name": "Shell",
"bytes": "7058"
}
],
"symlink_target": ""
}
|
namespace IHM
{
partial class FormReceipe
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
this.SuspendLayout();
//
// dataGridView1
//
this.dataGridView1.AutoGenerateColumns = false;
this.dataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.DataSource = this.bindingSource1;
this.dataGridView1.Location = new System.Drawing.Point(32, 27);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowTemplate.Height = 40;
this.dataGridView1.Size = new System.Drawing.Size(1137, 551);
this.dataGridView1.TabIndex = 0;
//
// FormReceipe
//
this.AutoScaleDimensions = new System.Drawing.SizeF(16F, 31F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1214, 612);
this.Controls.Add(this.dataGridView1);
this.Name = "FormReceipe";
this.Text = "Form1";
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.BindingSource bindingSource1;
}
}
|
{
"content_hash": "3fd45c3858311c69eeb40d8127ab2f1e",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 131,
"avg_line_length": 41.3,
"alnum_prop": 0.6181252161881702,
"repo_name": "NitriKx/M2DL-ACEE-TPs-CSharp",
"id": "7237335c26e511166c68cfbf81a006f70d6e3207",
"size": "2893",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "CSHARP/TP-MVC/IHM/IHM/FormReceipe.Designer.cs",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C#",
"bytes": "68734"
}
],
"symlink_target": ""
}
|
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null
|
{
"content_hash": "31bc28d8530deadad85b33e87117e3de",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "d734620b98c008f461e49b9fd317d75e33fce8ad",
"size": "171",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Plantae/Magnoliophyta/Liliopsida/Asparagales/Iridaceae/Cardenanthus/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
}
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_02) on Tue Apr 29 11:29:43 CEST 2014 -->
<meta http-equiv="Content-Type" content="text/html" charset="utf-8">
<title>org.gradle.api.plugins.osgi (Gradle API 1.12)</title>
<meta name="date" content="2014-04-29">
<link rel="stylesheet" type="text/css" href="../../../../../javadoc.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="org.gradle.api.plugins.osgi (Gradle API 1.12)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li class="navBarCell1Rev">Package</li>
<li>Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/gradle/api/plugins/jetty/package-summary.html">Prev Package</a></li>
<li><a href="../../../../../org/gradle/api/plugins/quality/package-summary.html">Next Package</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/gradle/api/plugins/osgi/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 title="Package" class="title">Package org.gradle.api.plugins.osgi</h1>
<div class="docSummary">
<div class="block">The OSGi <a href="../../../../../org/gradle/api/Plugin.html" title="interface in org.gradle.api"><code>Plugin</code></a> implementation.</div>
</div>
<p>See: <a href="#package_description">Description</a></p>
</div>
<div class="contentContainer">
<ul class="blockList">
<li class="blockList">
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Interface Summary table, listing interfaces, and an explanation">
<caption><span>Interface Summary</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Interface</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/gradle/api/plugins/osgi/OsgiManifest.html" title="interface in org.gradle.api.plugins.osgi">OsgiManifest</a></td>
<td class="colLast">
<div class="block">Represents a manifest file for a JAR containing an OSGi bundle.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation">
<caption><span>Class Summary</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/gradle/api/plugins/osgi/OsgiPluginConvention.html" title="class in org.gradle.api.plugins.osgi">OsgiPluginConvention</a></td>
<td class="colLast">
<div class="block">Is mixed in into the project when applying the <code>OsgiPlugin</code> .</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
<a name="package_description">
<!-- -->
</a>
<h2 title="Package org.gradle.api.plugins.osgi Description">Package org.gradle.api.plugins.osgi Description</h2>
<div class="block">The OSGi <a href="../../../../../org/gradle/api/Plugin.html" title="interface in org.gradle.api"><code>Plugin</code></a> implementation.</div>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li class="navBarCell1Rev">Package</li>
<li>Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/gradle/api/plugins/jetty/package-summary.html">Prev Package</a></li>
<li><a href="../../../../../org/gradle/api/plugins/quality/package-summary.html">Next Package</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/gradle/api/plugins/osgi/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
|
{
"content_hash": "b8f90a95bc2cb09f2a84379b2d81ea02",
"timestamp": "",
"source": "github",
"line_count": 160,
"max_line_length": 174,
"avg_line_length": 38.2125,
"alnum_prop": 0.6344455348380765,
"repo_name": "Pushjet/Pushjet-Android",
"id": "02ea8b1232835d39d9a1ccac8e46b5c63425cd13",
"size": "6114",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "gradle/wrapper/dists/gradle-1.12-all/4ff8jj5a73a7zgj5nnzv1ubq0/gradle-1.12/docs/javadoc/org/gradle/api/plugins/osgi/package-summary.html",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "Java",
"bytes": "92331"
}
],
"symlink_target": ""
}
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>semantics: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.11.1 / semantics - 8.7.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
semantics
<small>
8.7.0
<span class="label label-info">Not compatible</span>
</small>
</h1>
<p><em><script>document.write(moment("2021-04-12 22:56:58 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-04-12 22:56:58 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
coq 8.11.1 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.10.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.10.1 Official release 4.10.1
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "https://github.com/coq-contribs/semantics"
license: "LGPL"
build: [make "-j%{jobs}%"]
install: [make "install"]
depends: [
"ocaml"
"ocamlbuild" {build}
"coq" {>= "8.7" & < "8.8~"}
]
tags: [
"keyword: natural semantics"
"keyword: denotational semantics"
"keyword: axiomatic semantics"
"keyword: Hoare logic"
"keyword: Dijkstra weakest pre-condition calculus"
"keyword: abstract interpretation"
"keyword: intervals"
"category: Computer Science/Semantics and Compilation/Semantics"
"date: 2007-07-5"
"logpath:Semantics"
]
authors: [ "Yves Bertot <Yves.Bertot@sophia.inria.fr> [http://www-sop.inria.fr/marelle/Yves.Bertot]" ]
bug-reports: "https://github.com/coq-contribs/semantics/issues"
dev-repo: "git+https://github.com/coq-contribs/semantics.git"
synopsis: "A survey of semantics styles, from natural semantics through structural operational, axiomatic, and denotational semantics, to abstract interpretation"
description: """
ftp://ftp-sop.inria.fr/marelle/Yves.Bertot/semantics_survey.tgz
This is a survey of programming language semantics styles
for a miniature example of a programming language, with their encoding
in Coq, the proofs of equivalence of different styles, and the proof
of soundess of tools obtained from axiomatic semantics or abstract
interpretation. The tools can be run inside Coq, thus making them
available for proof by reflection, and the code can also be extracted
and connected to a yacc-based parser, thanks to the use of a functor
parameterized by a module type of strings. A hand-written parser is
also provided in Coq, but there are no proofs associated."""
url {
src: "https://github.com/coq-contribs/semantics/archive/v8.7.0.tar.gz"
checksum: "md5=64a71ef039d1c6a155918c23d92c31c1"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-semantics.8.7.0 coq.8.11.1</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.11.1).
The following dependencies couldn't be met:
- coq-semantics -> coq < 8.8~ -> ocaml < 4.10
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-semantics.8.7.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
<small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small>
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
|
{
"content_hash": "f4629f1036b9d5422d3299d3b47b042e",
"timestamp": "",
"source": "github",
"line_count": 180,
"max_line_length": 172,
"avg_line_length": 42.605555555555554,
"alnum_prop": 0.5726952666579737,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "01bbb49838a34e00f614207a67252a1fb4d6a85d",
"size": "7671",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "clean/Linux-x86_64-4.10.1-2.0.6/released/8.11.1/semantics/8.7.0.html",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
}
|
using System;
using System.Net.Sockets;
namespace Xorcerer.Wizard.Network
{
public interface IClientFactory
{
IClient Create(TcpClient tcpClient);
void Release(IClient client);
}
}
|
{
"content_hash": "4ef817caf2d847df00365decd22cbc90",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 44,
"avg_line_length": 17.583333333333332,
"alnum_prop": 0.6919431279620853,
"repo_name": "Xorcerer/Wizard",
"id": "59615b77bcea27e44f0fff27bffea1054e286f62",
"size": "211",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Wizard/Network/Client/IClientFactory.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "100636"
},
{
"name": "XSLT",
"bytes": "125925"
}
],
"symlink_target": ""
}
|
<?php
namespace yii\rest;
use yii\base\InvalidConfigException;
use yii\base\Model;
use yii\web\ForbiddenHttpException;
/**
* ActiveController implements a common set of actions for supporting RESTful access to ActiveRecord.
*
* The class of the ActiveRecord should be specified via [[modelClass]], which must implement [[\yii\db\ActiveRecordInterface]].
* By default, the following actions are supported:
*
* - `index`: list of models
* - `view`: return the details of a model
* - `create`: create a new model
* - `update`: update an existing model
* - `delete`: delete an existing model
* - `options`: return the allowed HTTP methods
*
* You may disable some of these actions by overriding [[actions()]] and unsetting the corresponding actions.
*
* To add a new action, either override [[actions()]] by appending a new action class or write a new action method.
* Make sure you also override [[verbs()]] to properly declare what HTTP methods are allowed by the new action.
*
* You should usually override [[checkAccess()]] to check whether the current user has the privilege to perform
* the specified action against the specified model.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
class ActiveController extends Controller
{
/**
* @var string the model class name. This property must be set.
*/
public $modelClass;
/**
* @var string the scenario used for updating a model.
* @see \yii\base\Model::scenarios()
*/
public $updateScenario = Model::SCENARIO_DEFAULT;
/**
* @var string the scenario used for creating a model.
* @see \yii\base\Model::scenarios()
*/
public $createScenario = Model::SCENARIO_DEFAULT;
/**
* @inheritdoc
*/
public function init()
{
parent::init();
if ($this->modelClass === null) {
throw new InvalidConfigException('The "modelClass" property must be set.');
}
}
/**
* @inheritdoc
*/
public function actions()
{
return [
'index' => [
'class' => 'yii\rest\IndexAction',
'modelClass' => $this->modelClass,
'checkAccess' => [$this, 'checkAccess'],
],
'view' => [
'class' => 'yii\rest\ViewAction',
'modelClass' => $this->modelClass,
'checkAccess' => [$this, 'checkAccess'],
],
'create' => [
'class' => 'yii\rest\CreateAction',
'modelClass' => $this->modelClass,
'checkAccess' => [$this, 'checkAccess'],
'scenario' => $this->createScenario,
],
'update' => [
'class' => 'yii\rest\UpdateAction',
'modelClass' => $this->modelClass,
'checkAccess' => [$this, 'checkAccess'],
'scenario' => $this->updateScenario,
],
'delete' => [
'class' => 'yii\rest\DeleteAction',
'modelClass' => $this->modelClass,
'checkAccess' => [$this, 'checkAccess'],
],
'options' => [
'class' => 'yii\rest\OptionsAction',
],
];
}
/**
* @inheritdoc
*/
protected function verbs()
{
return [
'index' => ['GET', 'HEAD'],
'view' => ['GET', 'HEAD'],
'create' => ['POST'],
'update' => ['PUT', 'PATCH'],
'delete' => ['DELETE'],
];
}
/**
* Checks the privilege of the current user.
*
* This method should be overridden to check whether the current user has the privilege
* to run the specified action against the specified data model.
* If the user does not have access, a [[ForbiddenHttpException]] should be thrown.
*
* @param string $action the ID of the action to be executed
* @param object $model the model to be accessed. If null, it means no specific model is being accessed.
* @param array $params additional parameters
* @throws ForbiddenHttpException if the user does not have access
*/
public function checkAccess($action, $model = null, $params = [])
{
}
}
|
{
"content_hash": "cff24f37e6ad61ccb955fb327e6f8ecc",
"timestamp": "",
"source": "github",
"line_count": 131,
"max_line_length": 128,
"avg_line_length": 32.595419847328245,
"alnum_prop": 0.5655737704918032,
"repo_name": "tatia-kom/gde_v_donetske",
"id": "18c64187f32269e146cd849cbb4cc5dff988d894",
"size": "4414",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "vendor/yiisoft/yii2/rest/ActiveController.php",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "ApacheConf",
"bytes": "397"
},
{
"name": "Batchfile",
"bytes": "2060"
},
{
"name": "CSS",
"bytes": "102354"
},
{
"name": "JavaScript",
"bytes": "489669"
},
{
"name": "PHP",
"bytes": "724315"
}
],
"symlink_target": ""
}
|
var $ = require("jquery");
var _ = require("underscore");
var Backbone = require("backbone");
Backbone.$ = $;
var helpers = require("./helpers.js");
var genericCollection = require("./genericCollection.js");
var mediaView = require("./features/cardView.js");
var eventsView = require("./events/cardView.js");
var oppsView = require("./opportunities/cardView.js");
var dirView = require("./directory/cardView.js");
var mView = new mediaView();
var eView = new eventsView();
var oView = new oppsView();
var dView = new dirView();
var view = Backbone.View.extend({
initialize: function(collection, filter){
this.$el = $("#page-content .grid");
if(typeof filter == "function"){
this.collection = new genericCollection();
this.filter = filter;
this.listenTo(this.collection, "add", this.filterCollection);
this.collection.add(collection.toJSON());
}else{
this.collection = collection;
}
},
// Collection passed in should be in the right order
// Use the generic collection object
render: function(){
var types = ["features", "directory", "opportunities", "events"];
_.each(types, function(el, i){
window.app[el].allView.stopListening(window.app[el].allView.collection);
});
this.stopListening(this.collection);
this.listenTo(this.collection, "add", this.nextPage);
this.listenTo(this.collection, "add", this.filterCollection);
this.listenTo(this.collection, "remove", this.removeItem);
this.$el.removeClass("directory-grid");
this.$el.masonry({
columnWidth: ".grid-item",
itemSelector: ".grid-item",
gutter: 20
}).masonry("remove", this.$el.find(".grid-item"));
this.$el.html("");
this.collection.each(this.addModel, this);
// Prepend a temporary level-0 grid item so that the masonry grid works correctly in the
// absence of a level-0 grid item
this.$el.prepend("<a href='#' class='to-be-remove grid-item level-0'></a>");
this.$el.masonry("appended", this.$el.find(".grid-item"))
.masonry()
.masonry("remove", this.$el.find(".grid-item.to-be-remove"))
.masonry();
return this;
},
// Will be overwritten by the children views
addModel: function(model){
var type = model.get("appData");
if(type == "features"){
this.$el.append(mView.render(model));
}else if(type == "events"){
this.$el.append(eView.renderWithFullCategory(model));
}else if(type == "opportunities"){
this.$el.append(oView.renderWithFullCategory(model));
}else if(type == "directory"){
this.$el.append(dView.render(model));
}
// Resize the background image according to the size of the grid item
helpers.dynamicImageSize($("#page-content .grid .grid-item .bg-image-container"));
helpers.bindCardEvents(app.router);
},
nextPage: function(model){
var $gridItems = $("#page-content .grid .grid-item");
var slug = model.get("slug");
$gridItems = $gridItems.filter("#" + slug);
if($gridItems.length === 0){
this.addModel(model);
this.$el.masonry("appended", this.$el.find(".grid-item#" + slug)).masonry();
helpers.dynamicImageSize($("#page-content .grid .grid-item .bg-image-container"));
}
return this;
},
removeItem: function(model){
var self = this;
$("#page-content .grid .grid-item").each(function(){
if($(this).attr("id") == model.get("slug")){
$(this).remove();
self.$el.masonry();
}
});
},
filterCollection: function(model, collection, options){
if(typeof this.filter == "function" && !this.filter(model)){
this.collection.remove(model);
}
}
});
module.exports = view;
|
{
"content_hash": "d2cb4fbceebb7a96ab3a76c1998f849d",
"timestamp": "",
"source": "github",
"line_count": 113,
"max_line_length": 90,
"avg_line_length": 31.15929203539823,
"alnum_prop": 0.6711161601817666,
"repo_name": "limzykenneth/ualfutures-frontend",
"id": "a2434b887ea8224e7694184a7ad0f01258004453",
"size": "3521",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "javascripts/genericCollectionView.js",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "CSS",
"bytes": "26476"
},
{
"name": "HTML",
"bytes": "44801"
},
{
"name": "JavaScript",
"bytes": "53969"
}
],
"symlink_target": ""
}
|
#include "glyph.h"
#include "hash_map.h"
#include "shared_ptr.h"
#include "types.h"
#include <agge/config.h>
#include <string>
namespace agge
{
class font : noncopyable
{
public:
struct accessor;
typedef shared_ptr<accessor> accessor_ptr;
typedef shared_ptr<font> ptr;
public:
explicit font(const accessor_ptr &accessor_, real_t factor = 1.0f);
font_descriptor get_key() const;
font_metrics get_metrics() const;
glyph_index_t map_single(codepoint_t character) const;
const glyph *get_glyph(glyph_index_t index) const;
const glyph *get_glyph_for_codepoint(codepoint_t codepoint) const;
private:
enum { ansi_range = 128, };
typedef hash_map<glyph_index_t, glyph> glyphs_cache_t;
typedef hash_map<codepoint_t, glyph_index_t> char2index_cache_t;
private:
glyph_index_t load_mapping(codepoint_t character) const;
const glyph* load_glyph(glyph_index_t index) const;
const glyph* get_glyph_for_codepoint_slow(codepoint_t character) const;
private:
mutable const glyph *_ansi_glyphs[ansi_range];
const accessor_ptr _accessor;
font_metrics _metrics;
mutable glyphs_cache_t _glyphs;
mutable char2index_cache_t _char2glyph;
real_t _factor;
};
struct font::accessor
{
virtual font_descriptor get_descriptor() const = 0;
virtual font_metrics get_metrics() const = 0;
virtual glyph_index_t get_glyph_index(codepoint_t character) const = 0;
virtual glyph::outline_ptr load_glyph(glyph_index_t index, glyph::glyph_metrics &m) const = 0;
};
AGGE_INLINE glyph_index_t font::map_single(codepoint_t character) const
{
char2index_cache_t::const_iterator i = _char2glyph.find(character);
return _char2glyph.end() != i ? i->second : load_mapping(character);
}
AGGE_INLINE const glyph* font::get_glyph(glyph_index_t index) const
{
glyphs_cache_t::iterator i = _glyphs.find(index);
return _glyphs.end() != i ? &i->second : load_glyph(index);
}
AGGE_INLINE const glyph *font::get_glyph_for_codepoint(codepoint_t codepoint) const
{
if (codepoint < ansi_range)
if (const glyph *g = _ansi_glyphs[codepoint])
return g;
return get_glyph_for_codepoint_slow(codepoint);
}
}
|
{
"content_hash": "0e2dd2b98a807da5e0eadfcad88faf37",
"timestamp": "",
"source": "github",
"line_count": 79,
"max_line_length": 96,
"avg_line_length": 28.17721518987342,
"alnum_prop": 0.6891284815813118,
"repo_name": "tyoma/agge",
"id": "bb7f91b8f03826d35b635e2aa900de8db24e115b",
"size": "2240",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "agge.text/font.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "1104"
},
{
"name": "C++",
"bytes": "593053"
},
{
"name": "CMake",
"bytes": "6349"
}
],
"symlink_target": ""
}
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
</head>
<body>
<script data-main="ie31limit" src="../../libs/require.js" type="text/javascript"></script>
Body need to be green in IE !!!
</body>
</html>
|
{
"content_hash": "125c18dfbac1a60eddf3cbb6f1b4ad73",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 90,
"avg_line_length": 27.09090909090909,
"alnum_prop": 0.6342281879194631,
"repo_name": "dimaxweb/CSSLoader",
"id": "1e9339602f1820d55229554e3e4f558db6bf4e8e",
"size": "298",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "test/functional/ie31limit.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "4756"
},
{
"name": "JavaScript",
"bytes": "139539"
}
],
"symlink_target": ""
}
|
Yap
===
**Problem:** You want to use Hibernate but can't because your application allows users to create their own tables.
**Solution:** Yap is a runtime (re)configurable orm for Java that doesn't require compiled model classes or static mappings.
Features
--------
Yap supports the following common ORM features:
* Basic CRUD
* Relationships (hasMany, belongsTo, hasAndBelongsToMany)
* Lazy-loading
* Optimistic Locking
* Querying (via jOOq)
Plus a few unique features that make Yap awesome:
* Mappings can be reconfigured at runtime when tables and columns are added/removed.
* No compiled classes are required.
Using
-----
Create your tables using SQL:
```sql
CREATE TABLE contacts (
id serial PRIMARY KEY,
first_name varchar(50),
last_name varchar(50)
);
CREATE TABLE phone_numbers (
id serial PRIMARY KEY,
contact_id integer,
type varchar(10),
number varchar(20),
position integer
);
```
Configure a Yap PersistenceContext:
```java
ModelType contact = new ModelType("Contact")
.table("contacts")
.relationship(new HasMany("phone_numbers")
.type("PhoneNumber")
.column("contact_id")
.orderColumn("position"));
ModelType phoneNumber = new ModelType("PhoneNumber")
.table("phone_numbers")
PersistenceContext yap = new PersistenceContext()
.setDataSource(myDataSource)
.configure(contact)
.configure(phoneNumber)
.setDialect(SQLDialect.POSTGRES)
.init();
```
Save a new model instance:
```java
Model newContact = yap.create("Contact");
newContact.set("first_name", "Jane");
newContact.save();
Integer id = newContact.getId();
```
Find a model instance:
```java
Model contact = yap.find("Contact", id);
String firstName = contact.get("first_name", String.class); // get simple property
List<Model> phoneNumbers = contact.getList("phone_numbers"); // get relationship property, lazy-loaded!
```
Make a change:
```java
contact.set("first_name", "Joe");
contact.save();
```
Building Yap
------------
Yap is a standard Maven project. Yap's unit tests require a Postgres database, therefore I recommend running:
mvn clean install -DskipTests
Running the Unit Tests
----------------------
If you want to run the unit tests, you need to create a database then run liquibase to create the test schema:
mvn liquibase:update
mvn test
See liquibase.properties and unitils.properties for the database configuration
Database Support
----------------
Yap is currently under development and only supports Postgres. Since Yap is built on top of [jooq](http://www.jooq.org), we expect to support the following platforms soon:
* Postgres
* SQL Server
* MySQL
* Oracle
Limitations
-----------
Currently, yap does not:
* manage your schema for you. You are responsible for creating your own tables.
* persist arrays or collections of non-model objects, such as List<String>
About the Name
--------------
What does the fox say? Yap is an acronym for "Yet another persister".
Licensing
---------
Copyright (c) 2013 Mark Brocato
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
{
"content_hash": "37a1e6189af32581aea31bbf91539ec3",
"timestamp": "",
"source": "github",
"line_count": 139,
"max_line_length": 172,
"avg_line_length": 29.611510791366907,
"alnum_prop": 0.7242468415937804,
"repo_name": "mockaroo/yap",
"id": "366b0ce8f9a31001b911be60107c63be505e11d5",
"size": "4116",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "47701"
}
],
"symlink_target": ""
}
|
#ifndef XMLREADER__H
#define XMLREADER__H
#include "libparsifal/parsifal.h"
#include "libparsifal/dtdvalid.h"
enum XMLREADER_TYPES {
XMLREADERTYPE_STARTELEMENT = 1,
XMLREADERTYPE_ENDELEMENT,
XMLREADERTYPE_CHARS,
XMLREADERTYPE_COMMENT,
XMLREADERTYPE_PI
};
union XMLReaderNode_t {
int type;
struct startelement {
int type;
const XMLCH *uri;
const XMLCH *localname;
const XMLCH *qname;
int ibuf[3];
LPXMLVECTOR atts;
} startelement;
struct endElement {
int type;
const XMLCH *uri;
const XMLCH *localname;
const XMLCH *qname;
int ibuf[3];
} endelement;
struct chars {
int type;
XMLCH *text;
int length;
} chars;
struct comment {
int type;
XMLCH *text;
int length;
} comment;
struct pi {
int type;
XMLCH *target;
XMLCH *data;
} pi;
};
struct XMLReader_t {
LPXMLPARSER parser;
int eventbufferpos, dynamicalloc, errorcode;
void *UserData;
XMLSTRINGBUF buf[3];
LPXMLVECTOR atts, eventbuffer;
LPXMLDTDVALIDATOR dtdv;
void (*errorHandler)(struct XMLReader_t *reader);
};
struct XMLReaderAttribute_t {
int ibuf[4];
};
#define IBUF_PUT(sbuf, str, i) (!*str) ? (i = -1, str) : \
(i = (sbuf)->len, XMLStringbuf_Append((sbuf), str, strlen((const char*)str)+1))
#define IBUF_GET(sbuf, i) (i==-1) ? (XMLCH*)"" : (sbuf)->str+i
#define XMLReader_GetAttributeUri(r, a) IBUF_GET(&(r)->buf[2], (a)->ibuf[0])
#define XMLReader_GetAttributeLocalName(r, a) IBUF_GET(&(r)->buf[2], (a)->ibuf[1])
#define XMLReader_GetAttributeQName(r, a) IBUF_GET(&(r)->buf[2], (a)->ibuf[2])
#define XMLReader_GetAttributeValue(r, a) IBUF_GET(&(r)->buf[2], (a)->ibuf[3])
struct XMLReader_t *XMLReader_Create(struct XMLReader_t *r, int validating);
void XMLReader_Free(struct XMLReader_t *r);
int XMLReader_Parse(struct XMLReader_t *r, LPFNINPUTSRC inputSrc, void *inputData,
const XMLCH *encoding);
void XMLReader_AbortParse(struct XMLReader_t *r);
union XMLReaderNode_t *XMLReader_Read(struct XMLReader_t *r);
#endif /* XMLREADER__H */
|
{
"content_hash": "8413dfe484b4edb7c21d2d96635ba051",
"timestamp": "",
"source": "github",
"line_count": 79,
"max_line_length": 83,
"avg_line_length": 25.9873417721519,
"alnum_prop": 0.6697515830491964,
"repo_name": "LiberatorUSA/GUCEF",
"id": "84a0bca3534594ab7db470186cfda05ed3d315f4",
"size": "2053",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "dependencies/libparsifal/samples/pull/xmlreader.h",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "68139"
},
{
"name": "C",
"bytes": "2158073"
},
{
"name": "C++",
"bytes": "14978976"
},
{
"name": "CMake",
"bytes": "7671056"
},
{
"name": "Cuda",
"bytes": "297"
},
{
"name": "Dockerfile",
"bytes": "349"
},
{
"name": "Emacs Lisp",
"bytes": "29494"
},
{
"name": "Fortran",
"bytes": "4029"
},
{
"name": "Java",
"bytes": "1389"
},
{
"name": "Lua",
"bytes": "750004"
},
{
"name": "M4",
"bytes": "1460"
},
{
"name": "Makefile",
"bytes": "295122"
},
{
"name": "NSIS",
"bytes": "35409"
},
{
"name": "Shell",
"bytes": "181211"
},
{
"name": "Tcl",
"bytes": "6493"
},
{
"name": "Vim Script",
"bytes": "121243"
}
],
"symlink_target": ""
}
|
package jodd.petite.tst;
public class Loo {
}
|
{
"content_hash": "b45b3f6839be1d838c58b5d41c2d6919",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 24,
"avg_line_length": 11.75,
"alnum_prop": 0.723404255319149,
"repo_name": "007slm/jodd",
"id": "5c1687a45511ddb90555f3ad2c323587599a8e3d",
"size": "119",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "jodd-petite/src/test/java/jodd/petite/tst/Loo.java",
"mode": "33188",
"license": "bsd-3-clause",
"language": [],
"symlink_target": ""
}
|
<mat-list>
<mat-list-item>
<div matListItemTitle>Item </div>
<div matListItemLine>1</div>
<div matListItemIcon>icon</div>
<div matListItemAvatar>Avatar</div>
</mat-list-item>
<div matSubheader>Section 1</div>
<a mat-list-item>
<span>Item 2</span>
</a>
<button mat-list-item>Item 3</button>
<div matSubheader>Section 2</div>
</mat-list>
|
{
"content_hash": "cbda4cf9368ce41502df6569be8444b7",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 39,
"avg_line_length": 26.428571428571427,
"alnum_prop": 0.6594594594594595,
"repo_name": "crisbeto/material2",
"id": "94401c7e78e2199eca0aa971dbd8103bda0f1b86",
"size": "370",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "src/components-examples/material/list/list-harness/list-harness-example.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "66255"
},
{
"name": "HTML",
"bytes": "871851"
},
{
"name": "JavaScript",
"bytes": "89800"
},
{
"name": "SCSS",
"bytes": "873339"
},
{
"name": "Shell",
"bytes": "16309"
},
{
"name": "Starlark",
"bytes": "445234"
},
{
"name": "TypeScript",
"bytes": "11048110"
}
],
"symlink_target": ""
}
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>libguac: guacamole/audio-fntypes.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">libguac
 <span id="projectnumber">0.9.10-incubating</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_6bb9fad85c98b48a11165f494b9f53ce.html">guacamole</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#typedef-members">Typedefs</a> </div>
<div class="headertitle">
<div class="title">audio-fntypes.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Function type definitions related to simple streaming audio.
<a href="#details">More...</a></p>
<p><a href="audio-fntypes_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a0b14abed1928c4e00129c7b87e391816"><td class="memItemLeft" align="right" valign="top">typedef void </td><td class="memItemRight" valign="bottom"><a class="el" href="audio-fntypes_8h.html#a0b14abed1928c4e00129c7b87e391816">guac_audio_encoder_begin_handler</a>(<a class="el" href="structguac__audio__stream.html">guac_audio_stream</a> *audio)</td></tr>
<tr class="memdesc:a0b14abed1928c4e00129c7b87e391816"><td class="mdescLeft"> </td><td class="mdescRight">Handler which is called when the audio stream is opened. <a href="#a0b14abed1928c4e00129c7b87e391816">More...</a><br /></td></tr>
<tr class="separator:a0b14abed1928c4e00129c7b87e391816"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8736cc2b634df9c222cf09dcc6507162"><td class="memItemLeft" align="right" valign="top">typedef void </td><td class="memItemRight" valign="bottom"><a class="el" href="audio-fntypes_8h.html#a8736cc2b634df9c222cf09dcc6507162">guac_audio_encoder_flush_handler</a>(<a class="el" href="structguac__audio__stream.html">guac_audio_stream</a> *audio)</td></tr>
<tr class="memdesc:a8736cc2b634df9c222cf09dcc6507162"><td class="mdescLeft"> </td><td class="mdescRight">Handler which is called when the audio stream needs to be flushed. <a href="#a8736cc2b634df9c222cf09dcc6507162">More...</a><br /></td></tr>
<tr class="separator:a8736cc2b634df9c222cf09dcc6507162"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa29dc3999c06e82c20d7a5e5d1e1565d"><td class="memItemLeft" align="right" valign="top">typedef void </td><td class="memItemRight" valign="bottom"><a class="el" href="audio-fntypes_8h.html#aa29dc3999c06e82c20d7a5e5d1e1565d">guac_audio_encoder_end_handler</a>(<a class="el" href="structguac__audio__stream.html">guac_audio_stream</a> *audio)</td></tr>
<tr class="memdesc:aa29dc3999c06e82c20d7a5e5d1e1565d"><td class="mdescLeft"> </td><td class="mdescRight">Handler which is called when the audio stream is closed. <a href="#aa29dc3999c06e82c20d7a5e5d1e1565d">More...</a><br /></td></tr>
<tr class="separator:aa29dc3999c06e82c20d7a5e5d1e1565d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9d1fac87cc2ee072112d9d65d43ae70e"><td class="memItemLeft" align="right" valign="top">typedef void </td><td class="memItemRight" valign="bottom"><a class="el" href="audio-fntypes_8h.html#a9d1fac87cc2ee072112d9d65d43ae70e">guac_audio_encoder_join_handler</a>(<a class="el" href="structguac__audio__stream.html">guac_audio_stream</a> *audio, <a class="el" href="structguac__user.html">guac_user</a> *user)</td></tr>
<tr class="memdesc:a9d1fac87cc2ee072112d9d65d43ae70e"><td class="mdescLeft"> </td><td class="mdescRight">Handler which is called when a new user has joined the Guacamole connection associated with the audio stream. <a href="#a9d1fac87cc2ee072112d9d65d43ae70e">More...</a><br /></td></tr>
<tr class="separator:a9d1fac87cc2ee072112d9d65d43ae70e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a57fe16e56c1c115b2321e50b9d9ce11a"><td class="memItemLeft" align="right" valign="top">typedef void </td><td class="memItemRight" valign="bottom"><a class="el" href="audio-fntypes_8h.html#a57fe16e56c1c115b2321e50b9d9ce11a">guac_audio_encoder_write_handler</a>(<a class="el" href="structguac__audio__stream.html">guac_audio_stream</a> *audio, const unsigned char *pcm_data, int length)</td></tr>
<tr class="memdesc:a57fe16e56c1c115b2321e50b9d9ce11a"><td class="mdescLeft"> </td><td class="mdescRight">Handler which is called when PCM data is written to the audio stream. <a href="#a57fe16e56c1c115b2321e50b9d9ce11a">More...</a><br /></td></tr>
<tr class="separator:a57fe16e56c1c115b2321e50b9d9ce11a"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Function type definitions related to simple streaming audio. </p>
</div><h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="a0b14abed1928c4e00129c7b87e391816"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef void guac_audio_encoder_begin_handler(<a class="el" href="structguac__audio__stream.html">guac_audio_stream</a> *audio)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Handler which is called when the audio stream is opened. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">audio</td><td>The audio stream being opened. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="aa29dc3999c06e82c20d7a5e5d1e1565d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef void guac_audio_encoder_end_handler(<a class="el" href="structguac__audio__stream.html">guac_audio_stream</a> *audio)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Handler which is called when the audio stream is closed. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">audio</td><td>The audio stream being closed. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a8736cc2b634df9c222cf09dcc6507162"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef void guac_audio_encoder_flush_handler(<a class="el" href="structguac__audio__stream.html">guac_audio_stream</a> *audio)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Handler which is called when the audio stream needs to be flushed. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">audio</td><td>The audio stream being flushed. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a9d1fac87cc2ee072112d9d65d43ae70e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef void guac_audio_encoder_join_handler(<a class="el" href="structguac__audio__stream.html">guac_audio_stream</a> *audio, <a class="el" href="structguac__user.html">guac_user</a> *user)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Handler which is called when a new user has joined the Guacamole connection associated with the audio stream. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">audio</td><td>The audio stream associated with the Guacamole connection being joined.</td></tr>
<tr><td class="paramname">user</td><td>The user that joined the connection. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a57fe16e56c1c115b2321e50b9d9ce11a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef void guac_audio_encoder_write_handler(<a class="el" href="structguac__audio__stream.html">guac_audio_stream</a> *audio, const unsigned char *pcm_data, int length)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Handler which is called when PCM data is written to the audio stream. </p>
<p>The format of the PCM data is dictated by the properties of the audio stream.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">audio</td><td>The audio stream to which data is being written.</td></tr>
<tr><td class="paramname">pcm_data</td><td>A buffer containing the raw PCM data to be written.</td></tr>
<tr><td class="paramname">length</td><td>The number of bytes within the buffer that should be written to the audio stream. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
|
{
"content_hash": "77d2b982d3d16b259ec39b2aa05391a4",
"timestamp": "",
"source": "github",
"line_count": 233,
"max_line_length": 437,
"avg_line_length": 52.13304721030043,
"alnum_prop": 0.6842018605416975,
"repo_name": "mike-jumper/incubator-guacamole-website",
"id": "2bb756b0837c66a6b6d2306cf0d55d94c5542921",
"size": "12147",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "doc/0.9.10-incubating/libguac/audio-fntypes_8h.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "12886"
},
{
"name": "HTML",
"bytes": "37702"
},
{
"name": "JavaScript",
"bytes": "439018"
},
{
"name": "Perl",
"bytes": "2217"
},
{
"name": "Ruby",
"bytes": "660"
},
{
"name": "Shell",
"bytes": "4849"
}
],
"symlink_target": ""
}
|
set -o errexit
set -o nounset
set -o pipefail
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
source "${KUBE_ROOT}/cluster/kube-env.sh"
source "${KUBE_ROOT}/cluster/${KUBERNETES_PROVIDER}/util.sh"
MINIONS_FILE=/tmp/minions-$$
trap 'rm -rf "${MINIONS_FILE}"' EXIT
# Make several attempts to deal with slow cluster birth.
attempt=0
while true; do
# The "kubectl get nodes" output is three columns like this:
#
# NAME LABELS STATUS
# kubernetes-minion-03nb <none> Ready
#
# Echo the output, strip the first line, then gather 2 counts:
# - Total number of nodes.
# - Number of "ready" nodes.
"${KUBE_ROOT}/cluster/kubectl.sh" get nodes > "${MINIONS_FILE}" || true
found=$(cat "${MINIONS_FILE}" | sed '1d' | grep -c .) || true
ready=$(cat "${MINIONS_FILE}" | sed '1d' | awk '{print $NF}' | grep -c '^Ready') || true
if (( ${found} == "${NUM_MINIONS}" )) && (( ${ready} == "${NUM_MINIONS}")); then
break
else
if (( attempt > 20 )); then
echo -e "${color_red}Detected ${ready} ready nodes, found ${found} nodes out of expected ${NUM_MINIONS}. Your cluster may not be working.${color_norm}"
cat -n "${MINIONS_FILE}"
exit 2
else
echo -e "${color_yellow}Waiting for ${NUM_MINIONS} ready nodes. ${ready} ready nodes, ${found} registered. Retrying.${color_norm}"
fi
attempt=$((attempt+1))
sleep 15
fi
done
echo "Found ${found} nodes."
cat -n "${MINIONS_FILE}"
attempt=0
while true; do
kubectl_output=$("${KUBE_ROOT}/cluster/kubectl.sh" get cs) || true
# The "kubectl componentstatuses" output is four columns like this:
#
# COMPONENT HEALTH MSG ERR
# controller-manager Healthy ok nil
#
# Parse the output to capture the value of the second column("HEALTH"), then use grep to
# count the number of times it doesn't match "Healthy".
non_success_count=$(echo "${kubectl_output}" | \
sed '1d' |
sed -n 's/^[[:alnum:][:punct:]]/&/p' | \
grep --invert-match -c '^[[:alnum:][:punct:]]\{1,\}[[:space:]]\{1,\}Healthy') || true
if ((non_success_count > 0)); then
if ((attempt < 5)); then
echo -e "${color_yellow}Cluster not working yet.${color_norm}"
attempt=$((attempt+1))
sleep 30
else
echo -e " ${color_yellow}Validate output:${color_norm}"
echo "${kubectl_output}"
echo -e "${color_red}Validation returned one or more failed components. Cluster is probably broken.${color_norm}"
exit 1
fi
else
break
fi
done
echo "Validate output:"
echo "${kubectl_output}"
echo -e "${color_green}Cluster validation succeeded${color_norm}"
|
{
"content_hash": "873733bdd0402f05a2ca554933e3d425",
"timestamp": "",
"source": "github",
"line_count": 78,
"max_line_length": 157,
"avg_line_length": 34,
"alnum_prop": 0.6131221719457014,
"repo_name": "swarren83/kubernetes",
"id": "b27b19ae8c843cfa8ab79222ada465dc64baf77f",
"size": "3315",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "cluster/validate-cluster.sh",
"mode": "33261",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "61887"
},
{
"name": "Go",
"bytes": "10077190"
},
{
"name": "HTML",
"bytes": "64367"
},
{
"name": "Java",
"bytes": "5390"
},
{
"name": "JavaScript",
"bytes": "204629"
},
{
"name": "Makefile",
"bytes": "12078"
},
{
"name": "Nginx",
"bytes": "1013"
},
{
"name": "PHP",
"bytes": "736"
},
{
"name": "Python",
"bytes": "61111"
},
{
"name": "Ruby",
"bytes": "2778"
},
{
"name": "SaltStack",
"bytes": "24185"
},
{
"name": "Shell",
"bytes": "661085"
}
],
"symlink_target": ""
}
|
set -e
SCRIPT_DIR=$(dirname $0)
ADDED_DIR=${SCRIPT_DIR}/added
# Add custom launch script and dependent scripts/libraries/snippets
cp -p ${ADDED_DIR}/openshift-launch.sh ${JBOSS_HOME}/bin/
mkdir -p ${JBOSS_HOME}/bin/launch
cp -r ${ADDED_DIR}/launch/* ${JBOSS_HOME}/bin/launch
chmod ug+x ${JBOSS_HOME}/bin/openshift-launch.sh
# Set bin permissions
chown -R jboss:root ${JBOSS_HOME}/bin/
chmod -R g+rwX ${JBOSS_HOME}/bin/
# Ensure that the local data directory exists
DATA_DIR=${JBOSS_HOME}/standalone/data
mkdir -p ${DATA_DIR}/bpmsuite
# Necessary to permit running with a randomised UID
chown -R jboss:root ${DATA_DIR}
chmod -R 777 ${DATA_DIR}
|
{
"content_hash": "56437e05390479ff285166e33cf1e510",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 67,
"avg_line_length": 30.80952380952381,
"alnum_prop": 0.7264296754250387,
"repo_name": "bdecoste/cct_module",
"id": "15df3b86c714bd264bfdf871c3884d7f9061c9d5",
"size": "722",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "os-bpmsuite-businesscentral/configure.sh",
"mode": "33261",
"license": "apache-2.0",
"language": [
{
"name": "Gherkin",
"bytes": "526780"
},
{
"name": "HTML",
"bytes": "422"
},
{
"name": "Python",
"bytes": "44774"
},
{
"name": "Shell",
"bytes": "450948"
}
],
"symlink_target": ""
}
|
FROM balenalib/jn30b-nano-ubuntu:eoan-build
ENV GO_VERSION 1.16
RUN mkdir -p /usr/local/go \
&& curl -SLO "https://storage.googleapis.com/golang/go$GO_VERSION.linux-arm64.tar.gz" \
&& echo "3770f7eb22d05e25fbee8fb53c2a4e897da043eb83c69b9a14f8d98562cd8098 go$GO_VERSION.linux-arm64.tar.gz" | sha256sum -c - \
&& tar -xzf "go$GO_VERSION.linux-arm64.tar.gz" -C /usr/local/go --strip-components=1 \
&& rm -f go$GO_VERSION.linux-arm64.tar.gz
ENV GOROOT /usr/local/go
ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
WORKDIR $GOPATH
CMD ["echo","'No CMD command was set in Dockerfile! Details about CMD command could be found in Dockerfile Guide section in our Docs. Here's the link: https://balena.io/docs"]
RUN curl -SLO "https://raw.githubusercontent.com/balena-io-library/base-images/8accad6af708fca7271c5c65f18a86782e19f877/scripts/assets/tests/test-stack@golang.sh" \
&& echo "Running test-stack@golang" \
&& chmod +x test-stack@golang.sh \
&& bash test-stack@golang.sh \
&& rm -rf test-stack@golang.sh
RUN [ ! -d /.balena/messages ] && mkdir -p /.balena/messages; echo 'Here are a few details about this Docker image (For more information please visit https://www.balena.io/docs/reference/base-images/base-images/): \nArchitecture: ARM v8 \nOS: Ubuntu eoan \nVariant: build variant \nDefault variable(s): UDEV=off \nThe following software stack is preinstalled: \nGo v1.16 \nExtra features: \n- Easy way to install packages with `install_packages <package-name>` command \n- Run anywhere with cross-build feature (for ARM only) \n- Keep the container idling with `balena-idle` command \n- Show base image details with `balena-info` command' > /.balena/messages/image-info
RUN echo '#!/bin/sh.real\nbalena-info\nrm -f /bin/sh\ncp /bin/sh.real /bin/sh\n/bin/sh "$@"' > /bin/sh-shim \
&& chmod +x /bin/sh-shim \
&& cp /bin/sh /bin/sh.real \
&& mv /bin/sh-shim /bin/sh
|
{
"content_hash": "6ec310e787986677754da68845b31082",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 670,
"avg_line_length": 63.54838709677419,
"alnum_prop": 0.7258883248730964,
"repo_name": "nghiant2710/base-images",
"id": "7fe834685702b91a2ed86f183be940e76519d693",
"size": "1991",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "balena-base-images/golang/jn30b-nano/ubuntu/eoan/1.16/build/Dockerfile",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Dockerfile",
"bytes": "144558581"
},
{
"name": "JavaScript",
"bytes": "16316"
},
{
"name": "Shell",
"bytes": "368690"
}
],
"symlink_target": ""
}
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>graph-theory: Error</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.11.1 / graph-theory - 0.8</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
graph-theory
<small>
0.8
<span class="label label-danger">Error</span>
</small>
</h1>
<p><em><script>document.write(moment("2021-04-06 21:49:33 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-04-06 21:49:33 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
coq 8.11.1 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.11.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.11.1 Official release 4.11.1
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "christian.doczkal@inria.fr"
homepage: "https://github.com/coq-community/graph-theory"
dev-repo: "git+https://github.com/coq-community/graph-theory.git"
bug-reports: "https://github.com/coq-community/graph-theory/issues"
license: "CECILL-B"
synopsis: "Graph theory results in Coq and MathComp"
description: """
A library of formalized graph theory results, including various
standard results from the literature (e.g., Menger’s Theorem, Hall’s
Marriage Theorem, and the excluded minor characterization of
treewidth-two graphs) as well as some more recent results arising
from the study of relation algebra within the ERC CoVeCe project
(e.g., soundness and completeness of an axiomatization of graph
isomorphism)."""
build: [make "-j%{jobs}%" ]
install: [make "install"]
depends: [
"coq" {>= "8.11" & < "8.14~"}
"coq-mathcomp-ssreflect" {>= "1.10" & < "1.13~"}
"coq-mathcomp-finmap"
"coq-hierarchy-builder" { >= "0.10" }
]
tags: [
"category:Computer Science/Graph Theory"
"keyword:graph theory"
"keyword:minors"
"keyword:treewidth"
"keyword:algebra"
"logpath:GraphTheory"
"date:2020-12-08"
]
authors: [
"Christian Doczkal"
"Damien Pous"
]
url {
src: "https://github.com/coq-community/graph-theory/archive/v0.8.tar.gz"
checksum: "sha512=695618a7a62092fdaf296824ca5d2b01606a0e41cc8ab34233db3de2475d88e4c24da16f2bbf4d40914138581b44883345982ea616874d7beba16ad161f74bba"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-graph-theory.0.8 coq.8.11.1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam list; echo; ulimit -Sv 4000000; timeout 2h opam install -y --deps-only coq-graph-theory.0.8 coq.8.11.1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>14 m 52 s</dd>
</dl>
<h2>Install</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam list; echo; ulimit -Sv 16000000; timeout 2h opam install -y -v coq-graph-theory.0.8 coq.8.11.1</code></dd>
<dt>Return code</dt>
<dd>7936</dd>
<dt>Duration</dt>
<dd>48 s</dd>
<dt>Output</dt>
<dd><pre># Packages matching: installed
# Name # Installed # Synopsis
base v0.14.1 Full standard library replacement for OCaml
base-bigarray base
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 1 Virtual package relying on perl
coq 8.11.1 Formal proof management system
coq-elpi 1.6.2~8.11 Elpi extension language for Coq
coq-hierarchy-builder 1.1.0 High level commands to declare and evolve a hierarchy based on packed classes
coq-mathcomp-bigenough 1.0.0 A small library to do epsilon - N reasonning
coq-mathcomp-finmap 1.5.1 Finite sets, finite maps, finitely supported functions
coq-mathcomp-ssreflect 1.12.0 Small Scale Reflection
cppo 1.6.7 Code preprocessor like cpp for OCaml
csexp 1.5.1 Parsing and printing of S-expressions in Canonical form
dune 2.8.5 Fast, portable, and opinionated build system
dune-configurator 2.8.5 Helper library for gathering system configuration
elpi 1.11.4-1 ELPI - Embeddable λProlog Interpreter
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.11.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.11.1 Official release 4.11.1
ocaml-compiler-libs v0.12.3 OCaml compiler libraries repackaged
ocaml-config 1 OCaml Switch Configuration
ocaml-migrate-parsetree 1.8.0 Convert OCaml parsetrees between different versions
ocamlfind 1.9.1 A library manager for OCaml
ppx_derivers 1.2.1 Shared [@@deriving] plugin registry
ppx_deriving 5.1 Type-driven code generation for OCaml
ppxlib 0.14.0 Base library and tools for ppx rewriters
re 1.9.0 RE is a regular expression library for OCaml
result 1.5 Compatibility Result module
seq base Compatibility package for OCaml's standard iterator type starting from 4.07.
sexplib0 v0.14.0 Library containing the definition of S-expressions and some base converters
stdio v0.14.0 Standard IO library for OCaml
[NOTE] Package coq is already installed (current version is 8.11.1).
The following actions will be performed:
- install coq-graph-theory 0.8
<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing 1/1: [coq-graph-theory.0.8: http]
[coq-graph-theory.0.8] downloaded from https://github.com/coq-community/graph-theory/archive/v0.8.tar.gz
Processing 1/1:
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing 1/2: [coq-graph-theory: make]
+ /home/bench/.opam/opam-init/hooks/sandbox.sh "build" "make" "-j4" (CWD=/home/bench/.opam/ocaml-base-compiler.4.11.1/.opam-switch/build/coq-graph-theory.0.8)
- coq_makefile -f _CoqProject -o Makefile.coq
- make[1]: Entering directory '/home/bench/.opam/ocaml-base-compiler.4.11.1/.opam-switch/build/coq-graph-theory.0.8'
- COQDEP VFILES
- COQC theories/edone.v
- COQC theories/bounded.v
- COQC theories/setoid_bigop.v
- COQC theories/preliminaries.v
- File "./theories/setoid_bigop.v", line 37, characters 0-43:
- Warning:
- The syntax "HB.instance Key FactoryInstance" is deprecated, use "HB.instance Definition" instead
- [lib,elpi]
- File "./theories/setoid_bigop.v", line 39, characters 0-42:
- Warning:
- The syntax "HB.instance Key FactoryInstance" is deprecated, use "HB.instance Definition" instead
- [lib,elpi]
- Warning: mem_imset is deprecated; use imset_f instead
- Warning: mem_imset is deprecated; use imset_f instead
- Warning: sorted_le_nth is deprecated; use sorted_leq_nth instead
- Warning: sorted_le_nth is deprecated; use sorted_leq_nth instead
- Warning: sorted_le_nth is deprecated; use sorted_leq_nth instead
- Warning: sorted_le_nth is deprecated; use sorted_leq_nth instead
- Warning: sorted_le_nth is deprecated; use sorted_leq_nth instead
- Warning: sorted_le_nth is deprecated; use sorted_leq_nth instead
- Warning: sorted_le_nth is deprecated; use sorted_leq_nth instead
- Warning: sorted_le_nth is deprecated; use sorted_leq_nth instead
- Warning: sorted_le_nth is deprecated; use sorted_leq_nth instead
- Warning: sorted_le_nth is deprecated; use sorted_leq_nth instead
- COQC theories/bij.v
- COQC theories/set_tac.v
- COQC theories/finmap_plus.v
- COQC theories/finite_quotient.v
- COQC theories/digraph.v
- COQC theories/structures.v
- COQC theories/equiv.v
- COQC theories/pttdom.v
- File "./theories/pttdom.v", line 45, characters 0-858:
- Error:
- elpi: parameter illtyped: In environment
- A : Type
- The term "id_phant" has type "phantom Type A -> phantom Type A"
- while it is expected to have type
- "unify Type Type A ?t (Some (is_not_canonically_a, setoid))".
-
- make[2]: *** [Makefile.coq:677: theories/pttdom.vo] Error 1
- make[2]: *** Waiting for unfinished jobs....
- make[1]: *** [Makefile.coq:327: all] Error 2
- make[1]: Leaving directory '/home/bench/.opam/ocaml-base-compiler.4.11.1/.opam-switch/build/coq-graph-theory.0.8'
- make: *** [Makefile:2: all] Error 2
[ERROR] The compilation of coq-graph-theory failed at "/home/bench/.opam/opam-init/hooks/sandbox.sh build make -j4".
#=== ERROR while compiling coq-graph-theory.0.8 ===============================#
# context 2.0.7 | linux/x86_64 | ocaml-base-compiler.4.11.1 | file:///home/bench/run/opam-coq-archive/released
# path ~/.opam/ocaml-base-compiler.4.11.1/.opam-switch/build/coq-graph-theory.0.8
# command ~/.opam/opam-init/hooks/sandbox.sh build make -j4
# exit-code 2
# env-file ~/.opam/log/coq-graph-theory-17826-335865.env
# output-file ~/.opam/log/coq-graph-theory-17826-335865.out
### output ###
# [...]
# Error:
# elpi: parameter illtyped: In environment
# A : Type
# The term "id_phant" has type "phantom Type A -> phantom Type A"
# while it is expected to have type
# "unify Type Type A ?t (Some (is_not_canonically_a, setoid))".
#
# make[2]: *** [Makefile.coq:677: theories/pttdom.vo] Error 1
# make[2]: *** Waiting for unfinished jobs....
# make[1]: *** [Makefile.coq:327: all] Error 2
# make[1]: Leaving directory '/home/bench/.opam/ocaml-base-compiler.4.11.1/.opam-switch/build/coq-graph-theory.0.8'
# make: *** [Makefile:2: all] Error 2
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build coq-graph-theory 0.8
+-
- No changes have been performed
# Run eval $(opam env) to update the current shell environment
'opam install -y -v coq-graph-theory.0.8 coq.8.11.1' failed.
</pre></dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
<small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small>
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
|
{
"content_hash": "551d688122ed8079784614c515ca1146",
"timestamp": "",
"source": "github",
"line_count": 295,
"max_line_length": 278,
"avg_line_length": 50.623728813559325,
"alnum_prop": 0.6106870229007634,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "20fc26d278516e6cd64e9af58634c9c36248c86c",
"size": "14941",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "clean/Linux-x86_64-4.11.1-2.0.7/released/8.11.1/graph-theory/0.8.html",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
}
|
/* $Id$ $Revision$ */
/* vim:set shiftwidth=4 ts=8: */
/*************************************************************************
* Copyright (c) 2011 AT&T Intellectual Property
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
#include "sfhdr.h"
#undef sfulen
int sfulen(reg Sfulong_t v)
{
return __sf_ulen(v);
}
|
{
"content_hash": "301bf3ee4dd93bcbad4b65bc80bc8fe4",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 75,
"avg_line_length": 31.714285714285715,
"alnum_prop": 0.5495495495495496,
"repo_name": "JasonGross/graphviz-packaging",
"id": "1c0afdc69ceaa360f064781ad057c2710d722f47",
"size": "666",
"binary": false,
"copies": "6",
"ref": "refs/heads/master",
"path": "debian-sources/graphviz-2.39.20161219.0054/graphviz-2.39.20161219.0054/lib/sfio/Sfio_f/_sfulen.c",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Awk",
"bytes": "27684"
},
{
"name": "Batchfile",
"bytes": "44918"
},
{
"name": "C",
"bytes": "56040998"
},
{
"name": "C#",
"bytes": "169905"
},
{
"name": "C++",
"bytes": "2318613"
},
{
"name": "Groff",
"bytes": "959551"
},
{
"name": "HTML",
"bytes": "1989313"
},
{
"name": "Lex",
"bytes": "35411"
},
{
"name": "Lua",
"bytes": "2601"
},
{
"name": "M4",
"bytes": "606687"
},
{
"name": "Makefile",
"bytes": "10799280"
},
{
"name": "Objective-C",
"bytes": "167008"
},
{
"name": "PHP",
"bytes": "2718"
},
{
"name": "Pascal",
"bytes": "1007868"
},
{
"name": "Perl",
"bytes": "53245"
},
{
"name": "PostScript",
"bytes": "178683"
},
{
"name": "Python",
"bytes": "3915"
},
{
"name": "Ruby",
"bytes": "3852"
},
{
"name": "Shell",
"bytes": "2318533"
},
{
"name": "Tcl",
"bytes": "171687"
},
{
"name": "Visual Basic",
"bytes": "160854"
},
{
"name": "XSLT",
"bytes": "39684"
},
{
"name": "Yacc",
"bytes": "258036"
}
],
"symlink_target": ""
}
|
PHP Stemmer using Porter's algortihm implementation.
|
{
"content_hash": "76066d7b25f3f008f85e4c210f43ddb7",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 52,
"avg_line_length": 53,
"alnum_prop": 0.8490566037735849,
"repo_name": "alvk4r/php-stemmer",
"id": "7083bf3cb7301a8310b4d6e9859bc4970ac11347",
"size": "67",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
}
|
'use strict';
var React;
var ReactInstanceMap;
var ReactTestUtils;
var mocks;
var reactComponentExpect;
describe('ReactComponent', function() {
beforeEach(function() {
mocks = require('mocks');
React = require('React').inServerContext(document);
ReactInstanceMap = require('ReactInstanceMap');
ReactTestUtils = require('ReactTestUtils').withServerContext({ document: document });
reactComponentExpect = require('reactComponentExpect');
});
it('should throw on invalid render targets', function() {
var container = document.createElement('div');
// jQuery objects are basically arrays; people often pass them in by mistake
expect(function() {
React.render(<div></div>, [container]);
}).toThrow(
'Invariant Violation: _registerComponent(...): Target container ' +
'is not a DOM element.'
);
expect(function() {
React.render(<div></div>, null);
}).toThrow(
'Invariant Violation: _registerComponent(...): Target container ' +
'is not a DOM element.'
);
});
it('should throw when supplying a ref outside of render method', function() {
var instance = <div ref="badDiv" />;
expect(function() {
instance = ReactTestUtils.renderIntoDocument(instance);
}).toThrow();
});
it('should support refs on owned components', function() {
var innerObj = {}, outerObj = {};
var Wrapper = React.createClass({
getObject: function() {
return this.props.object;
},
render: function() {
return <div>{this.props.children}</div>;
}
});
var Component = React.createClass({
render: function() {
var inner = <Wrapper object={innerObj} ref="inner" />;
var outer = <Wrapper object={outerObj} ref="outer">{inner}</Wrapper>;
return outer;
},
componentDidMount: function() {
expect(this.refs.inner.getObject()).toEqual(innerObj);
expect(this.refs.outer.getObject()).toEqual(outerObj);
}
});
var instance = <Component />;
instance = ReactTestUtils.renderIntoDocument(instance);
});
it('should not have refs on unmounted components', function() {
var Parent = React.createClass({
render: function() {
return <Child><div ref="test" /></Child>;
},
componentDidMount: function() {
expect(this.refs && this.refs.test).toEqual(undefined);
}
});
var Child = React.createClass({
render: function() {
return <div />;
}
});
var instance = <Parent child={<span />} />;
instance = ReactTestUtils.renderIntoDocument(instance);
});
it('should support new-style refs', function() {
var innerObj = {}, outerObj = {};
var Wrapper = React.createClass({
getObject: function() {
return this.props.object;
},
render: function() {
return <div>{this.props.children}</div>;
}
});
var mounted = false;
var Component = React.createClass({
render: function() {
var inner = <Wrapper object={innerObj} ref={(c) => this.innerRef = c} />;
var outer = (
<Wrapper object={outerObj} ref={(c) => this.outerRef = c}>
{inner}
</Wrapper>
);
return outer;
},
componentDidMount: function() {
expect(this.innerRef.getObject()).toEqual(innerObj);
expect(this.outerRef.getObject()).toEqual(outerObj);
mounted = true;
}
});
var instance = <Component />;
instance = ReactTestUtils.renderIntoDocument(instance);
expect(mounted).toBe(true);
});
it('should support new-style refs with mixed-up owners', function() {
var Wrapper = React.createClass({
render: function() {
return this.props.getContent();
}
});
var mounted = false;
var Component = React.createClass({
getInner: function() {
// (With old-style refs, it's impossible to get a ref to this div
// because Wrapper is the current owner when this function is called.)
return <div title="inner" ref={(c) => this.innerRef = c} />;
},
render: function() {
return (
<Wrapper
title="wrapper"
ref={(c) => this.wrapperRef = c}
getContent={this.getInner}
/>
);
},
componentDidMount: function() {
// Check .props.title to make sure we got the right elements back
expect(this.wrapperRef.props.title).toBe('wrapper');
expect(this.innerRef.props.title).toBe('inner');
mounted = true;
}
});
var instance = <Component />;
instance = ReactTestUtils.renderIntoDocument(instance);
expect(mounted).toBe(true);
});
it('should call refs at the correct time', function() {
var log = [];
var Inner = React.createClass({
render: function() {
log.push(`inner ${this.props.id} render`);
return <div />;
},
componentDidMount: function() {
log.push(`inner ${this.props.id} componentDidMount`);
},
componentDidUpdate: function() {
log.push(`inner ${this.props.id} componentDidUpdate`);
},
componentWillUnmount: function() {
log.push(`inner ${this.props.id} componentWillUnmount`);
}
});
var Outer = React.createClass({
render: function() {
return (
<div>
<Inner id={1} ref={(c) => {
log.push(`ref 1 got ${c ? `instance ${c.props.id}` : 'null'}`);
}}/>
<Inner id={2} ref={(c) => {
log.push(`ref 2 got ${c ? `instance ${c.props.id}` : 'null'}`);
}}/>
</div>
);
},
componentDidMount: function() {
log.push('outer componentDidMount');
},
componentDidUpdate: function() {
log.push('outer componentDidUpdate');
},
componentWillUnmount: function() {
log.push('outer componentWillUnmount');
}
});
// mount, update, unmount
var el = document.createElement('div');
log.push('start mount');
React.render(<Outer />, el);
log.push('start update');
React.render(<Outer />, el);
log.push('start unmount');
React.unmountComponentAtNode(el);
expect(log).toEqual([
'start mount',
'inner 1 render',
'inner 2 render',
'inner 1 componentDidMount',
'ref 1 got instance 1',
'inner 2 componentDidMount',
'ref 2 got instance 2',
'outer componentDidMount',
'start update',
// Previous (equivalent) refs get cleared
'ref 1 got null',
'inner 1 render',
'ref 2 got null',
'inner 2 render',
'inner 1 componentDidUpdate',
'ref 1 got instance 1',
'inner 2 componentDidUpdate',
'ref 2 got instance 2',
'outer componentDidUpdate',
'start unmount',
'outer componentWillUnmount',
'ref 1 got null',
'inner 1 componentWillUnmount',
'ref 2 got null',
'inner 2 componentWillUnmount'
]);
});
it('fires the callback after a component is rendered', function() {
var callback = mocks.getMockFunction();
var container = document.createElement('div');
React.render(<div />, container, callback);
expect(callback.mock.calls.length).toBe(1);
React.render(<div className="foo" />, container, callback);
expect(callback.mock.calls.length).toBe(2);
React.render(<span />, container, callback);
expect(callback.mock.calls.length).toBe(3);
});
});
|
{
"content_hash": "9b9f9c294dba8c115dcd2abcea7edb7d",
"timestamp": "",
"source": "github",
"line_count": 259,
"max_line_length": 89,
"avg_line_length": 29.324324324324323,
"alnum_prop": 0.5815668202764976,
"repo_name": "bruderstein/server-react",
"id": "7a53677af82a9b9cfcc10456e6f9b56b3a156f6a",
"size": "7921",
"binary": false,
"copies": "1",
"ref": "refs/heads/server-react",
"path": "src/core/__tests__/ReactComponent-test.js",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "CSS",
"bytes": "1625"
},
{
"name": "CoffeeScript",
"bytes": "10781"
},
{
"name": "HTML",
"bytes": "18771"
},
{
"name": "JavaScript",
"bytes": "1398610"
},
{
"name": "PHP",
"bytes": "1945"
},
{
"name": "Ruby",
"bytes": "851"
},
{
"name": "Shell",
"bytes": "284"
},
{
"name": "TypeScript",
"bytes": "13897"
}
],
"symlink_target": ""
}
|
<?php
$loader = require dirname(__DIR__) . '/vendor/autoload.php';
/** @var $loader \Composer\Autoload\ClassLoader */
$loader->add('Koriym\FusionCache', __DIR__);
$loader->add('Doctrine\Tests', dirname(__DIR__) . '/vendor/doctrine/cache/tests');
|
{
"content_hash": "0369c6d80cc92e383c4b19b4ca42bc2a",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 82,
"avg_line_length": 41.166666666666664,
"alnum_prop": 0.6639676113360324,
"repo_name": "koriym/Koriym.FusionCache",
"id": "7e95f87b066e6d8c501ccbe222c64a5cd79760a2",
"size": "247",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop",
"path": "tests/bootstrap.php",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "PHP",
"bytes": "5247"
}
],
"symlink_target": ""
}
|
namespace arangodb::aql {
struct ModificationExecutorInfos;
class RemoveModifierCompletion {
public:
explicit RemoveModifierCompletion(ModificationExecutorInfos& infos)
: _infos(infos) {}
~RemoveModifierCompletion() = default;
ModifierOperationType accumulate(ModificationExecutorAccumulator& accu,
InputAqlItemRow& row);
futures::Future<OperationResult> transact(transaction::Methods& trx,
VPackSlice const& data);
private:
ModificationExecutorInfos& _infos;
arangodb::velocypack::Builder _keyDocBuilder;
};
} // namespace arangodb::aql
|
{
"content_hash": "523184a877248c2fe6fbcc231331ee7a",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 73,
"avg_line_length": 30.61904761904762,
"alnum_prop": 0.6905132192846034,
"repo_name": "wiltonlazary/arangodb",
"id": "4e2272306b4eb78c9986eb4e71b3ab6537293f5b",
"size": "1805",
"binary": false,
"copies": "2",
"ref": "refs/heads/devel",
"path": "arangod/Aql/RemoveModifier.h",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Assembly",
"bytes": "61827"
},
{
"name": "C",
"bytes": "309788"
},
{
"name": "C++",
"bytes": "34723629"
},
{
"name": "CMake",
"bytes": "383904"
},
{
"name": "CSS",
"bytes": "210549"
},
{
"name": "EJS",
"bytes": "231166"
},
{
"name": "HTML",
"bytes": "23114"
},
{
"name": "JavaScript",
"bytes": "33741286"
},
{
"name": "LLVM",
"bytes": "14975"
},
{
"name": "NASL",
"bytes": "269512"
},
{
"name": "NSIS",
"bytes": "47138"
},
{
"name": "Pascal",
"bytes": "75391"
},
{
"name": "Perl",
"bytes": "9811"
},
{
"name": "PowerShell",
"bytes": "7869"
},
{
"name": "Python",
"bytes": "184352"
},
{
"name": "SCSS",
"bytes": "255542"
},
{
"name": "Shell",
"bytes": "134504"
},
{
"name": "TypeScript",
"bytes": "179074"
},
{
"name": "Yacc",
"bytes": "79620"
}
],
"symlink_target": ""
}
|
ACCEPTED
#### According to
Index Fungorum
#### Published in
Schlechtendalia 4: 18 (2000)
#### Original name
Uncinula crataegi Bunkina
### Remarks
null
|
{
"content_hash": "b7ceb2b9454650827749b8eecce88554",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 28,
"avg_line_length": 11.846153846153847,
"alnum_prop": 0.7207792207792207,
"repo_name": "mdoering/backbone",
"id": "1307fa236f2a54890066e4ed3086619b338f8cb9",
"size": "226",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Fungi/Ascomycota/Leotiomycetes/Erysiphales/Erysiphaceae/Erysiphe/Erysiphe crataegi/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.